/* ============================================================
   FAQ + BOOK APPOINTMENT — Dr. Kishor Tanir Dental Website
   Scope: .faq-appointment
   ============================================================ */

.faq-appointment {
    background: linear-gradient(145deg, #F7F9FC 0%, #EBF4FF 50%, #F0FDF4 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.faq-appointment::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---- Section Header ---- */
.faq-appointment__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    position: relative;
    z-index: 1;
}

.faq-appointment__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1A73E8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background-color: #EBF4FF;
    border: 1px solid rgba(26, 115, 232, 0.18);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.faq-appointment__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.faq-appointment__title-accent {
    background: linear-gradient(135deg, #1A73E8, #0D9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-appointment__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #64748B;
    line-height: 1.75;
}

/* ---- Left: FAQ Accordion ---- */
.faq-appointment__faq-col {
    position: relative;
    z-index: 1;
}

.faq-appointment__faq-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Custom accordion */
.faq-appointment__accordion .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #E2E8F0;
    border-radius: 0 !important;
}

.faq-appointment__accordion .accordion-item:first-child {
    border-top: 1px solid #E2E8F0;
}

.faq-appointment__accordion .accordion-button {
    background-color: transparent !important;
    color: #0F172A !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 1.25rem 0;
    border: none;
    box-shadow: none !important;
    letter-spacing: -0.01em;
    text-align: left;
}

.faq-appointment__accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3e%3cpath d='M3 6l5 5 5-5' stroke='%231A73E8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.faq-appointment__accordion .accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3e%3cpath d='M3 6l5 5 5-5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}

.faq-appointment__accordion .accordion-button:not(.collapsed) {
    color: #1A73E8 !important;
}

.faq-appointment__accordion .accordion-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #64748B;
    line-height: 1.75;
    padding: 0 0 1.375rem 0;
}

/* ---- Right: Appointment Form Card ---- */
.faq-appointment__form-col {
    position: relative;
    z-index: 1;
}

.faq-appointment__form-card {
    background-color: #ffffff;
    border: 1px solid rgba(26, 115, 232, 0.1);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 100px;
}

.faq-appointment__form-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.03em;
    margin-bottom: 0.375rem;
}

.faq-appointment__form-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748B;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

/* Form fields */
.faq-appointment__form-group {
    margin-bottom: 1rem;
}

.faq-appointment__form-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
    display: block;
}

.faq-appointment__form-control {
    width: 100%;
    background-color: #F7F9FC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.6875rem 0.875rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #0F172A;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.faq-appointment__form-control::placeholder {
    color: #94A3B8;
}

.faq-appointment__form-control:focus {
    border-color: #1A73E8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
    background-color: #ffffff;
}

.faq-appointment__form-control:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

.faq-appointment__form-control--textarea {
    resize: vertical;
    min-height: 90px;
}

/* Two-column row for date/time */
.faq-appointment__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Submit button */
.faq-appointment__submit-btn {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1A73E8 0%, #0D9488 100%);
    border: none;
    padding: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(26, 115, 232, 0.35);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.faq-appointment__submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(26, 115, 232, 0.46);
}

.faq-appointment__submit-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Secondary CTAs below form */
.faq-appointment__alt-ctас {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.faq-appointment__alt-cta {
    flex: 1;
    min-width: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1.5px solid;
    border-radius: 50px;
    padding: 0.625rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
}

.faq-appointment__alt-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-appointment__alt-cta--call {
    color: #1A73E8;
    border-color: #1A73E8;
}

.faq-appointment__alt-cta--call:hover {
    color: #ffffff;
    background-color: #1A73E8;
}

.faq-appointment__alt-cta--whatsapp {
    color: #16A34A;
    border-color: #16A34A;
}

.faq-appointment__alt-cta--whatsapp:hover {
    color: #ffffff;
    background-color: #16A34A;
}

/* ---- Reveal ---- */
.faq-appointment .reveal-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.faq-appointment .reveal-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .faq-appointment {
        padding: 4rem 0;
    }
    .faq-appointment__form-card {
        position: static;
        margin-top: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .faq-appointment__form-card {
        padding: 1.5rem;
    }
    .faq-appointment__form-row {
        grid-template-columns: 1fr;
    }
    .faq-appointment__alt-ctас {
        flex-direction: column;
    }
}
