/* ═══════════════════════════════════════════════════════════════════
   Contact Block – headless/contact
   ═══════════════════════════════════════════════════════════════════ */

.wp-block-headless-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* ─── Hero Section ─────────────────────────────────────────────────── */

.ct-hero-outer {
    overflow: clip;
}

.ct-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 835px;
    padding: 64px 88px;
    border-radius: 32px;
    overflow: clip;
    background: #6d9aa5;
}

.ct-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    z-index: 0;
}

.ct-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(103, 152, 173, 0.72) 39%, transparent 66%);
    border-radius: 32px;
    z-index: 1;
}

.ct-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.ct-hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 480px;
    flex-shrink: 1;
}

.ct-badge {
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(54, 80, 114, 0.32);
    border-radius: 999px;
    padding: 4px 16px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.ct-hero-heading {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 88px;
    line-height: 1.1;
    color: #ffffff;
    margin: 0;
}

.ct-hero-subtitle {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.ct-hero-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.ct-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.ct-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 99px;
    padding: 12px 28px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ct-hero-btn:hover {
    transform: translateY(-1px);
}

.ct-hero-btn--primary {
    background: #fa700d;
    color: #ffffff;
    border: none;
    box-shadow:
        0 1px 2px rgba(250, 112, 13, 0.3),
        0 4px 12px rgba(250, 112, 13, 0.2);
}

.ct-hero-btn--primary:hover {
    box-shadow:
        0 2px 4px rgba(250, 112, 13, 0.35),
        0 6px 16px rgba(250, 112, 13, 0.25);
}

.ct-hero-btn--secondary {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.ct-hero-btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* ─── Form Card ────────────────────────────────────────────────────── */

.ct-form-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 32px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    flex-shrink: 0;
    width: 480px;
    max-width: 100%;
}

.ct-gf-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ct-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-form-label {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: rgba(22, 30, 35, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ct-form-required {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #ff5f5f;
}

.ct-form-row {
    display: flex;
    flex-direction: row;
    gap: 34px;
}

.ct-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ct-form-field-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(22, 30, 35, 0.75);
}

.ct-form-input {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    min-height: 44px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #161e23;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.ct-form-input:focus {
    border-color: rgba(103, 152, 173, 0.6);
}

.ct-form-input:-webkit-autofill,
.ct-form-input:-webkit-autofill:hover,
.ct-form-input:-webkit-autofill:focus,
.ct-form-textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #161e23;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: background-color 5000s ease-in-out 0s;
}

.ct-form-textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    min-height: 120px;
    resize: vertical;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #161e23;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.ct-form-textarea:focus {
    border-color: rgba(103, 152, 173, 0.6);
}

.ct-form-counter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(22, 30, 35, 0.5);
}

.ct-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    background: #fa700d;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 99px;
    padding: 12px 24px;
    cursor: pointer;
    width: fit-content;
    box-shadow:
        0 1px 2px rgba(250, 112, 13, 0.3),
        0 4px 12px rgba(250, 112, 13, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ct-form-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 2px 4px rgba(250, 112, 13, 0.35),
        0 6px 16px rgba(250, 112, 13, 0.25);
}

.ct-form-submit:active {
    transform: translateY(0);
}

.ct-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ─── Radio & Checkbox ───────────────────────────────────────────── */

.ct-form-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ct-form-radio-label,
.ct-form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #161e23;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.ct-form-radio-label:hover,
.ct-form-checkbox-label:hover {
    border-color: rgba(103, 152, 173, 0.5);
}

.ct-form-radio-label:has(:checked),
.ct-form-checkbox-label:has(:checked) {
    border-color: rgba(103, 152, 173, 0.6);
    background: rgba(103, 152, 173, 0.05);
}

.ct-form-radio,
.ct-form-checkbox {
    accent-color: #6798ad;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ─── Section Divider ────────────────────────────────────────────── */

.ct-form-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
    margin-top: 8px;
}

.ct-form-section-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: rgba(22, 30, 35, 0.85);
}

.ct-form-section-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(22, 30, 35, 0.6);
    margin-top: 4px;
}

/* ─── Conditional Logic ──────────────────────────────────────────── */

.ct-form-group--hidden {
    display: none !important;
}

/* ─── Inline Validation ───────────────────────────────────────────── */

.ct-form-input--error,
textarea.ct-form-input--error {
    border-color: #e53935;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.15);
}

.ct-form-error-tip {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #e53935;
    margin-top: 4px;
}

/* ─── Submission Modal ────────────────────────────────────────────── */

.ct-form-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.ct-form-modal-overlay--visible {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ct-form-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ct-form-modal-overlay--visible .ct-form-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.ct-form-modal-icon {
    width: 56px;
    height: 56px;
}

.ct-form-modal-icon--success {
    color: #43a047;
}

.ct-form-modal-icon--error {
    color: #e53935;
}

.ct-form-modal-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.ct-form-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    text-align: left;
}

.ct-form-modal-body li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ct-form-modal-close {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    background: #365072;
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 10px 32px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ct-form-modal--success .ct-form-modal-close {
    background: #43a047;
}

.ct-form-modal--error .ct-form-modal-close {
    background: #e53935;
}

.ct-form-modal-close:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* ─── Offices Section ──────────────────────────────────────────────── */

.ct-offices {
    background: #f0f2f5;
    border-radius: 32px;
    padding: 64px;
}

.ct-offices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.ct-offices-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 32px;
    font-style: normal;
    color: #365072;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #fa700d;
    display: inline-block;
}

.ct-social-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.ct-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fa700d;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ct-social-link:hover {
    opacity: 0.7;
}

.ct-social-link svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ─── Offices Grid ─────────────────────────────────────────────────── */

.ct-offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.ct-office-card {
    border-left: 1px solid rgba(22, 30, 35, 0.15);
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ct-office-card:nth-child(3n + 1) {
    border-left: none;
    padding-left: 0;
}

.ct-office-region {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #161e23;
    margin: 0;
}

.ct-office-name {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #7a9dc0;
    margin-top: 16px;
    margin-bottom: 0;
    line-height: 1.4;
}

.ct-office-address {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #7a9dc0;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.4;
}

.ct-office-phone {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #7a9dc0;
    margin-top: 8px;
    margin-bottom: 0;
    text-decoration: none;
    line-height: 1.4;
}

.ct-office-phone a {
    color: #7a9dc0;
    text-decoration: none;
}

.ct-office-phone a:hover {
    text-decoration: underline;
}

.ct-office-email {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #161e23;
    margin-top: 2px;
    margin-bottom: 0;
    text-decoration: none;
    line-height: 1.4;
}

.ct-office-email:hover {
    text-decoration: underline;
}

/* ─── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .ct-hero {
        flex-direction: column;
        padding: 48px;
        min-height: auto;
    }

    .ct-hero-content {
        flex-direction: column;
        align-items: stretch;
    }

    .ct-hero-left {
        max-width: 100%;
    }

    .ct-form-card {
        width: 100%;
    }

    .ct-offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ct-office-card:nth-child(3n + 1) {
        border-left: 1px solid rgba(22, 30, 35, 0.15);
        padding-left: 40px;
    }

    .ct-office-card:nth-child(2n + 1) {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .ct-hero {
        padding: 32px;
    }

    .ct-hero-heading {
        font-size: 48px;
    }

    .ct-hero-subtitle {
        font-size: 20px;
    }

    .ct-hero-description {
        font-size: 15px;
    }

    .ct-form-card {
        padding: 40px 24px;
        gap: 32px;
    }

    .ct-office-card:nth-child(3n + 1) {
        border-left: none;
        padding-left: 0;
    }

    .ct-form-row {
        flex-direction: column;
        gap: 16px;
    }

    .ct-offices {
        padding: 32px;
    }

    .ct-offices-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ct-offices-grid {
        grid-template-columns: 1fr;
    }

    .ct-office-card {
        border-left: none;
        padding: 32px 0;
        min-height: auto;
        border-bottom: 1px solid rgba(22, 30, 35, 0.15);
    }

    .ct-office-card:nth-child(2n + 1) {
        padding-left: 0;
    }

    .ct-office-card:last-child {
        border-bottom: none;
    }
}
