/* website/assets/css/appointments.css
   In-Chamber & Virtual Consultation Interactive Booking Engine
   Adv. Nisar Ghatte Law Practice • Established 1984
   Strict AGENTS.md Compliance: Pure Vanilla CSS, Zero Inline Styles */

/* --------------------------------------------------------------------------
   1. HERO & AMBIENT BANNER
   -------------------------------------------------------------------------- */
.appointments-hero {
    position: relative;
    padding: 3.5rem 0 3rem 0;
    background: linear-gradient(180deg, #f5f2eb 0%, #faf9f8 100%);
    border-bottom: 1px solid #e7e4dc;
    overflow: hidden;
}

.appointments-hero-ambient {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.08) 0%, rgba(245, 242, 235, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.appointments-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #78716c;
    margin-bottom: 1rem;
}

.appointments-breadcrumbs a {
    color: #78716c;
    text-decoration: none;
    transition: color 0.15s ease;
}

.appointments-breadcrumbs a:hover {
    color: #97792e;
}

.appointments-breadcrumbs .current {
    color: #292524;
    font-weight: 600;
}

/* Bespoke Section Kicker (Matching Home & About Architecture) */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #836926;
}

.section-kicker::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #97792e, #c4a148);
    border-radius: 1px;
    flex-shrink: 0;
}

.section-kicker.justify-center::after,
.text-center .section-kicker::after {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #c4a148, #97792e);
    border-radius: 1px;
    flex-shrink: 0;
}

.appointments-hero-title {
    font-family: var(--font-serif, "Playfair Display", Georgia, serif);
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    color: #1c1917;
    letter-spacing: -0.02em;
}

.appointments-hero-lead {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #57534e;
}

.hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #44403c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   2. CALENDAR CARD & MASTER GRID
   -------------------------------------------------------------------------- */
.calendar-card {
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 20px -2px rgba(28, 25, 23, 0.04);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0ede6;
}

.calendar-subtitle {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #97792e;
}

.calendar-title {
    font-family: var(--font-serif, "Playfair Display", Georgia, serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #1c1917;
    margin-top: 0.15rem;
}

.calendar-nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: #fbf8f0;
    border: 1px solid #e7e4dc;
    color: #44403c;
    transition: all 0.2s ease;
}

.calendar-nav-btn img,
.calendar-nav-btn svg {
    transition: filter 0.2s ease, transform 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #97792e;
    color: #ffffff;
    border-color: #97792e;
}

.calendar-nav-btn:hover img,
.calendar-nav-btn:hover svg {
    filter: brightness(0) invert(1);
}

.calendar-today-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f7f6f4;
    border: 1px solid #e7e4dc;
    border-radius: 0.625rem;
    color: #44403c;
    transition: all 0.15s ease;
}

.calendar-today-btn:hover {
    background: #1c1917;
    color: #ffffff;
    border-color: #1c1917;
}

.calendar-weekdays-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #78716c;
    padding: 1rem 0 0.5rem 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    padding: 0.25rem 0;
}

/* Individual Day Cell */
.cal-day-cell {
    position: relative;
    min-height: 75px;
    padding: 20% 0% 10% 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.75rem;
    border: 1.5px solid transparent;
    background: transparent;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.cal-day-num {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.1;
    color: #292524;
}

.cal-slot-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.15rem 0.3rem;
    border-radius: 0.3rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    max-width: 100%;
    margin-top: 0.15rem;
}

.cal-slot-pill.available {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cal-slot-pill.booked {
    background: #f5f5f4;
    color: #78716c;
    border: 1px solid #e7e5e4;
    font-size: 0.5rem;
}

.cal-slot-pill.closed {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    font-size: 0.5rem;
}

.cal-slot-pill.past {
    color: #d6d3d1;
    font-size: 0.625rem;
}

.cal-slot-pill.empty {
    visibility: hidden;
}

.cal-day-cell.other-month {
    color: #d6d3d1;
    cursor: not-allowed;
    background: transparent;
}

.cal-day-cell.other-month .cal-day-num {
    color: #d6d3d1;
}

.cal-day-cell.past-date {
    color: #a8a29e;
    background: #faf9f7;
    cursor: not-allowed;
}

.cal-day-cell.past-date .cal-day-num {
    color: #a8a29e;
}

.cal-day-cell.sunday-closed {
    background: #fff5f5;
    cursor: not-allowed;
}

.cal-day-cell.sunday-closed .cal-day-num {
    color: #f43f5e;
}

.cal-day-cell.available-date {
    cursor: pointer;
    background: #ffffff;
    border-color: #e7e4dc;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.cal-day-cell.available-date:hover {
    background: #fbf8f0;
    border-color: #97792e;
    transform: translateY(-1px);
}

.cal-day-cell.available-date:hover .cal-day-num {
    color: #97792e;
}

.cal-day-cell.is-today {
    font-weight: 800;
    border: 1.5px dashed #d97706;
    background: #fffdf5;
}

.cal-day-cell.is-today .cal-day-num {
    color: #92400e;
    font-weight: 800;
}

.cal-day-cell.selected-date {
    background: #fbf5e6 !important;
    border: 2px solid #b89139 !important;
    box-shadow: 0 2px 10px rgba(184, 145, 57, 0.22);
}

.cal-day-cell.selected-date .cal-day-num {
    color: #856117 !important;
    font-weight: 800;
}

.cal-day-cell.selected-date .cal-slot-pill.available,
.cal-day-cell.selected-date .cal-slot-pill {
    background: #b89139 !important;
    color: #ffffff !important;
    border-color: #92691b !important;
}

.cal-day-cell.fully-booked {
    background: #f5f5f4 !important;
    border-color: #e7e5e4 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.cal-day-cell.fully-booked .cal-day-num {
    color: #a8a29e !important;
}

/* --------------------------------------------------------------------------
   3. SLOTS MASTER PANEL
   -------------------------------------------------------------------------- */
.slots-card {
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 20px -2px rgba(28, 25, 23, 0.04);
}

.slots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0ede6;
}

.slot-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #065f46;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mode Segmented Toggle */
.consultation-mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mode-option-label {
    display: block;
}

.mode-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: #faf9f8;
    border: 1.5px solid #e7e4dc;
    border-radius: 0.85rem;
    color: #44403c;
    transition: all 0.15s ease;
}

.mode-option-label input:checked+.mode-pill {
    background: #fbf8f0;
    border-color: #97792e;
    color: #1c1917;
    box-shadow: 0 2px 8px rgba(151, 121, 46, 0.12);
}

.mode-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: inherit;
}

.mode-desc {
    display: block;
    font-size: 0.6875rem;
    color: #78716c;
}

/* Shifts & Slots Grid */
.shift-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.4rem;
}

.shift-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #f5f2eb;
    border-radius: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #97792e;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
}

.slot-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    background: #ffffff;
    border: 1.5px solid #e7e4dc;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #292524;
    transition: all 0.15s ease;
    user-select: none;
}

.slot-btn:hover:not(:disabled) {
    background: #fdfaf3;
    border-color: #b89139;
    color: #856117;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(184, 145, 57, 0.15);
}

.slot-btn.selected-slot {
    background: #fdf8eb !important;
    border-color: #b89139 !important;
    border-width: 2px !important;
    color: #856117 !important;
    box-shadow: 0 3px 10px rgba(184, 145, 57, 0.22) !important;
}

.slot-btn.selected-slot .slot-time-text {
    color: #78530d !important;
    font-weight: 800 !important;
}

.slot-btn.selected-slot .slot-sub-text {
    color: #92691b !important;
    font-weight: 600 !important;
}

.slot-btn.selected-slot .slot-status-label {
    color: #047857 !important;
    font-weight: 700 !important;
}

.slot-btn:disabled,
.slot-btn.booked-slot {
    background: #f7f6f4;
    border-color: #e7e5e4;
    color: #a8a29e;
    cursor: not-allowed;
    text-decoration: none;
    opacity: 0.75;
}

.slot-btn.booked-slot .slot-time-text,
.slot-btn:disabled .slot-time-text {
    text-decoration: line-through;
    color: #a8a29e;
}

.slot-status-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
    color: #78716c;
}

/* --------------------------------------------------------------------------
   4. INTAKE FORM & PAYMENT CARD (RIGHT COLUMN)
   -------------------------------------------------------------------------- */
.intake-card {
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 20px -2px rgba(28, 25, 23, 0.04);
}

.intake-empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
}

.empty-state-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    background: #fbf8f0;
    border: 1px solid #e7e4dc;
}

.selected-slot-summary-banner {
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, #fbf8f0 0%, #f7f3e8 100%);
    border: 1px solid #e4d4b3;
    border-radius: 0.85rem;
}

.summary-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.input-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #292524;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.form-text-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1c1917;
    background: #faf9f8;
    border: 1.5px solid #e7e4dc;
    border-radius: 0.625rem;
    transition: all 0.15s ease;
    outline: none;
}

.form-text-input:focus {
    background: #ffffff;
    border-color: #97792e;
    box-shadow: 0 0 0 3px rgba(151, 121, 46, 0.12);
}

.phone-prefix-addon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding-left: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #78716c;
    pointer-events: none;
    z-index: 5;
}

.form-phone-input {
    padding-left: 3.5rem !important;
}

.field-error-msg {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* Fee Breakdown */
.fee-breakdown-card {
    background: #faf9f8;
    border: 1px solid #e7e4dc;
    border-radius: 0.85rem;
    padding: 1rem 1.15rem;
}

.pay-booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: #97792e;
    border: 1px solid #7d6323;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(151, 121, 46, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pay-booking-btn:hover {
    background: #7d6323;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(151, 121, 46, 0.4);
}

.pay-booking-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 9999px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0ede6;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #78716c;
}

.trust-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Chamber Verification Aside */
.chamber-card-aside {
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* --------------------------------------------------------------------------
   5. PREPARATION GUIDES & FAQ SECTION
   -------------------------------------------------------------------------- */
.guide-card {
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 1.125rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
    border-color: #d6d3d1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.guide-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
}

.faq-accordion-toggle[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   6. SIMULATED PAYMENT GATEWAY MODAL
   -------------------------------------------------------------------------- */
.payment-modal-backdrop,
.pass-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(28, 25, 23, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.payment-modal-backdrop.hidden,
.pass-modal-backdrop.hidden,
.hidden {
    display: none !important;
}

.payment-modal-container,
.pass-modal-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.pass-modal-container {
    max-width: 540px;
}

.payment-modal-card,
.pass-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e7e4dc;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.payment-modal-header {
    background: #1c1917;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
}

.method-option-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #faf9f8;
    border: 1.5px solid #e7e4dc;
    border-radius: 0.75rem;
    transition: all 0.15s ease;
}

.payment-method-option input:checked+.method-option-pill {
    background: #fbf8f0;
    border-color: #97792e;
}

.method-select-radio {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    border: 2px solid #d6d3d1;
    position: relative;
}

.payment-method-option input:checked+.method-option-pill .method-select-radio {
    border-color: #97792e;
    background: #97792e;
}

.payment-method-option input:checked+.method-option-pill .method-select-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 9999px;
    background: #ffffff;
}

/* --------------------------------------------------------------------------
   7. DIGITAL APPOINTMENT CONFIRMATION PASS
   -------------------------------------------------------------------------- */
.pass-card-header {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #f0ede6;
}

.pass-verified-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #ecfdf5;
    border-top: 1px solid #a7f3d0;
    border-bottom: 1px solid #a7f3d0;
}

.pass-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.25rem 1.5rem;
    background: #faf9f8;
    border-top: 1px solid #f0ede6;
}

.action-btn-print {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: #1c1917;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
    transition: background 0.15s ease;
}

.action-btn-print:hover {
    background: #332f2b;
}

.action-btn-close {
    padding: 0.65rem 1rem;
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #44403c;
    transition: all 0.15s ease;
}

.action-btn-close:hover {
    background: #f5f2eb;
}

/* --------------------------------------------------------------------------
   8. CHAMBER PREPARATION GUIDE & FAQ ACCORDION
   -------------------------------------------------------------------------- */
.guide-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 1.125rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 16px -2px rgba(56, 54, 57, 0.04);
    transition: all 0.25s ease;
}

.guide-card:hover {
    border-color: rgba(151, 121, 46, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(56, 54, 57, 0.08);
}

.guide-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-item-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 0.875rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item-card:hover {
    border-color: #d6d3d1;
}

.faq-item-card.active {
    border-color: rgba(151, 121, 46, 0.45);
    box-shadow: 0 4px 14px -2px rgba(56, 54, 57, 0.06);
}

.faq-accordion-toggle {
    width: 100%;
    padding: 1.125rem 1.25rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.faq-accordion-toggle:hover {
    color: #97792e;
}

.faq-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item-card.active .faq-chevron {
    transform: rotate(180deg);
    color: #97792e;
}

/* Global Toast */
.appointment-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #1c1917;
    border: 1px solid #44403c;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    animation: toastSlide 0.2s ease-out;
}

@keyframes toastSlide {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   8. COMPREHENSIVE MOBILE RESPONSIVENESS (< 1024px, < 768px, < 640px, < 480px, < 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .calendar-card,
    .slots-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 767px) {
    .appointments-hero {
        padding: 2rem 0 1.75rem 0;
    }

    .appointments-hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .appointments-hero-lead {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .hero-badges-row {
        gap: 0.5rem;
    }

    .hero-badge-item {
        width: 100%;
        justify-content: flex-start;
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
        line-height: 1.4;
        border-radius: 0.625rem;
    }
}

@media (max-width: 639px) {
    .appointments-page-main {
        padding-bottom: 2rem;
    }

    .calendar-card,
    .slots-card {
        padding: 1.15rem 0.85rem;
        border-radius: 1rem;
    }

    /* Prevent iOS Safari auto-zoom on input focus */
    .form-text-input,
    .form-phone-input,
    textarea.form-text-input {
        font-size: 16px !important;
        padding: 0.7rem 0.85rem;
        border-radius: 0.625rem;
    }

    .phone-prefix-addon {
        font-size: 16px;
        padding-left: 0.85rem;
    }

    .form-phone-input {
        padding-left: 3.75rem !important;
    }

    .pay-booking-btn {
        min-height: 48px;
        padding: 0.85rem 1rem;
        font-size: 0.9375rem;
        border-radius: 0.75rem;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }

    .slot-btn {
        min-height: 52px;
        padding: 0.55rem 0.35rem;
    }

    .slot-time-text {
        font-size: 0.8125rem;
    }

    .slot-sub-text {
        font-size: 0.6875rem;
    }

    .slot-status-label {
        font-size: 0.5625rem;
    }

    .payment-trust-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .trust-badge-item {
        font-size: 0.6875rem;
    }

    /* Modals Mobile Architecture */
    .pass-modal-container,
    .payment-modal-container {
        padding: 0.5rem;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pass-card,
    .payment-modal-card {
        width: 100%;
        max-height: 92vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 1rem;
    }

    .pass-footer-actions {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .action-btn-print,
    .action-btn-close {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .calendar-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.35rem;
        padding-bottom: 0.75rem;
    }

    .calendar-title {
        font-size: 0.95rem;
        margin: 0 0.15rem;
        white-space: nowrap;
        letter-spacing: -0.01em;
    }

    .calendar-nav-controls {
        display: flex;
        align-items: center;
        gap: 0.2rem;
        flex-shrink: 0;
    }

    .calendar-nav-btn {
        width: 2rem;
        height: 2rem;
        border-radius: 0.5rem;
    }

    .calendar-today-btn {
        padding: 0.25rem 0.55rem;
        font-size: 0.6875rem;
        border-radius: 0.5rem;
        height: 2rem;
        display: inline-flex;
        align-items: center;
    }

    .calendar-days-grid {
        gap: 0.2rem;
    }

    .cal-day-cell {
        min-height: 50px;
        padding: 4px 1px 3px 1px;
        border-radius: 0.45rem;
    }

    .cal-day-num {
        font-size: 0.75rem;
    }

    .cal-slot-pill {
        font-size: 0.5rem;
        padding: 1px 2px;
        border-radius: 0.25rem;
        max-width: 100%;
    }

    .cal-slot-pill.booked,
    .cal-slot-pill.closed {
        font-size: 0.45rem;
    }

    .slots-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.35rem;
    }

    .slots-header h3 {
        font-size: 1rem;
        line-height: 1.25;
    }

    .slot-count-badge {
        font-size: 0.625rem;
        padding: 0.2rem 0.45rem;
    }

    .fee-breakdown-card {
        padding: 0.75rem 0.85rem;
    }

    .pass-verified-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.65rem 0.85rem;
    }

    .pass-card-header {
        padding: 0.85rem;
    }

    .appointment-toast {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.65rem 1rem;
    }
}

@media (max-width: 360px) {
    .calendar-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .calendar-title {
        font-size: 0.875rem;
    }

    .slots-grid {
        grid-template-columns: 1fr;
    }

    .cal-day-cell {
        min-height: 44px;
    }
}

/* --------------------------------------------------------------------------
   9. PRINT STYLES FOR DIGITAL PASS
   -------------------------------------------------------------------------- */
@media print {
    body * {
        visibility: hidden;
    }

    #printablePassContent,
    #printablePassContent * {
        visibility: visible;
    }

    #printablePassContent {
        position: absolute;
        inset-block-start: 0;
        inset-inline-start: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .pass-footer-actions {
        display: none !important;
    }
}