/* v8.14 appointment page redesign */
.appointment-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 78px;
    border-bottom: 1px solid #dce9f7;
    background:
        radial-gradient(circle at 8% 16%, rgba(21, 155, 215, .15), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(255, 138, 0, .13), transparent 26%),
        linear-gradient(135deg, #eef7ff 0%, #fffaf2 100%);
}

.appointment-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(8, 104, 200, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 104, 200, .055) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.72), transparent 86%);
    pointer-events: none;
}

.appointment-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .82fr);
    gap: 42px;
    align-items: center;
}

.appointment-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid #cfe3fb;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: #0b72d9;
    font-size: 14px;
    font-weight: 900;
}

.appointment-hero-copy h1 {
    max-width: 680px;
    margin: 22px 0 18px;
    color: #061a3a;
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: 0;
}

.appointment-hero-copy p {
    max-width: 660px;
    margin: 0;
    color: #35506f;
    font-size: 18px;
    line-height: 1.9;
}

.appointment-quick-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid #ffd8a8;
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    color: #8a4b00;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(255, 138, 0, .11);
}

.appointment-quick-note i {
    color: #ff8a00;
}

.appointment-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 700px;
    margin-top: 24px;
}

.appointment-benefit-grid span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid #d5e7fa;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    color: #163556;
    font-weight: 900;
    box-shadow: 0 16px 38px rgba(14, 81, 150, .07);
}

.appointment-benefit-grid i {
    color: #0b72d9;
}

.appointment-form-card {
    position: relative;
    padding: 28px;
    border: 1px solid #d3e5f8;
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 28px 76px rgba(12, 64, 128, .15);
    backdrop-filter: blur(10px);
}

.appointment-form-card::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 20px;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 138, 0, .16), rgba(0, 168, 183, .14));
    transform: rotate(10deg);
    pointer-events: none;
}

.appointment-form-head,
.appointment-page-form {
    position: relative;
    z-index: 1;
}

.appointment-form-head span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef7ff;
    color: #0b72d9;
    font-weight: 900;
}

.appointment-form-head h2 {
    margin: 16px 0 8px;
    color: #061a3a;
    font-size: 30px;
    line-height: 1.25;
}

.appointment-form-head p {
    margin: 0;
    color: #49627f;
    line-height: 1.75;
}

.appointment-page-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.appointment-page-form .form-row {
    display: grid;
    gap: 14px;
}

.appointment-page-form .form-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-page-form .form-field {
    display: grid;
    gap: 7px;
}

.appointment-page-form .form-field span {
    color: #35506f;
    font-size: 13px;
    font-weight: 800;
}

.appointment-page-form input,
.appointment-page-form select,
.appointment-page-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfe0f4;
    border-radius: 12px;
    background: #fff;
    color: #061a3a;
    font-size: 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.appointment-page-form input,
.appointment-page-form select {
    padding: 0 14px;
}

.appointment-page-form textarea {
    min-height: 92px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.7;
}

.appointment-page-form input:focus,
.appointment-page-form select:focus,
.appointment-page-form textarea:focus {
    border-color: #0b72d9;
    box-shadow: 0 0 0 4px rgba(11, 114, 217, .11);
    background: #fbfdff;
}

.appointment-page-form .is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .12) !important;
}

.appointment-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #ff9b12 0%, #ff7200 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(255, 125, 0, .24);
    transition: transform .18s ease, box-shadow .18s ease;
}

.appointment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(255, 125, 0, .3);
}

.form-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 0;
    color: #6a7c92;
    font-size: 13px;
}

.form-privacy i {
    color: #10b981;
}

.appointment-process-section {
    padding: 72px 0;
    background: #fff;
}

.appointment-section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.appointment-section-head-center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.appointment-section-head h2 {
    margin: 16px 0 10px;
    color: #061a3a;
    font-size: 36px;
    line-height: 1.22;
}

.appointment-section-head p {
    margin: 0;
    color: #4b627f;
    line-height: 1.8;
}

.appointment-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    position: relative;
}

.appointment-step-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #d8e7f8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(18, 78, 140, .08);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.appointment-step-card[open],
.appointment-step-card:hover {
    transform: translateY(-3px);
    border-color: #9fc8f4;
    box-shadow: 0 24px 58px rgba(18, 78, 140, .12);
}

.appointment-step-card summary {
    min-height: 126px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 22px;
    cursor: pointer;
    list-style: none;
}

.appointment-step-card summary::-webkit-details-marker {
    display: none;
}

.appointment-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff3df;
    color: #ff8a00;
    font-weight: 900;
}

.appointment-step-card strong {
    display: block;
    color: #061a3a;
    font-size: 20px;
    line-height: 1.28;
}

.appointment-step-card em {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-top: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef7ff;
    color: #0b72d9;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.appointment-step-card summary i {
    margin-top: 5px;
    color: #7a8ea6;
    transition: transform .18s ease;
}

.appointment-step-card[open] summary i {
    transform: rotate(180deg);
}

.appointment-step-card p {
    margin: -6px 22px 22px 84px;
    color: #536980;
    line-height: 1.75;
}

.appointment-process-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 18px 22px;
    border: 1px solid #d7e8fa;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4f9ff, #fffaf2);
}

.appointment-process-cta span {
    color: #163556;
    font-weight: 900;
}

.appointment-process-cta a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #0b72d9;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.appointment-faq-section {
    padding: 72px 0;
    background:
        radial-gradient(circle at 14% 10%, rgba(11, 114, 217, .08), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.appointment-faq-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 24px;
    overflow-x: auto;
}

.appointment-faq-tabs button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #d7e7f8;
    border-radius: 999px;
    background: #fff;
    color: #24425f;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.appointment-faq-tabs button.active {
    border-color: #ff8a00;
    background: #fff6eb;
    color: #d66a00;
}

.appointment-faq-panel {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.appointment-faq-panel.active {
    display: grid;
}

.appointment-faq-item {
    overflow: hidden;
    border: 1px solid #d8e7f8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(18, 78, 140, .08);
}

.appointment-faq-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 86px;
    padding: 22px;
    color: #061a3a;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.appointment-faq-item summary::-webkit-details-marker {
    display: none;
}

.appointment-faq-item summary i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #7a8ea6;
    transition: transform .18s ease;
}

.appointment-faq-item[open] summary i {
    transform: rotate(180deg);
}

.appointment-faq-item p {
    margin: -8px 22px 22px;
    color: #536980;
    line-height: 1.75;
}

.appointment-more-faq {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 24px auto 0;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #bcd8f5;
    border-radius: 12px;
    background: #fff;
    color: #0b72d9;
    font-weight: 900;
    text-decoration: none;
}

.appointment-faq-section .appointment-more-faq {
    display: flex;
}

@media (max-width: 1080px) {
    .appointment-hero-grid {
        grid-template-columns: 1fr;
    }

    .appointment-form-card {
        max-width: 680px;
    }

    .appointment-timeline,
    .appointment-faq-panel.active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .appointment-hero {
        padding: 96px 0 48px;
    }

    .appointment-hero-copy h1 {
        font-size: clamp(36px, 11vw, 48px);
    }

    .appointment-hero-copy p {
        font-size: 16px;
    }

    .appointment-benefit-grid,
    .appointment-page-form .form-row.two,
    .appointment-timeline,
    .appointment-faq-panel.active {
        grid-template-columns: 1fr;
    }

    .appointment-quick-note {
        align-items: flex-start;
    }

    .appointment-form-card {
        padding: 22px;
        border-radius: 18px;
    }

    .appointment-form-head h2,
    .appointment-section-head h2 {
        font-size: 28px;
    }

    .appointment-process-section,
    .appointment-faq-section {
        padding: 48px 0;
    }

    .appointment-step-card summary {
        min-height: auto;
        padding: 18px;
    }

    .appointment-step-card p {
        margin: -4px 18px 18px 80px;
    }

    .appointment-process-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .appointment-process-cta a {
        justify-content: center;
    }

    .appointment-faq-tabs {
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .appointment-faq-item summary {
        min-height: auto;
        padding: 18px;
        font-size: 18px;
    }

    .appointment-faq-item p {
        margin: -4px 18px 18px;
    }
}
