/* ==================== UNIFIED BRAND PALETTE ==================== */
:root {
    --brand-green: #03533B;
    --brand-gold: #F8BB01;
    --brand-green-light: #0a6e4f;
    --brand-green-dark: #023a29;
    --brand-green-pale: #e8f2ee;
    --brand-green-mist: #f4f9f7;
    --brand-gold-light: #ffc933;
    --brand-gold-dark: #d9a300;
    --brand-gold-pale: #fef6df;

    --gl-cream: #fbfbfa;
    --gl-warm: #f7f6f2;
    --gl-white: #ffffff;
    --gl-text1: #1a221e;
    --gl-text2: #2d3b34;
    --gl-text3: #63776c;
    --gl-border: #e5ede8;

    --gl-radius: 12px;
    --gl-radius-lg: 20px;
    --gl-shadow: 0 2px 14px rgba(3, 83, 59, 0.08);
    --gl-shadow-hover: 0 20px 40px rgba(3, 83, 59, 0.16);
}

html { overflow-y: scroll; }

.appointment-page-wrapper {
    background: var(--gl-cream);
    min-height: 80vh;
    padding-bottom: 5rem;
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    color: var(--gl-text1);
}

/* ==================== HERO BANNER ==================== */
.appointment-header-section {
    background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--brand-green) 50%, var(--brand-green-light) 100%);
    color: #fff;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.appointment-header-section::before {
    content: '';
    position: absolute; top: -30%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(248, 187, 1, 0.14) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.appointment-header-section::after {
    content: '';
    position: absolute; bottom: -40%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(248, 187, 1, 0.08) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.appointment-header-container {
    position: relative; z-index: 2;
    max-width: 900px; margin: 0 auto;
}
.appointment-header-container h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--brand-gold);
    letter-spacing: -0.3px; line-height: 1.2;
}
.appointment-header-container p {
    color: #c8dbd1;
    font-size: 0.95rem;
    max-width: 620px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}
.appointment-breadcrumbs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    display: flex; justify-content: center;
    align-items: center; gap: 8px;
    flex-wrap: wrap;
}
.appointment-breadcrumbs a {
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.appointment-breadcrumbs a:hover { color: #ffffff; }
.appointment-breadcrumbs span { color: rgba(255, 255, 255, 0.55); }

/* ==================== BODY CONTAINER ==================== */
.appointment-body-container {
    max-width: 1280px;
    margin: -2.5rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* ==================== MAIN GRID ==================== */
.appointment-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ==================== FEE BANNER ==================== */
.fee-banner {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
    color: var(--brand-green);
    border-radius: var(--gl-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(248, 187, 1, 0.35);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.fee-banner-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.fee-banner-text { flex: 1; min-width: 0; }
.fee-banner-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}
.fee-banner-text span {
    font-size: 0.82rem;
    opacity: 0.85;
    font-weight: 500;
}
.fee-banner-amount {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
    color: var(--brand-green);
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 16px;
    border-radius: 30px;
    flex-shrink: 0;
}

/* ==================== FORM CARD ==================== */
.appointment-form-card {
    background: var(--gl-white);
    border-radius: var(--gl-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(3, 83, 59, 0.1);
    border: 1px solid var(--gl-border);
    position: relative;
    overflow: hidden;
}
.appointment-form-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(248, 187, 1, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.appointment-form-card h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brand-green);
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
    line-height: 1.2;
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 10px;
}
.appointment-form-card h2 i {
    color: var(--brand-gold);
    font-size: 1.5rem;
}
.appointment-form-card > p {
    font-size: 0.9rem;
    color: var(--gl-text3);
    margin-bottom: 1.75rem;
    line-height: 1.6;
    position: relative; z-index: 1;
}

/* ==================== FORM LAYOUT ==================== */
.ayur-appointment-form {
    position: relative;
    z-index: 1;
    display: block;
}
.ayur-appointment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0; row-gap: 0;
    margin: 0 0 1.75rem 0;
    align-items: start;
}
.ayur-appointment-form .form-row .form-group {
    display: flex; flex-direction: column;
    gap: 6px; margin: 0;
    position: relative;
    padding: 0 0.75rem;
    min-width: 0;
}
.ayur-appointment-form .form-row .form-group:first-child { padding-left: 0; }
.ayur-appointment-form .form-row .form-group:last-child { padding-right: 0; }
.ayur-appointment-form > .form-group {
    display: flex; flex-direction: column;
    gap: 6px; margin: 0 0 1.75rem 0;
    position: relative;
}
.ayur-appointment-form .form-row:last-of-type,
.ayur-appointment-form > .form-group:last-of-type { margin-bottom: 0.75rem; }

.ayur-appointment-form label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gl-text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 5px;
}
.ayur-appointment-form label i { color: var(--brand-green); font-size: 0.9rem; }
.ayur-appointment-form label .req-star {
    color: #DC2626;
    font-weight: 900;
    font-size: 0.85rem;
}

.ayur-appointment-form input,
.ayur-appointment-form select,
.ayur-appointment-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gl-border);
    border-radius: var(--gl-radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--gl-text1);
    outline: none;
    transition: all 0.22s ease;
    background: var(--gl-white);
    box-sizing: border-box;
}
.ayur-appointment-form input::placeholder,
.ayur-appointment-form textarea::placeholder { color: #b0b8b3; }

.ayur-appointment-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%2303533B' d='M6 8L1 3h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.ayur-appointment-form input:focus,
.ayur-appointment-form select:focus,
.ayur-appointment-form textarea:focus {
    border-color: var(--brand-gold);
    background: var(--gl-white);
    box-shadow: 0 0 0 3px rgba(248, 187, 1, 0.15);
}
.ayur-appointment-form input.input-error,
.ayur-appointment-form select.input-error,
.ayur-appointment-form textarea.input-error {
    border-color: #DC2626;
    background: #fef2f2;
}
.ayur-appointment-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* ==================== FIELD ERROR ==================== */
.field-error {
    display: none;
    font-size: 0.72rem;
    color: #DC2626;
    font-weight: 600;
    margin-top: 2px;
    align-items: flex-start;
    gap: 5px;
    padding: 4px 8px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid #DC2626;
    animation: errorSlideIn 0.3s ease;
}
.field-error.show { display: flex; }
.field-error i { font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
@keyframes errorSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== PAY BUTTON ==================== */
.btn-pay-book {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
    color: var(--brand-green);
    border: none;
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 28px rgba(248, 187, 1, 0.4);
    font-family: inherit;
    margin-top: 0.25rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}
.btn-pay-book:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(248, 187, 1, 0.5);
    background: linear-gradient(135deg, #ffc933 0%, var(--brand-gold) 100%);
}
.btn-pay-book:active:not(:disabled) { transform: translateY(0); }
.btn-pay-book:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-pay-book i { font-size: 1.25rem; }

/* ==================== SIDEBAR ==================== */
.appointment-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 90px;
}
.sidebar-card {
    background: var(--gl-white);
    border-radius: var(--gl-radius-lg);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--gl-border);
    box-shadow: 0 4px 20px rgba(3, 83, 59, 0.04);
    position: relative;
    overflow: hidden;
}
.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-green-pale);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px;
}
.sidebar-card h3 i { color: var(--brand-gold); font-size: 1.1rem; }

.why-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column;
    gap: 0.9rem;
}
.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--gl-text2);
}
.why-list-icon {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--brand-green-pale);
    color: var(--brand-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.why-list li:hover .why-list-icon {
    background: var(--brand-green);
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
}
.why-list-text strong {
    color: var(--gl-text1);
    font-weight: 700;
    display: block;
    margin-bottom: 1px;
    font-size: 0.88rem;
}
.why-list-text span {
    font-size: 0.78rem;
    color: var(--gl-text3);
}

.call-card {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: #ffffff;
    border: none;
    text-align: center;
    padding: 2rem 1.5rem;
}
.call-card::before {
    content: '';
    position: absolute; top: -50%; right: -50%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(248, 187, 1, 0.18) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.call-card h3 {
    color: var(--brand-gold);
    border-bottom: 2px solid rgba(248, 187, 1, 0.25);
    justify-content: center;
    position: relative; z-index: 1;
}
.call-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    position: relative; z-index: 1;
}
.call-card-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(248, 187, 1, 0.15);
    border: 2px solid rgba(248, 187, 1, 0.4);
    color: var(--brand-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
    animation: pulseGlow 3s ease-in-out infinite;
    position: relative; z-index: 1;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248, 187, 1, 0.4); }
    50%      { box-shadow: 0 0 0 18px rgba(248, 187, 1, 0); }
}
.btn-call-direct {
    background: var(--brand-gold);
    color: var(--brand-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 22px rgba(248, 187, 1, 0.35);
    width: 100%;
    position: relative; z-index: 1;
}
.btn-call-direct:hover {
    background: #ffffff;
    color: var(--brand-green);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

.hours-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column;
    gap: 0.6rem;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gl-text2);
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--gl-border);
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { font-weight: 600; color: var(--gl-text1); }
.hours-list .time {
    color: var(--brand-green);
    font-weight: 700;
    font-size: 0.82rem;
}
.hours-list .closed {
    color: #DC2626;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ==================== PROCESSING MODAL ==================== */
.pay-processing-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 83, 59, 0.6);
    backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.pay-processing-overlay.active { display: flex; }
.pay-processing-box {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(3, 83, 59, 0.35);
    animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.pay-processing-spinner {
    width: 64px; height: 64px;
    border: 5px solid var(--brand-green-pale);
    border-top-color: var(--brand-gold);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-processing-box h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-green);
    margin-bottom: 0.5rem;
}
.pay-processing-box p {
    font-size: 0.88rem;
    color: var(--gl-text3);
    line-height: 1.6;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .appointment-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .appointment-sidebar { position: static; }
    .appointment-form-card { padding: 2rem; }
}
@media (max-width: 768px) {
    .appointment-header-section { padding: 2.75rem 1rem 2.25rem; }
    .appointment-body-container {
        margin-top: -2rem;
        padding: 0 1rem;
    }
    .appointment-form-card {
        padding: 1.75rem;
        border-radius: var(--gl-radius);
    }
    .appointment-form-card h2 { font-size: 1.45rem; }
}
@media (max-width: 640px) {
    .appointment-header-section { padding: 2.25rem 0.9rem 1.85rem; }
    .appointment-header-container p { font-size: 0.85rem; }
    .appointment-breadcrumbs { font-size: 12px; }
    .appointment-body-container {
        margin-top: -1.75rem;
        padding: 0 0.75rem;
    }
    .appointment-form-card {
        padding: 1.4rem 1.15rem;
        border-radius: var(--gl-radius);
    }
    .appointment-form-card h2 {
        font-size: 1.3rem;
        gap: 8px;
    }
    .appointment-form-card h2 i { font-size: 1.25rem; }
    .appointment-form-card > p {
        font-size: 0.84rem;
        margin-bottom: 1.4rem;
    }
    .fee-banner {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
        border-radius: var(--gl-radius);
    }
    .fee-banner-icon {
        width: 42px; height: 42px;
        font-size: 1.25rem;
    }
    .fee-banner-text strong { font-size: 0.95rem; }
    .fee-banner-text span { font-size: 0.75rem; }
    .fee-banner-amount {
        font-size: 1.5rem;
        padding: 4px 12px;
    }
    .ayur-appointment-form .form-row {
        grid-template-columns: 1fr;
        column-gap: 0; row-gap: 0;
        margin: 0 0 1.5rem 0;
    }
    .ayur-appointment-form .form-row .form-group {
        padding: 0; margin: 0;
    }
    .ayur-appointment-form .form-row .form-group:not(:last-child) {
        margin-bottom: 1.25rem;
    }
    .ayur-appointment-form > .form-group { margin: 0 0 1.5rem 0; }
    .ayur-appointment-form input,
    .ayur-appointment-form select,
    .ayur-appointment-form textarea {
        padding: 11px 14px;
        font-size: 0.86rem;
        border-radius: 10px;
    }
    .ayur-appointment-form textarea { min-height: 90px; }
    .btn-pay-book {
        padding: 14px 22px;
        font-size: 0.92rem;
        gap: 8px;
    }
    .sidebar-card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--gl-radius);
    }
    .sidebar-card h3 { font-size: 0.92rem; }
    .why-list li { font-size: 0.82rem; }
    .call-card { padding: 1.6rem 1.15rem; }
    .call-card-icon {
        width: 52px; height: 52px;
        font-size: 1.35rem;
    }
    .hours-list li { font-size: 0.8rem; }
}
@media (max-width: 380px) {
    .appointment-body-container { padding: 0 0.55rem; }
    .appointment-form-card { padding: 1.15rem 0.95rem; }
    .appointment-form-card h2 { font-size: 1.15rem; }
    .fee-banner-amount { font-size: 1.35rem; }
    .ayur-appointment-form input,
    .ayur-appointment-form select,
    .ayur-appointment-form textarea {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
    .btn-pay-book {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 6px;
    }
    .sidebar-card h3 { font-size: 0.85rem; }
}
