/* Contact page */
.contact-layout {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
        gap: 24px;
        align-items: stretch;
        width: 100%;
        border: 1px solid transparent;
        box-sizing: border-box;
    }

    .contact-form-column,
    .contact-sidebar,
    .contact-form-column > .glass-card,
    .contact-form-column form,
    .contact-form-column .form-control,
    .contact-form-column .form-select {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form-column > .glass-card {
        height: 100%;
        margin: 0;
    }

    .contact-form-column .form-control,
    .contact-form-column .form-select {
        display: block;
        width: 100%;
        border-color: #cbd5e1;
        background-color: #fff !important;
        color: #0f172a !important;
        color-scheme: light;
    }

    .contact-form-column .form-control::placeholder {
        color: #64748b;
        opacity: 1;
    }

    .contact-form-column .form-control:focus,
    .contact-form-column .form-select:focus {
        border-color: #38bdf8;
        background-color: #fff !important;
        color: #0f172a !important;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, .16);
    }

    .contact-form-column .form-select option {
        background: #fff;
        color: #0f172a;
    }

    .contact-form-column .form-control:-webkit-autofill,
    .contact-form-column .form-control:-webkit-autofill:hover,
    .contact-form-column .form-control:-webkit-autofill:focus {
        -webkit-text-fill-color: #0f172a;
        box-shadow: 0 0 0 1000px #fff inset;
    }

    .contact-sidebar {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 20px;
        height: 100%;
    }

    .contact-sidebar .info-card {
        min-width: 0;
        margin: 0;
    }

    .contact-sidebar .info-card:nth-child(2) {
        display: flex;
        flex-direction: column;
    }

.office-tabs {
        display: flex;
        gap: 10px;
        margin: 15px 0 20px;
    }

    .office-tab {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, .15);
        color: #9fb3c8;
        padding: 8px 16px;
        border-radius: 30px;
        cursor: pointer;
        font-size: 13px;
    }

    .office-tab.active {
        background: #0ea5e9;
        color: white;
        border-color: #0ea5e9;
    }

    .info-text a {
        color: inherit;
        text-decoration: none;
    }

    .info-text a:hover,
    .info-text a:focus-visible {
        color: #7dd3fc;
        text-decoration: underline;
    }

    .contact-captcha-question {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin-bottom: 8px;
        padding: 8px 16px;
        border: 1px solid rgba(125, 211, 252, .45);
        border-radius: 8px;
        background: rgba(14, 165, 233, .1);
        color: #e0f2fe;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: .02em;
        white-space: nowrap;
    }

    .contact-security-row {
        display: grid;
        grid-template-columns: auto minmax(110px, 160px) minmax(180px, 1fr);
        gap: 12px;
        align-items: center;
    }

    .contact-security-row .form-control {
        width: 100%;
        min-width: 0;
    }

    .contact-security-row .form-text {
        margin: 0;
        color: #94a3b8;
        line-height: 1.45;
    }

    .office-box {
        display: none;
    }

    .office-box.active {
        display: block;
    }

    .office-badge {
        display: inline-block;
        background: rgba(14, 165, 233, .15);
        color: #38bdf8;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .office-badge.branch {
        background: rgba(16, 185, 129, .15);
        color: #34d399;
    }

    .office-title {
        color: white;
        font-weight: 600;
        font-size: 18px;
        margin-bottom: 5px;
    }

    .office-desc {
        color: #9fb3c8;
        font-size: 14px;
        line-height: 1.6;
    }

    @media (max-width: 1199.98px) {
        .contact-layout {
            grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
        }

        .contact-form-column > .glass-card {
            padding: 32px;
        }

        .contact-security-row {
            grid-template-columns: auto minmax(100px, 130px);
        }

        .contact-security-row .form-text {
            grid-column: 1 / -1;
        }
    }

    @media (max-width: 991.98px) {
        .contact-layout {
            grid-template-columns: minmax(0, 1fr);
        }

        .contact-sidebar {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-rows: auto auto;
            height: auto;
        }

        .contact-sidebar .info-card:nth-child(2) {
            grid-row: span 2;
        }
    }

    @media (max-width: 767.98px) {
        .contact-layout {
            gap: 16px;
        }

        .contact-form-column > .glass-card {
            padding: 24px;
            border-radius: 20px;
        }

        .contact-sidebar {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: auto;
            gap: 16px;
        }

        .contact-sidebar .info-card:nth-child(2) {
            grid-row: auto;
        }

        .contact-security-row {
            grid-template-columns: minmax(0, 1fr);
            align-items: stretch;
        }

        .contact-security-row .form-control {
            max-width: none;
        }
    }

    @media (max-width: 479.98px) {
        .contact-form-column > .glass-card,
        .contact-sidebar .info-card {
            padding: 20px;
        }

        .contact-captcha-question {
            justify-content: center;
            width: 100%;
        }
    }
