/* =============================================
   BOOK AN APPOINTMENT — HERO
   ============================================= */
.ba-hero {
    position: relative;
    min-height: 560px;
    padding: 80px 0;
    background-color: #eaf0f8;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ba-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(234, 240, 248, 0.97) 0%,
        rgba(234, 240, 248, 0.94) 28%,
        rgba(234, 240, 248, 0.55) 48%,
        rgba(234, 240, 248, 0.15) 64%,
        rgba(234, 240, 248, 0)    80%
    );
}

.ba-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.ba-hero-content {
    max-width: 560px;
}

.ba-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.ba-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--color-primary);
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.ba-hero-divider {
    display: block;
    width: 48px;
    height: 1.5px;
    background-color: rgba(26, 42, 108, 0.30);
    margin: 0 0 22px;
}

.ba-hero-desc {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: #5a6478;
    max-width: 460px;
    margin: 0 0 28px;
}

.ba-hero-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ba-hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ba-hero-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(26, 42, 108, 0.08);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ba-hero-feature-text h3 {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 3px;
    line-height: 1.3;
}

.ba-hero-feature-text p {
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.45;
    color: #5a6478;
    margin: 0;
}


/* =============================================
   BOOK AN APPOINTMENT — MAIN (form + why)
   ============================================= */
.ba-main {
    position: relative;
    z-index: 2;
    background-color: #fafbfd;
    padding: 64px 0 72px;
}

.ba-main-grid {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(26, 42, 108, 0.10);
    padding: 48px 48px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

.ba-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 12px;
    line-height: 1.12;
    letter-spacing: -0.3px;
}

.ba-section-sub {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 26px;
}

/* --- Form fields --- */
.ba-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ba-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ba-field-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.2px;
}
.ba-field-label em {
    font-style: normal;
    font-weight: 500;
    color: #9ca3af;
    margin-left: 4px;
}

.ba-field-icon,
.ba-field-select,
.ba-field-phone {
    position: relative;
}

.ba-field input,
.ba-field select,
.ba-field textarea {
    width: 100%;
    padding: 12px 42px 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: var(--color-primary);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ba-field input::placeholder,
.ba-field textarea::placeholder {
    color: #9ca3af;
}

.ba-field input:focus,
.ba-field select:focus,
.ba-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.10);
}

.ba-field-icon > i,
.ba-field-select > i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 14px;
    pointer-events: none;
    opacity: 0.7;
}

.ba-field-icon-textarea {
    display: block;
}
.ba-field-icon-textarea textarea {
    resize: vertical;
    min-height: 86px;
    padding-top: 12px;
}
.ba-field-icon-textarea > i {
    top: 16px;
    transform: none;
}

.ba-field-select select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

/* Phone field with flag pill */
.ba-field-phone {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ba-field-phone:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.10);
}
.ba-field-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: #f4f6fc;
    border-right: 1px solid #e5e7eb;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    flex-shrink: 0;
}
.ba-field-flag img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}
.ba-field-phone input {
    border: none;
    border-radius: 0;
    padding: 12px 14px;
    flex: 1;
    min-width: 0;
}
.ba-field-phone input:focus {
    box-shadow: none;
}

/* Date + Time row */
.ba-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Submit button */
.ba-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    padding: 15px 24px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(26, 42, 108, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    margin-top: 6px;
}
.ba-submit:hover:not(:disabled) {
    background: var(--color-primary-dark, #131f52);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(26, 42, 108, 0.32);
}
.ba-submit:disabled {
    opacity: 0.85;
    cursor: default;
}
.ba-submit i {
    font-size: 12px;
    transition: transform 0.25s ease;
}
.ba-submit:hover:not(:disabled) i {
    transform: translateX(3px);
}

/* --- Why Choose grid --- */
.ba-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.ba-why-card {
    background: #fff;
    border: 1px solid #eef0f7;
    border-radius: 14px;
    padding: 26px 22px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ba-why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(26, 42, 108, 0.10);
    border-color: var(--color-primary);
}

.ba-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 14px;
}

.ba-why-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px;
    line-height: 1.3;
}

.ba-why-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
}

/* Need Immediate Assistance */
.ba-assist {
    background: #eef2fa;
    border-radius: 16px;
    padding: 22px 26px 24px;
}

.ba-assist-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 6px;
}

.ba-assist-sub {
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0 0 14px;
}

.ba-assist-phone {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.ba-assist-phone:hover { transform: translateX(3px); }

.ba-assist-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ba-assist-num {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.3px;
}


/* =============================================
   BOOK AN APPOINTMENT — INFO STRIP
   ============================================= */
.ba-info {
    background: #f4f6fc;
    padding: 32px 0;
    border-top: 1px solid #eef0f7;
}

.ba-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ba-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ba-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 42, 108, 0.08);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.ba-info-item h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 4px;
}

.ba-info-item p {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
}

.ba-info-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ba-info-item a:hover {
    color: var(--color-primary);
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .ba-hero { min-height: 480px; padding: 60px 0; background-position: 80% center; }
    .ba-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(234, 240, 248, 0.97) 0%,
            rgba(234, 240, 248, 0.92) 44%,
            rgba(234, 240, 248, 0.55) 64%,
            rgba(234, 240, 248, 0.10) 82%,
            rgba(234, 240, 248, 0)    94%
        );
    }
    .ba-main { padding: 52px 0 64px; }
    .ba-main-grid { grid-template-columns: 1fr; gap: 40px; padding: 36px 32px 44px; }
    .ba-info-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .ba-hero {
        min-height: 440px;
        padding: 56px 0;
        background-position: 70% center;
    }
    .ba-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(234, 240, 248, 0.96) 0%,
            rgba(234, 240, 248, 0.92) 52%,
            rgba(234, 240, 248, 0.55) 80%,
            rgba(234, 240, 248, 0.18) 100%
        );
    }
    .ba-hero-content { max-width: 100%; }
    .ba-hero-title br { display: none; }
    .ba-hero-feature-icon { width: 40px; height: 40px; font-size: 15px; }

    .ba-main { padding: 40px 0 56px; }
    .ba-main-grid {
        padding: 28px 22px 36px;
        border-radius: 18px;
        gap: 32px;
    }
    .ba-section-title br { display: none; }

    .ba-field-row { grid-template-columns: 1fr; gap: 16px; }

    .ba-why-grid { grid-template-columns: 1fr; gap: 12px; }
    .ba-why-card { padding: 22px 18px; }

    .ba-assist { padding: 20px 20px 22px; border-radius: 14px; }
    .ba-assist-num { font-size: 19px; }

    .ba-info-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
    .ba-hero-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
    .ba-assist-phone { flex-wrap: wrap; }
}
