/* style.css - Crimson Home | Fonts: Yeseva One (headings) + Manrope (body) */

/* Standardized Global Variables */
:root {
    --crimson-red: var(--brand-primary, #9b1c1c);
    --crimson-bright: var(--brand-secondary, #c0392b);
    --charcoal-deep: #1a1010;
    --charcoal-light: #2a1a1a;
    --white: #ffffff;
    --text-gray: #a1a1aa;
    --crimson-dark: #1a0a0a;
    --crimson-light: #fdf2f2;
    --font-display: var(--font-main, 'Yeseva One'), serif;
    --font-body: 'Manrope', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: #fdf2f2;
    color: var(--charcoal-deep);
    scroll-behavior: smooth;
}

/* Global heading font — Yeseva One for all h1–h3 */
h1, h2, h3 {
    font-family: var(--font-display);
    font-style: normal;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* --- NAVIGATION BAR STYLES --- */
nav {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background-color: var(--crimson-red);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(155,28,28,0.25);
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.logo-area a {
    display: flex;
    align-items: center;
}

.logo-area img {
    height: 92px;
    width: auto;
}

.logo-area h2 {
    font-family: var(--font-main, 'Yeseva One'), serif;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.nav-links { 
    display: flex; 
    align-items: center; 
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover { 
    color: var(--crimson-bright); 
}

.btn-book-nav {
    background-color: white;
    color: var(--crimson-red) !important;
    padding: 11px 26px;
    border-radius: 30px;
    margin-left: 28px !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.btn-book-nav:hover {
    background-color: var(--crimson-bright);
    color: white !important;
    box-shadow: 0 4px 16px rgba(155,28,28,0.35);
}

/* User Menu Dropdown */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1001;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--charcoal-deep) !important;
    text-decoration: none;
    margin: 0;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #fdf2f2;
}

.user-dropdown a:first-child {
    border-bottom: 1px solid #e5e7eb;
}

/* Nav Contact Items (phone + email in header) */
.nav-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 24px;
}

.nav-contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1px;
    transition: color 0.2s;
}

.nav-contact-item:hover {
    color: #fff;
}

.nav-contact-icon {
    width: 15px;
    height: 15px;
    opacity: 0.85;
    flex-shrink: 0;
}

/* Login link in nav */
.nav-login-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-login-link:hover {
    color: #fff !important;
}

/* Mobile Book Now button */
.mobile-book-btn {
    background: var(--crimson-red);
    padding: 15px;
    text-align: center;
    border-radius: 25px;
    margin-top: 10px;
    display: block;
    font-weight: 700;
}

/* Submenu & Mega Menu */
.submenu {
    background: rgba(26, 10, 10, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 8%;
    gap: 40px;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.submenu a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s;
}

.submenu a:hover {
    color: var(--crimson-bright);
}

.submenu-item {
    position: relative;
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    background: var(--crimson-red);
    padding: 40px 8%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 998;
    width: 100%;
    box-sizing: border-box;
}

.submenu-item:hover .mega-menu {
    display: block;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.mega-menu-column h4 {
    color: #ffe0e0;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    transition: 0.3s;
}

.mega-menu-column ul li a:hover {
    color: var(--crimson-bright);
}

/* Mobile Menu */
.mobile-menu-btn { 
    display: none; 
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--charcoal-deep);
    z-index: 2000;
    padding: 80px 40px;
    box-sizing: border-box;
    /* Slide via transform so the menu is always fully off-screen
       when inactive — using right:-100% with content-box width left
       a sliver of the menu visible at the right edge of narrower
       viewports (the "black strip" testers were seeing). */
    transform: translateX(100%);
    transition: transform 0.4s;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.mobile-menu a:hover {
    color: var(--crimson-bright);
}

@media (max-width: 768px) {
    nav {
        padding: 0 5%;
    }

    .logo-area h2 {
        font-size: 1.2rem;
    }

    .logo-area img {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .submenu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* --- CAROUSEL STYLES --- */
.carousel-container {
    position: relative;
    width: 100%;
    /* Fill the visible viewport minus the sticky nav. We use svh (small
       viewport height) rather than dvh (dynamic): dvh tracks the iOS
       address-bar collapse in real time, which resizes the carousel
       mid-scroll and shoves every section below it up/down — reads as a
       page "jump" on mobile. svh locks to the URL-bar-visible size, so a
       small gap appears at the bottom once the chrome collapses but the
       page stops shaking. vh is the universal fallback. */
    height: calc(100vh  - 100px);
    height: calc(100svh - 100px);
    overflow: hidden;
    background: var(--charcoal-deep);
}

@media (max-width: 640px) {
    /* Mobile nav is 64px tall (see customer.css mobile overrides). svh
       (not dvh) so the iOS address-bar collapse doesn't resize the hero
       mid-scroll and shake the rest of the page — same reason as above. */
    .carousel-container {
        height: calc(100vh  - 64px);
        height: calc(100svh - 64px);
        min-height: 480px;
    }
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.slide.active { 
    opacity: 1; 
}

.slide-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.floating-text {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.floating-text h1 { 
    font-family: var(--font-display); 
    font-size: 4rem; 
    font-weight: 400;
    font-style: normal;
    letter-spacing: 1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin: 0; 
}

.floating-text p { 
    font-size: 1.2rem; 
    margin: 20px 0; 
    font-weight: 300; 
}

/* --- MAIN CONTENT LAYOUT (Homepage) --- */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 80px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.booking-sidebar {
    background: var(--crimson-red);
    color: white;
}

/* --- FORM ELEMENTS --- */
input, select, textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.btn-submit {
    background: var(--brand-cta, var(--charcoal-deep));
    color: white;
    border: none;
    padding: 18px;
    width: 100%;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { 
    background: var(--crimson-bright); 
    color: var(--charcoal-deep); 
}

/* --- PAGE CONTENT (General) --- */
.page-content {
    background-color: #fdf2f2;
    padding: 60px 8%;
    min-height: 70vh;
}

/* --- LOGIN PAGE STYLES --- */
.login-card {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 60px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.icon {
    width: 80px;
    height: 80px;
    background: var(--crimson-red);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.login-card h1 {
    font-family: var(--font-main, 'Yeseva One'), serif;
    color: var(--crimson-red);
    font-size: 2rem;
    margin-bottom: 15px;
}

.subtitle {
    color: var(--text-gray);
    margin-bottom: 35px;
    font-size: 0.95rem;
}

.login-btn {
    background: var(--crimson-red);
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: var(--crimson-bright);
    color: var(--charcoal-deep);
}

.forgot-link {
    color: var(--crimson-red);
    text-decoration: none;
    font-size: 0.85rem;
}

/* --- ACCOUNT PAGE LAYOUT --- */
.account-page-wrapper {
    padding: 40px 5%;
    min-height: 80vh;
}

.account-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* --- ACCOUNT / MY ACCOUNT SIDEBAR --- */
.account-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(155,28,28,0.06);
    border: 1px solid #f0dada;
    position: sticky;
    top: 120px;
}

.sidebar-nav h3 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-gray);
    margin: 0 0 14px 6px;
}

.sidebar-nav hr {
    border: none;
    border-top: 1px solid #f0dada;
    margin: 12px 0;
}

.nav-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 8px;
    text-align: left;
    text-decoration: none;
    color: #666;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-btn:hover {
    background: #fdf2f2;
    color: var(--crimson-red);
}

.nav-btn.active {
    background: var(--crimson-red);
    color: white;
}

.nav-btn.logout {
    color: #e74c3c;
}

/* --- CUSTOMER BOOKING DETAILS PAGE STYLES (Step 2) --- */
.details-container {
    max-width: 750px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.page-heading {
    font-family: var(--font-main, 'Yeseva One'), serif;
    color: var(--crimson-red);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 12px;
    color: var(--crimson-red);
    font-size: 1.1rem;
}

.address-card {
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.address-card.active {
    border-color: var(--crimson-red);
    background: #fdf2f2;
}

.address-card input {
    position: absolute;
    opacity: 0;
}

.autocomplete-box {
    background: #fdf2f2;
    padding: 25px;
    border: 2px solid var(--crimson-red);
    border-radius: 12px;
    margin-top: 20px;
}

input[type="date"],
input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.time-slot input {
    display: none;
}

.time-slot label {
    display: block;
    padding: 12px;
    background: #f4f4f5;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.time-slot input:checked + label {
    background: var(--crimson-red);
    color: white;
    font-weight: bold;
}

/* --- CUSTOMER BOOKING SUMMARY PAGE STYLES (Step 3) --- */
.summary-page-wrapper {
    background-color: #fdf2f2;
    padding: 60px 5%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.summary-card {
    max-width: 800px;
    width: 100%;
    background: white;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-top: 8px solid var(--crimson-red);
}

.section-title {
    color: var(--crimson-red);
    font-family: var(--font-main, 'Yeseva One'), serif;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
    background: #fdf2f2;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f5c6c6;
}

.info-label {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 800;
    display: block;
    margin-bottom: 3px;
}

.info-value {
    color: #1e293b;
    font-weight: bold;
    font-size: 1rem;
    margin: 0;
}

.job-item {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.media-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.btn-confirm {
    background: var(--crimson-red);
    color: white;
    padding: 18px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-confirm:hover {
    background: var(--crimson-bright);
    color: var(--charcoal-deep);
}

.btn-back {
    background: white;
    color: #64748b;
    text-align: center;
    padding: 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #cbd5e1;
    width: 100%;
    display: block;
    transition: 0.3s;
}

.btn-back:hover {
    background: #fdf2f2;
    border-color: var(--crimson-red);
    color: var(--crimson-red);
}

/* --- CUSTOMER COMPLETE BOOKING PAGE STYLES (Success) --- */
.success-page-wrapper {
    padding: 80px 5%;
    background: #fdf2f2;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    max-width: 600px;
    width: 100%;
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #fdf2f2;
    color: #c0392b;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.success-message {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.reference-box {
    background: #fdf2f2;
    border: 1px dashed #f5c6c6;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.reference-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.reference-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reference-badges .badge {
    background: var(--crimson-red);
    color: white;
    padding: 6px 15px;
    border-radius: 10px;
    font-weight: bold;
}

.success-actions {
    display: grid;
    gap: 15px;
}

.btn-download {
    background: var(--crimson-red);
    color: white;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-download:hover {
    background: #922b21;
}

.link-dashboard {
    color: var(--crimson-red);
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    transition: 0.3s;
}

.link-dashboard:hover {
    color: var(--crimson-bright);
}

/* --- FOOTER --- */
footer { 
    text-align: center; 
    padding: 40px; 
    color: var(--text-gray); 
    font-size: 0.8rem; 
}

/* ============================================================
   ADMIN TEAM COMMISSION PAGE STYLES
   ============================================================ */

.comm-filter-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.comm-filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.comm-field {
    display: flex;
    flex-direction: column;
}

.comm-field--wide {
    flex: 1 1 180px;
    min-width: 180px;
}

.comm-field--date {
    flex: 0 0 140px;
}

.comm-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.comm-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    box-sizing: border-box;
    background: white;
}

.comm-input:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192,57,43,0.1);
}

.comm-btn-filter {
    background: #c0392b;
    color: white;
    border: none;
    padding: 11px 25px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.comm-btn-filter:hover {
    background: #922b21;
}

.comm-period-btns {
    display: flex;
    gap: 5px;
}

.comm-period-btn {
    background: #eee;
    color: #333;
    padding: 11px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.comm-period-btn:hover {
    background: #ddd;
}

/* ============================================================
   INDEX.PHP — Homepage Specific Styles
   ============================================================ */

/* Carousel BOOK NOW button override (inside slides) */
.carousel-book-btn {
    display: inline-block;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 30px;
    background: var(--crimson-red);
    border: 2px solid rgba(255,255,255,0.4);
    margin-top: 10px;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.carousel-book-btn:hover {
    background: var(--crimson-bright);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-2px);
}

/* Booking section layout */
.booking-card {
    font-size: 2rem;
    margin: 0 0 8px 0;
}

.booking-card-subtitle {
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Rates card */
.rates-card-heading {
    color: var(--crimson-red);
    margin: 0 0 8px 0;
}

.rate-item {
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.rate-amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--crimson-red);
    display: block;
    line-height: 1.2;
}

.rate-label {
    color: var(--text-gray);
    margin: 4px 0 0 0;
    font-size: 0.9rem;
}

.rates-quote {
    font-size: 0.9rem;
    margin-top: 30px;
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.6;
    border-left: 3px solid var(--crimson-red);
    padding-left: 14px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* Fade up — default animation class */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in (no movement) */
.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Slide in from left */
.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children — each child gets a delay */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.4s; }


/* --- ACCOUNT MAIN CONTENT --- */
.account-main-content {
    min-width: 0;
}

.account-header {
    margin-bottom: 24px;
}

.account-header h1 {
    margin: 0 0 6px 0;
    font-size: 1.8rem;
    color: var(--charcoal-deep);
}

.account-header p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- BOOKINGS TABLE --- */
.bookings-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr 1fr;
    gap: 12px;
    padding: 10px 18px;
    background: #fdf2f2;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-gray);
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    background: white;
    border-radius: 10px;
    border: 1px solid #f0dada;
    text-decoration: none;
    color: var(--charcoal-deep);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-item:hover {
    border-color: var(--crimson-red);
    box-shadow: 0 2px 12px rgba(155,28,28,0.08);
}

.booking-service {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.booking-id {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--crimson-red);
    letter-spacing: 0.3px;
}

.service-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal-deep);
}

.booking-location,
.booking-date,
.booking-created {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.booking-status {
    display: flex;
    align-items: center;
    gap: 7px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-text {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.no-bookings {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #f0dada;
    color: var(--text-gray);
}

.no-bookings a {
    color: var(--crimson-red);
    font-weight: 600;
    text-decoration: none;
}

/* Account page responsive */
@media (max-width: 768px) {
    .account-container {
        grid-template-columns: 1fr;
    }
    .account-sidebar {
        position: static;
    }
    .bookings-table-header {
        display: none;
    }
    .booking-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* ============================================================
   CUSTOMER ACCOUNT PAGES — ch- prefixed classes
   ============================================================ */

.ch-account-wrap {
    padding: 90px 5% 40px;
    min-height: 80vh;
    background: #fdf2f2;
}

.ch-account-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* ── Sidebar ── */
.ch-sidebar {
    flex: 0 0 240px;
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    border: 1px solid #f0dada;
    box-shadow: 0 2px 8px rgba(155,28,28,0.06);
    position: sticky;
    top: 120px;
}

.ch-sidebar h3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-gray);
    margin: 0 0 12px 6px;
    font-family: var(--font-body);
}

.ch-divider {
    border: none;
    border-top: 1px solid #f0dada;
    margin: 10px 0;
}

.ch-nav-btn {
    display: block;
    padding: 12px 16px;
    margin-bottom: 4px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.ch-nav-btn:hover {
    background: #fdf2f2;
    color: var(--crimson-red);
}

.ch-nav-btn.active {
    background: var(--crimson-red);
    color: white;
}

.ch-logout {
    color: #e74c3c;
}

/* Count badge on account-menu items (open bookings / quotations).
   Inline so it works in both the desktop list and the mobile pill grid. */
.ch-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 8px;
    border-radius: 999px;
    background: var(--crimson-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}
.ch-nav-btn.active .ch-nav-badge {
    background: #fff;
    color: var(--crimson-red);
}

/* ── Main content ── */
.ch-main {
    flex: 1;
    min-width: 0;
}

.ch-heading {
    margin: 0 0 6px;
    font-size: 1.8rem;
    color: var(--charcoal-deep);
}

.ch-sub {
    margin: 0 0 24px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ── Table header ── */
.ch-table-head {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr 1fr;
    gap: 12px;
    padding: 10px 18px;
    background: #fdf2f2;
    border: 1px solid #f0dada;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-gray);
}

/* ── Booking rows ── */
.ch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ch-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    background: white;
    border-radius: 10px;
    border: 1px solid #f0dada;
    text-decoration: none;
    color: var(--charcoal-deep);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ch-row:hover {
    border-color: var(--crimson-red);
    box-shadow: 0 2px 12px rgba(155,28,28,0.1);
}

.ch-col-service {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ch-id {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--crimson-red);
    letter-spacing: 0.3px;
}

.ch-svc {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal-deep);
}

.ch-col {
    font-size: 0.85rem;
    color: #666;
}

.ch-status {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ch-stxt {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ch-empty {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #f0dada;
    color: var(--text-gray);
}

.ch-empty a {
    color: var(--crimson-red);
    font-weight: 600;
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ch-account-grid {
        flex-direction: column;
    }
    .ch-sidebar {
        position: static;
        flex: none;
        width: 100%;
        box-sizing: border-box;
    }
    .ch-table-head {
        display: none;
    }
    .ch-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ── Account page shared utilities ── */
.ch-page-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ch-alert {
    padding: 13px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ch-alert-ok   { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.ch-alert-err  { background: #fdf2f2; color: #9b1c1c; border: 1px solid #f0dada; }
.ch-alert-info { background: #fdf2f2; color: #9b1c1c; border: 1px solid #f0dada; }

/* ── Buttons ── */
.ch-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--crimson-red);
    color: white;
    border: 2px solid var(--crimson-red);
    padding: 11px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ch-btn-primary:hover { background: var(--crimson-bright); border-color: var(--crimson-bright); }

.ch-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--crimson-red);
    border: 2px solid #f0dada;
    padding: 9px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.ch-btn-outline:hover { border-color: var(--crimson-red); background: #fdf2f2; }

.ch-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    color: #aaa;
    border: 1px solid #eee;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
    background: transparent;
}

.ch-btn-ghost:hover { color: #e74c3c; border-color: #e74c3c; }

/* ── Address grid ── */
.ch-addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ch-addr-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #f0dada;
    box-shadow: 0 2px 8px rgba(155,28,28,0.04);
    position: relative;
    transition: border-color 0.2s;
}

.ch-addr-card.primary { border-color: var(--crimson-red); }

.ch-primary-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--crimson-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 20px;
}

.ch-nickname {
    display: inline-block;
    background: #fdf2f2;
    color: var(--crimson-red);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.ch-addr-detail {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.ch-addr-detail strong { display: block; color: var(--charcoal-deep); margin-bottom: 2px; }

.ch-addr-actions { display: flex; gap: 10px; }

/* ── Form card ── */
.ch-form-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #f0dada;
    box-shadow: 0 2px 8px rgba(155,28,28,0.04);
    margin-bottom: 16px;
    overflow: hidden;
}

.ch-form-section {
    padding: 16px 20px;
    border-bottom: 1px solid #f5eded;
}

.ch-form-section:last-child { border-bottom: none; }

.ch-form-section h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--crimson-red);
    letter-spacing: 1px;
}

.ch-form-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ch-field { margin-bottom: 10px; }
.ch-field:last-child { margin-bottom: 0; }

.ch-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 5px;
}

.ch-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: white;
}

.ch-input:focus   { outline: none; border-color: var(--crimson-red); }
.ch-input:disabled { background: #f9f9f9; color: #aaa; cursor: not-allowed; }

.ch-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #555;
    margin-top: 10px;
}

.ch-checkbox-label input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #9b1c1c;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ch-page-top    { flex-direction: column; }
    .ch-addr-grid   { grid-template-columns: 1fr; }
    .ch-form-2col   { grid-template-columns: 1fr; }
}

/* ── Quote page specific ── */
.ch-quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
}

.ch-quote-table th {
    text-align: left;
    padding: 10px 12px;
    background: #fdf2f2;
    border-bottom: 2px solid #f0dada;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-gray);
}

.ch-quote-table td {
    padding: 12px;
    border-bottom: 1px solid #f5eded;
    font-size: 0.9rem;
    color: #444;
}

.ch-quote-table tr:last-child td { border-bottom: none; }

.ch-type-badge {
    background: #fdf2f2;
    color: var(--crimson-red);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ch-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5eded;
    font-size: 0.95rem;
    color: #555;
}

.ch-summary-row:last-child { border-bottom: none; }

.ch-summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--crimson-red);
    padding-top: 14px;
}

.ch-btn-accept {
    width: 100%;
    background: var(--crimson-red);
    color: white;
    border: 2px solid var(--crimson-red);
    padding: 14px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ch-btn-accept:hover {
    background: var(--crimson-bright);
    border-color: var(--crimson-bright);
}

.ch-btn-decline {
    width: 100%;
    background: white;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 14px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ch-btn-decline:hover {
    background: #e74c3c;
    color: white;
}

/* ── Booking view page ── */
.ch-detail-val {
    margin: 4px 0 0;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.6;
}

.ch-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.ch-media-thumb {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #f0dada;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

.ch-media-empty {
    color: var(--text-gray);
    font-size: 0.88rem;
    margin: 4px 0 0;
}