/* ============================================
   DentalCare Clinic — Template B Modern Bold
   ============================================ */

/* === VARIABLES === */
:root {
    --p: #06b6d4;
    --p2: #0284c7;
    --p-light: #e0f7fa;
    --dark: #0f172a;
    --dark2: #1e293b;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --text: #1e293b;
    --text-l: #64748b;
    --bg: #fff;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --r: 12px;
    --r-pill: 50px;
    --sh: 0 2px 8px rgba(0,0,0,.08);
    --sh-lg: 0 8px 24px rgba(0,0,0,.12);
    --transition: .2s ease;
}

/* === DARK MODE === */
html.dark {
  --p:#22d3ee;--p2:#06b6d4;--p-light:rgba(6,182,212,.12);
  --dark:#f1f5f9;--dark2:#e2e8f0;
  --accent:#fbbf24;--accent-light:rgba(251,191,36,.15);
  --text:#f1f5f9;--text-l:#94a3b8;
  --bg:#0f172a;--bg-alt:#1e293b;--border:#334155;
  --sh:0 2px 8px rgba(0,0,0,.4);--sh-lg:0 8px 24px rgba(0,0,0,.5);
}
html.dark body { background:#0f172a; color:#f1f5f9; }
html.dark .nav { background:#0f172a; border-color:#334155; }
html.dark .nav a:not(.btn) { color:#cbd5e1; }
html.dark .nav a:not(.btn):hover, html.dark .nav a:not(.btn).active { color:#22d3ee; }
html.dark .logo { color:#f1f5f9; }
html.dark .nav-links { background:#0f172a; }
html.dark .sec-alt { background:#1e293b; }
html.dark .sec-dark { background:#0f172a; }
html.dark .card, html.dark .testi-card, html.dark .service-card, html.dark .price-card, html.dark .faq-item, html.dark .blog-card, html.dark .doctor-card, html.dark .package-card {
  background:#1e293b; border-color:#334155; color:#f1f5f9;
}
html.dark input, html.dark select, html.dark textarea { background:#1e293b; color:#f1f5f9; border-color:#475569; }
html.dark footer, html.dark .footer { background:#1e293b; color:#94a3b8; }
html.dark .footer a { color:#94a3b8; }
html.dark .footer a:hover { color:#22d3ee; }
html.dark .cookie-banner, html.dark .ck { background:#1e293b; border-color:#334155; color:#cbd5e1; }
html.dark .hero { background:#0f172a; }
html.dark h1, html.dark h2, html.dark h3, html.dark h4 { color:#f1f5f9; }
html.dark .btn-ghost, html.dark .btn.btn-ghost { color:#cbd5e1; border-color:#475569; }
html.dark .hamburger { color:#f1f5f9; }

/* Dark mode: sections, text, backgrounds */
html.dark .sec { background:#0f172a; }
html.dark .page-header, html.dark .pg-hero { background:#1e293b; border-color:#334155; }
html.dark .cred-bar { background:#1e293b; border-color:#334155; }
html.dark .topbar { background:#0b1120; }

/* Dark mode: all text colors */
html.dark p, html.dark li, html.dark span, html.dark td, html.dark label { color:#cbd5e1; }
html.dark .sec-header p { color:#94a3b8; }
html.dark strong { color:#f1f5f9; }
html.dark a { color:#cbd5e1; }
html.dark a:hover { color:#22d3ee; }

/* Dark mode: inline styles override (elements with hardcoded colors) */
html.dark [style*="color: #64748b"],
html.dark [style*="color:#64748b"],
html.dark [style*="color: #94a3b8"],
html.dark [style*="color:#94a3b8"],
html.dark [style*="color: #475569"],
html.dark [style*="color:#475569"] { color:#94a3b8 !important; }

html.dark [style*="color: #1e293b"],
html.dark [style*="color:#1e293b"],
html.dark [style*="color: #0f172a"],
html.dark [style*="color:#0f172a"] { color:#f1f5f9 !important; }

html.dark [style*="background: #fff"],
html.dark [style*="background:#fff"],
html.dark [style*="background: #ffffff"],
html.dark [style*="background:#ffffff"],
html.dark [style*="background-color: #fff"],
html.dark [style*="background: white"] { background:#1e293b !important; }

html.dark [style*="background: #f8fafc"],
html.dark [style*="background:#f8fafc"],
html.dark [style*="background: #f1f5f9"],
html.dark [style*="background:#f1f5f9"] { background:#1e293b !important; }

html.dark [style*="border-color: #e2e8f0"],
html.dark [style*="border: 1px solid #e2e8f0"],
html.dark [style*="border-bottom: 1px solid #e2e8f0"],
html.dark [style*="border-bottom: 1px solid #f1f5f9"] { border-color:#334155 !important; }

/* Dark mode: specific components */
html.dark .svc-card, html.dark .svc-card-body { background:#1e293b; color:#f1f5f9; }
html.dark .svc-card-img { background:#334155; }
html.dark .doc-card { background:#1e293b; color:#f1f5f9; }
html.dark .doc-avatar { background:rgba(6,182,212,.15); color:#22d3ee; }
html.dark .test-card { background:#1e293b; border-color:#334155; }
html.dark .test-text { color:#94a3b8; }
html.dark .test-author-name { color:#f1f5f9; }
html.dark .test-author-proc { color:#64748b; }
html.dark .blog-card-body { background:#1e293b; }
html.dark .blog-card-body h3 { color:#f1f5f9; }
html.dark .blog-card-body p { color:#94a3b8; }
html.dark .fq { background:#1e293b; border-color:#334155; }
html.dark .fq-q { background:#1e293b; color:#f1f5f9; }
html.dark .fq-a { color:#94a3b8; }
html.dark .pricing-card { background:#1e293b; border-color:#334155; }
html.dark .pricing-card-header { background:#334155; border-color:#475569; color:#f1f5f9; }
html.dark .pricing-item { border-color:#334155; color:#cbd5e1; }
html.dark .contact-layout .cform { background:#1e293b; border-color:#334155; }
html.dark .fg label { color:#cbd5e1; }
html.dark .detail-sidebar { background:#1e293b; border-color:#334155; }
html.dark .breadcrumb { color:#94a3b8; }
html.dark .breadcrumb a { color:#22d3ee; }
html.dark .flash-success { background:rgba(16,185,129,.1); color:#6ee7b7; border-color:#065f46; }
html.dark .flash-error { background:rgba(239,68,68,.1); color:#fca5a5; border-color:#991b1b; }
html.dark .data-table thead th { background:#1e293b; color:#94a3b8; border-color:#334155; }
html.dark .data-table tbody td { border-color:#334155; color:#cbd5e1; }
html.dark .data-table tbody tr:hover { background:#334155; }
html.dark .stat-card { background:#1e293b; border-color:#334155; }
html.dark .patient-sidebar { background:#1e293b; border-color:#334155; }
html.dark .patient-sidebar a { color:#94a3b8; }
html.dark .patient-sidebar a:hover, html.dark .patient-sidebar a.active { background:rgba(6,182,212,.15); color:#22d3ee; }
html.dark .pagination a, html.dark .pagination span { border-color:#334155; color:#cbd5e1; }
html.dark .badge { color:#f1f5f9; }
html.dark .chip-teal { background:rgba(6,182,212,.15); color:#22d3ee; }

/* Dark mode: "De ce ne aleg" features */
html.dark .feat .fb { background:#1e293b; border-color:#334155; }
html.dark .fb h3, html.dark .fb h4, html.dark .fb strong { color:#f1f5f9; }
html.dark .fb p { color:#94a3b8; }
html.dark .ss { color:#94a3b8; }
html.dark .st { color:#f1f5f9; }
html.dark .st em { color:#22d3ee; }

/* Dark mode: Team/Doctors */
html.dark .team-grid .tc { background:#1e293b; border-color:#334155; color:#f1f5f9; }
html.dark .tc h3 { color:#f1f5f9; }
html.dark .tc .role { color:#22d3ee; }
html.dark .tc p { color:#94a3b8; }
html.dark .tc img { border-color:#334155 !important; }

/* Dark mode: Testimonials */
html.dark .sec-alt { background:#1e293b; }
html.dark .sec-alt .si { color:#f1f5f9; }
html.dark .test-stars { color:#fbbf24; }
html.dark .test-c { background:#0f172a !important; border-color:#334155 !important; }
html.dark .tq { color:#cbd5e1 !important; }
html.dark .tn { color:#f1f5f9 !important; }
html.dark .tsv { color:#22d3ee !important; }
html.dark .tav { background:rgba(6,182,212,.15) !important; color:#22d3ee !important; }
html.dark .stars { color:#fbbf24 !important; }

/* Dark mode: sections */
html.dark .sec { color:#f1f5f9; }
html.dark .ba-card { background:#1e293b; }
html.dark .ba-placeholder { background:#334155; color:#64748b; }
html.dark .hero-metrics span { color:#94a3b8; }
html.dark .hero-metrics strong { color:#22d3ee; }

/* Dark mode: Service detail sidebar */
html.dark .sidebar-card { background:#1e293b !important; border-color:#334155 !important; }
html.dark .sidebar-card h4 { color:#f1f5f9 !important; }
html.dark .price-big { color:#22d3ee !important; }
html.dark .price-note { color:#94a3b8 !important; }
html.dark .quick-info { color:#94a3b8 !important; }
html.dark .quick-info strong { color:#f1f5f9 !important; }
html.dark .detail-main h2 { color:#f1f5f9 !important; }
html.dark .detail-main p { color:#cbd5e1 !important; }
html.dark .procedure-list li { color:#cbd5e1 !important; }
html.dark .detail-sidebar .tav { background:rgba(6,182,212,.15) !important; color:#22d3ee !important; }

/* Dark mode: Booking wizard */
html.dark .wiz { background:#1e293b !important; border-color:#334155 !important; box-shadow:0 8px 24px rgba(0,0,0,.5) !important; }
html.dark .summary-table { background:#1e293b !important; }
html.dark .summary-table td { border-color:#334155 !important; color:#cbd5e1 !important; }
html.dark .summary-table td:first-child { color:#94a3b8 !important; }
html.dark .wiz-step h3 { color:#f1f5f9 !important; }
html.dark .wiz-step p { color:#cbd5e1 !important; }
html.dark .wiz-step .card { background:#1e293b !important; border-color:#334155 !important; color:#f1f5f9 !important; }
html.dark .wiz-step .card:hover { border-color:#22d3ee !important; }
html.dark .wiz-step .card.selected { border-color:#22d3ee !important; background:#0f172a !important; }
html.dark .wiz-step .card h3 { color:#f1f5f9 !important; }
html.dark .stepper .step { color:#94a3b8; }
html.dark .stepper .step.active .step-c { background:var(--p); color:#fff; }
html.dark .stepper .step.done .step-c { background:#334155; color:#94a3b8; }
html.dark .stepper .step-l { color:#94a3b8; }
html.dark .cal-grid { color:#f1f5f9; }
html.dark .cal-header { color:#94a3b8; }
html.dark .cal-day { color:#cbd5e1; }
html.dark .cal-day:hover:not(.disabled) { background:#334155; }
html.dark .cal-day.selected { background:var(--p); color:#fff; }
html.dark .cal-day.disabled { color:#475569; }
html.dark .time-slot { border-color:#334155; color:#cbd5e1; background:#1e293b; }
html.dark .time-slot:hover { border-color:#22d3ee; color:#22d3ee; }
html.dark .time-slot.selected { background:var(--p); color:#fff; border-color:var(--p); }
html.dark .page-header h1 { color:#f1f5f9; }
html.dark .page-header p { color:#94a3b8; }
html.dark .page-header { background:#1e293b; border-color:#334155; }
html.dark .wiz-summary { color:#94a3b8; }
html.dark #confirm-table td, html.dark #confirm-table th { color:#cbd5e1; border-color:#334155; }

/* Dark mode: medical/allergy section + all remaining form areas */
html.dark .medical-section { background:#1e293b !important; border-color:#334155 !important; }
html.dark .medical-section-title { color:#f1f5f9 !important; }
html.dark .medical-section label { color:#cbd5e1 !important; }
html.dark .medical-section input,
html.dark .medical-section textarea { background:#0f172a !important; color:#f1f5f9 !important; border-color:#475569 !important; }
html.dark .medical-section p,
html.dark .medical-section span,
html.dark .medical-section small { color:#94a3b8 !important; }
html.dark .fg { color:#cbd5e1; }
html.dark .form-checkbox label { color:#cbd5e1 !important; }

/* Dark mode: confirmation step */
html.dark .summary-table { background:#1e293b !important; }
html.dark .summary-table td { color:#cbd5e1 !important; border-color:#334155 !important; }
html.dark .summary-table td:first-child { color:#94a3b8 !important; font-weight:600; }
html.dark .table-responsive { background:#1e293b; border-radius:var(--r); }

/* Dark mode toggle button */
.theme-toggle {
  background:none; border:none; cursor:pointer; padding:6px;
  color:inherit; display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px; transition:background .2s; vertical-align:middle;
}
.theme-toggle:hover { background:rgba(128,128,128,.15); }
.theme-toggle svg { width:20px; height:20px; }
.theme-toggle .icon-sun { display:none; }
html.dark .theme-toggle .icon-sun { display:block; }
html.dark .theme-toggle .icon-moon { display:none; }

/* === RESET === */
html { scroll-behavior: smooth; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--p); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--p2); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

/* === ACCESSIBILITY === */
:focus-visible {
    outline: 2px solid var(--p);
    outline-offset: 2px;
}

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--p); color: #fff;
    padding: 8px 16px; z-index: 9999;
    transition: top .3s;
}
.skip-link:focus { top: 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === LAYOUT === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.sec { padding: 64px 32px; max-width: 1100px; margin: 0 auto; }
.sec-alt { background: var(--bg-alt); padding: 64px 32px; }
.sec-alt .si { max-width: 1100px; margin: 0 auto; }
.sec-dark { background: var(--dark); color: #fff; padding: 64px 32px; }

/* === NAVIGATION === */
.nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 900;
}
.logo {
    font-weight: 900; font-size: 1.375rem;
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: flex; align-items: center; gap: 8px;
}
.logo span {
    -webkit-text-fill-color: initial;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--p), var(--p2));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; color: #fff;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a:not(.btn) {
    color: var(--text-l); font-weight: 600; font-size: 0.875rem;
    padding: 8px 2px; position: relative;
    display: inline-flex; align-items: center;
    line-height: 1.2; white-space: nowrap;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--p); }
.nav-links a:not(.btn).active::after {
    content: ''; position: absolute;
    bottom: 2px; left: 2px; right: 2px;
    height: 2px; background: var(--p); border-radius: 1px;
}
.hamburger {
    display: none; background: none; border: none;
    font-size: 1.625rem; cursor: pointer; color: var(--text);
    padding: 4px 8px; line-height: 1;
}

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 28px; border-radius: var(--r-pill);
    font-weight: 700; font-size: 0.875rem; line-height: 1.25; border: none;
    cursor: pointer; font-family: inherit; white-space: nowrap;
    transition: all var(--transition); text-align: center;
}
.btn-p {
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff; box-shadow: 0 4px 12px rgba(6,182,212,.3);
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(6,182,212,.4); }
.btn-o {
    background: transparent; color: var(--p);
    border: 2px solid var(--p);
}
.btn-o:hover { background: var(--p-light); }
.btn-w {
    background: var(--bg); color: var(--p2);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.btn-w:hover { transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--p); color: var(--p); }
.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* === TYPOGRAPHY === */
.st {
    font-size: 2rem; font-weight: 900;
    text-align: center; margin-bottom: 6px;
}
.st em {
    font-style: normal;
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ss {
    text-align: center; color: var(--text-l);
    margin-bottom: 36px; font-size: 0.9375rem;
}
.page-header {
    background: linear-gradient(135deg, var(--dark), var(--dark2));
    padding: 48px 32px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1200&h=600&fit=crop&auto=format&q=80') center/cover no-repeat;
    opacity: .1; z-index: 0;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 {
    font-size: 2.25rem; font-weight: 900;
}
.page-header h1 em {
    font-style: normal; color: var(--p);
}
.page-header p {
    color: rgba(255,255,255,.6); margin-top: 8px; font-size: 0.9375rem;
}
.breadcrumb {
    font-size: 0.8125rem; color: rgba(255,255,255,.5); margin-bottom: 8px;
}
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: var(--p); }

/* === HERO === */
.hero {
    background: var(--dark);
    padding: 80px 32px 100px;
    text-align: center;
    position: relative; overflow: hidden; color: #fff;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1200&h=600&fit=crop&auto=format&q=80') center/cover no-repeat;
    opacity: .18; z-index: 0;
}
.hero::after {
    content: ''; position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px; background: var(--bg);
    border-radius: 50% 50% 0 0;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 800; margin-bottom: 14px;
    position: relative; z-index: 1; letter-spacing: -0.5px;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--p), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero > p {
    font-size: 1.125rem; color: rgba(255,255,255,.7);
    max-width: 560px; margin: 0 auto 28px;
    position: relative; z-index: 1;
}
.hero-btns {
    display: flex; gap: 14px;
    justify-content: center;
    position: relative; z-index: 1;
}
.hero-stats {
    display: flex; justify-content: center;
    gap: 48px; margin-top: 40px;
    position: relative; z-index: 1;
}
.hs-n { font-size: 1.875rem; font-weight: 900; color: var(--p); }
.hs-l { font-size: 0.75rem; color: rgba(255,255,255,.5); }

/* === CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px;
    box-shadow: var(--sh);
    transition: all .3s;
    position: relative; overflow: hidden;
}
.card:hover {
    box-shadow: var(--sh-lg);
    transform: translateY(-4px);
}
.card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--p), var(--p2));
}
.card-ico {
    width: 48px; height: 48px;
    border-radius: var(--r);
    background: var(--p-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem; margin-bottom: 12px;
}
.card h3 { font-size: 1.125rem; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--text-l); font-size: 0.875rem; margin-bottom: 12px; }
.card-price { font-weight: 800; color: var(--p2); font-size: 1rem; }
.card-link { font-size: 0.8125rem; font-weight: 700; color: var(--p); }
.card.selected {
    outline: 3px solid var(--p);
    outline-offset: -3px;
}
.card-footer {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 12px;
}
.badge {
    display: inline-block; padding: 3px 12px;
    border-radius: var(--r-pill);
    font-size: 0.6875rem; font-weight: 700;
    background: var(--p-light); color: var(--p2);
    margin-bottom: 8px;
}

/* === FEATURES === */
.feat { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.fb {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 24px 20px;
    text-align: center; width: 230px;
    box-shadow: var(--sh); transition: all .3s;
}
.fb:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.fb-i {
    width: 48px; height: 48px;
    border-radius: var(--r);
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem;
}
.fb h3, .fb h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.fb p { font-size: 0.75rem; color: var(--text-l); }

/* === TEAM === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.tc {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 28px 20px;
    text-align: center; box-shadow: var(--sh);
}
.ta {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--p-light), #dbeafe);
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; color: var(--p2);
    border: 3px solid #fff; box-shadow: var(--sh);
}
.tc h3 { font-size: 1rem; font-weight: 800; margin-bottom: 2px; }
.tc .role { color: var(--p); font-size: 0.75rem; font-weight: 700; margin-bottom: 6px; }
.tc p { font-size: 0.8125rem; color: var(--text-l); }

/* === TESTIMONIALS === */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}
.test-c {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 24px;
    box-shadow: var(--sh); position: relative;
}
.test-c::before {
    content: '\201C'; font-size: 3.25rem;
    color: var(--p); opacity: .15;
    position: absolute; top: 4px; left: 16px;
    font-family: Georgia, serif;
}
.stars { color: var(--accent); font-size: 0.875rem; margin-bottom: 10px; }
.tq {
    font-size: 0.875rem; color: var(--text-l);
    font-style: italic; margin-bottom: 14px; padding-top: 10px;
}
.tau {
    display: flex; align-items: center; gap: 10px;
    border-top: 1px solid var(--border); padding-top: 10px;
}
.tav {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--p-light), #dbeafe);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 700; color: var(--p2);
}
.tn { font-weight: 700; font-size: 0.8125rem; }
.tsv { font-size: 0.6875rem; color: var(--text-l); }

/* === REVIEW STATS === */
.rvs { display: flex; gap: 24px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.rv {
    text-align: center; background: var(--bg);
    padding: 16px 24px; border-radius: var(--r);
    border: 1px solid var(--border); box-shadow: var(--sh);
}
.rv-n {
    font-size: 1.625rem; font-weight: 900;
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rv-l { font-size: 0.75rem; color: var(--text-l); }

/* === CTA BANNER === */
.cta-b {
    background: linear-gradient(135deg, var(--p), var(--p2));
    padding: 56px 32px; text-align: center;
    border-radius: var(--r);
    margin: 40px auto; max-width: 1100px;
    position: relative; overflow: hidden;
}
.cta-b::before {
    content: ''; position: absolute; inset: 0;
    background: url('../img/cta-bg.jpg') center/cover no-repeat;
    opacity: .12; z-index: 0; pointer-events: none;
}
.cta-b::after {
    content: ''; position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%; background: rgba(255,255,255,.06);
    z-index: 0; pointer-events: none;
}
.cta-b h2, .cta-b p, .cta-b a, .cta-b .btn { position: relative; z-index: 1; }
.cta-b h2 {
    color: #fff; font-size: 1.75rem; font-weight: 900;
    margin-bottom: 8px; position: relative;
}
.cta-b p {
    color: rgba(255,255,255,.8);
    margin-bottom: 20px; position: relative;
}

/* === FORMS === */
.fg { margin-bottom: 18px; }
.fg label {
    display: block; font-weight: 700;
    font-size: 0.8125rem; margin-bottom: 5px;
}
.fg input, .fg select, .fg textarea {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--r);
    font-size: 0.875rem; font-family: inherit;
    transition: border var(--transition);
    background: var(--bg);
}
.fg input:focus-visible, .fg select:focus-visible, .fg textarea:focus-visible {
    outline: 2px solid var(--p);
    outline-offset: 2px;
    border-color: var(--p);
    box-shadow: 0 0 0 3px rgba(6,182,212,.2);
}
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--p);
    outline-offset: 2px;
}
.fg textarea { resize: vertical; min-height: 100px; }
.fg .error-msg {
    color: var(--error); font-size: 0.75rem;
    margin-top: 4px; display: none;
}
.fg.has-error input, .fg.has-error select, .fg.has-error textarea {
    border-color: var(--error);
}
.fg.has-error .error-msg { display: block; }
.chk { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--p); flex-shrink: 0; }
.chk label { font-size: 0.8125rem; color: var(--text-l); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* === BOOKING WIZARD === */
.wiz {
    max-width: 660px; margin: 0 auto;
    background: var(--bg); border-radius: var(--r);
    padding: 36px; box-shadow: var(--sh-lg);
    border: 1px solid var(--border);
}
.stepper {
    display: flex; justify-content: space-between;
    margin-bottom: 36px; position: relative;
}
.stepper::before {
    content: ''; position: absolute;
    top: 18px; left: 36px; right: 36px;
    height: 3px; background: var(--border);
}
.step {
    display: flex; flex-direction: column;
    align-items: center; position: relative;
    z-index: 1; flex: 1;
}
.step-c {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--border); color: var(--text-l);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.875rem;
    margin-bottom: 4px; transition: all .3s;
}
.step.done .step-c {
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff;
}
.step.active .step-c {
    background: var(--accent); color: #fff;
    box-shadow: 0 0 0 4px var(--accent-light);
}
.step-l { font-size: 0.625rem; font-weight: 600; color: var(--text-l); text-align: center; }
.wiz-step { display: none; }
.wiz-step.active { display: block; animation: fadeIn .3s ease; }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.wiz-summary {
    background: var(--bg-alt); border-radius: var(--r);
    padding: 14px; margin-bottom: 20px;
    font-size: 0.8125rem; color: var(--text-l);
}
.wiz-summary strong { color: var(--text); }

/* === SYMPTOM CHECKER QUIZ === */
.quiz-container { max-width: 640px; margin: 0 auto; }
.quiz-progress {
    height: 6px; background: var(--border);
    border-radius: 3px; margin-bottom: 24px; overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--p), var(--p2));
    border-radius: 3px;
    transition: width .4s ease;
}
.quiz-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 36px;
    box-shadow: var(--sh-lg); min-height: 340px;
}
.quiz-step { display: none; animation: fadeIn .3s ease; }
.quiz-step.active { display: block; }
.quiz-q-num {
    font-size: 0.75rem; font-weight: 700; color: var(--p);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.quiz-question { font-size: 1.25rem; font-weight: 900; margin-bottom: 4px; }
.quiz-hint { font-size: 0.8125rem; color: var(--text-l); margin-bottom: 20px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border: 2px solid var(--border);
    border-radius: var(--r); background: var(--bg);
    cursor: pointer; font-family: inherit;
    transition: all var(--transition); text-align: left;
    font-size: 0.875rem; color: var(--text);
}
.quiz-opt:hover { border-color: var(--p); background: var(--p-light); }
.quiz-opt-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-alt); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}
.quiz-opt:hover .quiz-opt-icon { background: var(--bg); }
.quiz-opt-text { font-weight: 600; }
.quiz-back {
    display: inline-block; margin-top: 18px;
    background: none; border: none; color: var(--text-l);
    font-size: 0.8125rem; font-weight: 700; cursor: pointer;
    font-family: inherit;
}
.quiz-back:hover { color: var(--p); }

/* Results */
.rec-header { text-align: center; margin-bottom: 20px; }
.rec-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--p-light); margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.875rem;
}
.rec-title { font-size: 0.8125rem; color: var(--p); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.rec-name { font-size: 1.375rem; font-weight: 900; margin: 4px 0 8px; }
.rec-desc { font-size: 0.875rem; color: var(--text-l); line-height: 1.5; }

.rec-urgency-normal, .rec-urgency-soon, .rec-urgency-urgent {
    padding: 10px 16px; border-radius: var(--r);
    font-size: 0.8125rem; font-weight: 700; margin-bottom: 16px;
    text-align: center;
}
.rec-urgency-normal { background: #ecfdf5; color: #065f46; }
.rec-urgency-soon { background: #fef3c7; color: #92400e; }
.rec-urgency-urgent { background: #fef2f2; color: #991b1b; }

.rec-visit-note {
    padding: 10px 16px; border-radius: var(--r);
    background: var(--p-light); color: var(--p2);
    font-size: 0.8125rem; margin-bottom: 16px;
}

.rec-list-title {
    font-size: 0.875rem; font-weight: 800; margin-bottom: 8px;
}
.rec-services { display: flex; flex-direction: column; gap: 6px; }
.rec-service {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: var(--bg-alt);
    border-radius: 8px;
}
.rec-service-extra { opacity: .7; border: 1px dashed var(--border); background: var(--bg); }
.rec-svc-icon { font-size: 1.125rem; flex-shrink: 0; }
.rec-svc-info { flex: 1; }
.rec-svc-info strong { font-size: 0.8125rem; display: block; }
.rec-svc-info span { font-size: 0.6875rem; color: var(--text-l); }
.rec-svc-price { font-size: 0.875rem; font-weight: 800; color: var(--p2); white-space: nowrap; }

.rec-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; margin-top: 16px;
    border-top: 2px solid var(--border);
    font-size: 0.9375rem; font-weight: 800;
}
.rec-total-price {
    font-size: 1.25rem; font-weight: 900;
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rec-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }

/* === COST ESTIMATOR === */
.est-layout {
    display: grid; grid-template-columns: 1fr 380px; gap: 28px;
    align-items: start;
}
.est-section-title {
    font-size: 1.125rem; font-weight: 800; margin-bottom: 16px;
}
/* Categories */
.est-category { margin-bottom: 20px; }
.est-cat-name {
    font-size: 0.8125rem; font-weight: 700; color: var(--p2);
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 8px; padding-bottom: 6px;
    border-bottom: 2px solid var(--p-light);
}
.est-items { display: flex; flex-direction: column; gap: 6px; }
.est-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--r); background: var(--bg);
    transition: all var(--transition); gap: 12px;
}
.est-item:hover { border-color: var(--p); box-shadow: var(--sh); }
.est-item-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.est-item-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--p-light); display: flex;
    align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.est-item-name { font-size: 0.875rem; font-weight: 700; }
.est-item-dur { font-size: 0.6875rem; color: var(--text-l); }
.est-item-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.est-item-price { font-size: 0.875rem; font-weight: 800; color: var(--p2); white-space: nowrap; }
.est-add-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid var(--p); background: var(--bg);
    color: var(--p); font-size: 1.125rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: all var(--transition);
    line-height: 1;
}
.est-add-btn:hover { background: var(--p); color: #fff; }
.est-add-btn.added { background: var(--success); border-color: var(--success); color: #fff; }

/* Summary panel */
.est-summary-wrap { position: sticky; top: 88px; }
.est-summary {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 24px;
    box-shadow: var(--sh-lg);
}
.est-empty {
    text-align: center; padding: 28px 12px;
    color: var(--text-l); font-size: 0.875rem;
}
.est-empty-icon { font-size: 2.25rem; margin-bottom: 10px; }

/* Cart items */
.est-cart { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.est-cart-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; background: var(--bg-alt);
    border-radius: 8px; gap: 8px;
}
.est-cart-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.est-cart-icon { font-size: 1rem; flex-shrink: 0; }
.est-cart-name { font-size: 0.8125rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-cart-unit { font-size: 0.6875rem; color: var(--text-l); }
.est-cart-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.est-qty {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--border); border-radius: 6px;
    overflow: hidden;
}
.est-qty button {
    width: 28px; height: 28px; border: none;
    background: var(--bg-alt); cursor: pointer;
    font-size: 0.875rem; font-weight: 700; color: var(--text);
    display: flex; align-items: center; justify-content: center;
}
.est-qty button:hover { background: var(--p-light); color: var(--p); }
.est-qty span {
    width: 28px; text-align: center; font-size: 0.8125rem;
    font-weight: 700; background: var(--bg);
}
.est-cart-line-total { font-size: 0.8125rem; font-weight: 800; color: var(--p2); white-space: nowrap; min-width: 70px; text-align: right; }
.est-remove {
    background: none; border: none; color: var(--text-l);
    font-size: 1.125rem; cursor: pointer; padding: 0 2px;
    line-height: 1;
}
.est-remove:hover { color: var(--error); }

/* Totals */
.est-totals {
    padding-top: 14px; border-top: 1px solid var(--border);
    margin-bottom: 14px;
}
.est-total-row {
    display: flex; justify-content: space-between;
    font-size: 0.8125rem; color: var(--text-l);
    margin-bottom: 6px;
}
.est-total-main {
    font-size: 1.125rem; font-weight: 900; color: var(--text);
    margin-top: 8px; padding-top: 8px;
    border-top: 2px solid var(--border);
}
.est-total-main span:last-child {
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.est-disclaimer {
    font-size: 0.6875rem; color: var(--text-l);
    margin-top: 10px; font-style: italic;
    line-height: 1.4;
}
.est-actions { display: flex; flex-direction: column; gap: 8px; }

/* Package cards */
.est-package { cursor: pointer; }
.est-package:hover { border-color: var(--p); }

/* === MEDICAL SECTION (booking) === */
.medical-section {
    margin: 20px 0 18px;
    padding: 18px;
    background: #fef9ee;
    border: 1px solid #fde68a;
    border-radius: var(--r);
}
.medical-section-title {
    font-size: 0.9375rem; font-weight: 800;
    margin-bottom: 4px; color: var(--text);
    display: flex; align-items: center; gap: 6px;
}
.medical-section-title::before { content: '🏥'; }
.medical-section .fg { margin-bottom: 12px; }
.medical-section .fg:last-child { margin-bottom: 0; }
.medical-section .fg label { font-size: 0.75rem; }
.medical-section .fg textarea {
    background: var(--bg); font-size: 0.8125rem;
    min-height: 50px;
}

/* === SERVICE DETAIL === */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; }
.detail-main h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: 10px; }
.detail-main p { color: var(--text-l); margin-bottom: 14px; font-size: 0.9375rem; }
.procedure-list { list-style: none; counter-reset: step; }
.procedure-list li {
    counter-increment: step;
    padding-left: 46px; margin-bottom: 18px;
    position: relative;
}
.procedure-list li::before {
    content: counter(step);
    position: absolute; left: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8125rem;
}
.procedure-list li strong { display: block; margin-bottom: 2px; font-size: 0.9375rem; }
.procedure-list li span { font-size: 0.8125rem; color: var(--text-l); }
.sidebar-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 24px;
    box-shadow: var(--sh); margin-bottom: 16px;
}
.sidebar-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.price-big {
    font-size: 1.875rem; font-weight: 900;
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.price-note { font-size: 0.75rem; color: var(--text-l); }
.quick-info { list-style: none; font-size: 0.8125rem; color: var(--text-l); }
.quick-info li { margin-bottom: 6px; }
.quick-info strong { color: var(--text); }

/* === FAQ === */
.faq details { margin-bottom: 12px; }
.faq summary {
    font-weight: 700; cursor: pointer;
    padding: 12px 16px; background: var(--bg-alt);
    border-radius: var(--r); font-size: 0.875rem;
    list-style: none; display: flex; align-items: center; gap: 8px;
}
.faq summary::before { content: '+ '; color: var(--p); font-weight: 800; }
.faq details[open] summary::before { content: '− '; }
.faq details p { padding: 12px 16px; font-size: 0.8125rem; color: var(--text-l); }

/* === ABOUT === */
.about-story {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 36px; align-items: center; margin-bottom: 44px;
}
.story-img {
    width: 100%; height: 280px;
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-l); font-size: 0.8125rem;
    overflow: hidden; position: relative;
}
.story-img img {
    width: 100%; height: 100%;
    object-fit: cover; position: absolute; inset: 0;
}
.gallery-card .story-img {
    cursor: pointer; transition: transform var(--transition);
}
.gallery-card:hover .story-img img {
    transform: scale(1.05); transition: transform .4s ease;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.val-c {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 22px;
    text-align: center; box-shadow: var(--sh);
}
.val-i {
    width: 48px; height: 48px; border-radius: var(--r);
    background: var(--p-light);
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem;
}
.val-c h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; }
.val-c p { font-size: 0.75rem; color: var(--text-l); }
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.ci-list li {
    display: flex; align-items: flex-start;
    gap: 12px; margin-bottom: 18px; font-size: 0.875rem;
}
.ci-ico {
    width: 42px; height: 42px;
    border-radius: var(--r); background: var(--p-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; flex-shrink: 0;
}
.map-placeholder {
    width: 100%; height: 200px;
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-l); font-size: 0.8125rem; margin-top: 16px;
}

/* === LEGAL === */
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h2 { font-size: 1.25rem; font-weight: 800; margin: 28px 0 10px; }
.legal-content p, .legal-content ul { color: var(--text-l); font-size: 0.875rem; margin-bottom: 10px; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; margin: 10px 0; }
.legal-content th { background: var(--p-light); padding: 8px 12px; text-align: left; font-weight: 700; }
.legal-content td { padding: 8px 12px; border-bottom: 1px solid var(--border); }

/* === TABS === */
.tabs { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.tab {
    padding: 8px 20px; border-radius: var(--r-pill);
    border: 2px solid var(--border);
    font-size: 0.8125rem; font-weight: 700;
    cursor: pointer; background: var(--bg);
    color: var(--text-l); transition: all var(--transition);
}
.tab:hover { border-color: var(--p); color: var(--p); }
.tab.active { border-color: var(--p); color: var(--p); background: var(--p-light); }

/* === SUCCESS PAGE === */
.success-card {
    text-align: center; max-width: 520px;
    margin: 0 auto; background: var(--bg);
    border-radius: var(--r); padding: 44px 36px;
    box-shadow: var(--sh-lg); border: 1px solid var(--border);
}
html.dark .success-card { background: #1e293b; border-color: #334155; }
html.dark .success-card h2 { color: #f1f5f9; }
html.dark .success-card p { color: #cbd5e1; }
html.dark .success-card .summary-table td { color: #cbd5e1; border-color: #334155; }
html.dark .success-card strong { color: #f1f5f9; }
.success-ico {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--p-light);
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.375rem;
}
.success-card h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.success-card > p { color: var(--text-l); margin-bottom: 24px; font-size: 0.9375rem; }
.summary-table { width: 100%; text-align: left; border-collapse: collapse; margin-bottom: 22px; }
.summary-table tr { border-bottom: 1px solid var(--border); }
.summary-table td { padding: 10px 12px; font-size: 0.8125rem; }
.summary-table td:first-child { font-weight: 700; width: 40%; }
.summary-table td:last-child { color: var(--text-l); }

/* === 404 === */
.error-page {
    text-align: center; padding: 80px 32px;
    min-height: 60vh; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
}
.error-num {
    font-size: 7.5rem; font-weight: 900;
    background: linear-gradient(135deg, var(--p), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    line-height: 1;
}
.error-page h2 { font-size: 1.625rem; font-weight: 800; margin: 14px 0 8px; }
.error-page p { color: var(--text-l); margin-bottom: 24px; }

/* === FOOTER === */
.footer {
    background: var(--dark); color: rgba(255,255,255,.7);
    padding: 48px 32px 24px;
}
.ft-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
}
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 0.9375rem; font-weight: 800; }
.footer p, .footer a { font-size: 0.8125rem; color: rgba(255,255,255,.6); text-decoration: none; }
.footer a:hover { color: var(--p); }
.footer ul li { margin-bottom: 8px; }
.ft-bot {
    max-width: 1100px; margin: 18px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between;
    font-size: 0.75rem; flex-wrap: wrap; gap: 8px;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed; bottom: 18px; left: 18px; right: 18px;
    max-width: 460px;
    background: var(--bg); border-radius: var(--r);
    padding: 22px; box-shadow: 0 8px 36px rgba(0,0,0,.15);
    z-index: 2000; border: 1px solid var(--border);
    animation: slideUp .4s ease;
}
.cookie-banner h4 { font-size: 0.9375rem; font-weight: 800; margin-bottom: 6px; }
.cookie-banner p { font-size: 0.75rem; color: var(--text-l); margin-bottom: 14px; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btns button {
    padding: 8px 18px; border-radius: var(--r-pill);
    font-weight: 700; font-size: 0.75rem;
    cursor: pointer; font-family: inherit; border: none;
    transition: all var(--transition);
}
.c-acc { background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; }
.c-acc:hover { opacity: .9; }
.c-rej { background: var(--bg-alt); color: var(--text); }
.c-set { background: transparent; color: var(--p); border: 1px solid var(--p) !important; }

/* === ALERT MESSAGES === */
.alert {
    padding: 14px 18px; border-radius: var(--r);
    font-size: 0.875rem; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: var(--p-light); color: var(--p2); border: 1px solid #b2ebf2; }

/* === LOADING === */
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--p);
    border-radius: 50%;
    animation: spin .6s linear infinite;
    margin: 0 auto;
}
.loading-text { text-align: center; color: var(--text-l); font-size: 0.875rem; margin-top: 10px; }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* === CALENDAR === */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-header { text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--text-l); padding: 6px; }
.cal-day {
    text-align: center; padding: 10px 4px;
    border-radius: 8px; font-size: 0.8125rem;
    cursor: pointer; transition: all var(--transition);
}
.cal-day:hover { background: var(--p-light); color: var(--p2); }
.cal-day.disabled { opacity: .5; cursor: not-allowed; }
.cal-day.disabled:hover { background: transparent; color: inherit; }
.cal-day.selected {
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff; font-weight: 700;
}
.cal-day.today { border: 2px solid var(--p); }
.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.time-slot {
    padding: 10px; text-align: center;
    border: 2px solid var(--border); border-radius: var(--r);
    font-size: 0.8125rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
}
.time-slot:hover { border-color: var(--p); color: var(--p); }
.time-slot.selected {
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff; border-color: transparent;
}
.time-slot.disabled { opacity: .5; cursor: not-allowed; }

/* === AUTH PAGES === */
.auth-container {
    max-width: 480px; margin: 0 auto;
}
.auth-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 36px;
    box-shadow: var(--sh-lg);
}
.auth-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--p-light);
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
}
.auth-card h2 {
    text-align: center; font-size: 1.5rem;
    font-weight: 900; margin-bottom: 4px;
}
.auth-subtitle {
    text-align: center; color: var(--text-l);
    font-size: 0.875rem; margin-bottom: 24px;
}
.auth-footer {
    text-align: center; margin-top: 20px;
    padding-top: 16px; border-top: 1px solid var(--border);
    font-size: 0.875rem; color: var(--text-l);
}
.auth-footer a { font-weight: 700; }
.profile-section-title {
    font-size: 1rem; font-weight: 800;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

/* === NAV USER === */
.nav-user {
    display: flex; align-items: center; gap: 8px;
    color: var(--text); font-weight: 600; font-size: 0.875rem;
    padding: 4px 0;
}
.nav-user:hover { color: var(--p); }
.nav-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 700;
}
.nav-user-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === DASHBOARD === */
.dash-actions {
    display: flex; gap: 12px; margin-bottom: 32px;
    flex-wrap: wrap;
}
.dash-section { margin-bottom: 36px; }
.dash-title {
    font-size: 1.25rem; font-weight: 800;
    margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.empty-state {
    text-align: center; padding: 40px 20px;
    background: var(--bg-alt); border-radius: var(--r);
    border: 1px dashed var(--border);
}
.empty-ico { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-l); margin-bottom: 16px; font-size: 0.9375rem; }

/* Appointment cards */
.appt-list { display: flex; flex-direction: column; gap: 12px; }
.appt-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 18px 22px;
    box-shadow: var(--sh); transition: all .3s;
}
.appt-card:hover { box-shadow: var(--sh-lg); }
.appt-card.appt-past { opacity: .7; }
.appt-icon {
    width: 48px; height: 48px; border-radius: var(--r);
    background: var(--p-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem; flex-shrink: 0;
}
.appt-info { flex: 1; }
.appt-info h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 2px; }
.appt-info p { font-size: 0.8125rem; color: var(--text-l); margin: 0; }
.appt-date { font-weight: 600; color: var(--text) !important; }
.appt-status {
    padding: 5px 14px; border-radius: var(--r-pill);
    font-size: 0.75rem; font-weight: 700;
    white-space: nowrap; flex-shrink: 0;
}

/* Appointment actions */
.appt-actions {
    display: flex; gap: 8px; align-items: center; flex-shrink: 0;
    flex-wrap: wrap;
}
.btn-danger-outline {
    color: var(--error) !important; border-color: var(--error) !important;
}
.btn-danger-outline:hover {
    background: #fef2f2;
}

/* Modal overlay */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    animation: fadeIn .2s ease;
}
.modal-box {
    background: var(--bg); border-radius: var(--r); padding: 32px;
    max-width: 520px; width: 90%; max-height: 80vh; overflow-y: auto;
    box-shadow: var(--sh-lg); position: relative;
}
.modal-box h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.modal-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none; font-size: 1.625rem;
    cursor: pointer; color: var(--text-l); line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* === AI CHATBOT WIDGET === */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(6,182,212,.4);
    z-index: 1500;
    transition: all .3s;
}
.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(6,182,212,.5);
}
.chat-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.chat-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: var(--bg);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    z-index: 1500;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    animation: slideUp .3s ease;
}
.chat-window.open { display: flex; }

.chat-header {
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}
.chat-header-name {
    font-weight: 700;
    font-size: 0.9375rem;
}
.chat-header-status {
    font-size: 0.6875rem;
    opacity: .8;
}
.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.375rem;
    cursor: pointer;
    opacity: .7;
    line-height: 1;
}
.chat-close:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
    max-height: 340px;
    background: var(--bg-alt);
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.8125rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-msg-bot {
    align-self: flex-start;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.chat-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-typing {
    align-self: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    padding: 12px 18px;
}
.chat-typing-dots {
    display: flex;
    gap: 4px;
}
.chat-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p);
    animation: chatBounce .6s infinite alternate;
}
.chat-typing-dots span:nth-child(2) { animation-delay: .2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes chatBounce {
    from { opacity: .3; transform: translateY(0); }
    to { opacity: 1; transform: translateY(-4px); }
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    background: var(--bg);
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 24px;
    font-size: 0.8125rem;
    font-family: inherit;
    transition: border var(--transition);
    resize: none;
    max-height: 80px;
    min-height: 40px;
}
.chat-input:focus-visible { border-color: var(--p); outline: 2px solid var(--p); outline-offset: 2px; }
.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.chat-send:hover { transform: scale(1.05); }
.chat-send:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
    background: var(--bg-alt);
}
.chat-suggestion {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    color: var(--p2);
    font-weight: 600;
    transition: all var(--transition);
}
.chat-suggestion:hover {
    background: var(--p-light);
    border-color: var(--p);
}

@media (max-width: 480px) {
    .chat-window {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .chat-fab { bottom: 16px; right: 16px; }
}

/* === GALLERY BEFORE/AFTER === */
.gallery-ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}
.gallery-ba-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--sh);
    transition: all .3s;
}
.gallery-ba-card:hover {
    box-shadow: var(--sh-lg);
    transform: translateY(-4px);
}

/* Before/After Slider */
.ba-slider {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}
.ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.ba-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ba-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}
.ba-after {
    z-index: 1;
}
.ba-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-l);
    background: var(--bg-alt);
}
.ba-before .ba-placeholder {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
}
.ba-after .ba-placeholder {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
}

/* Labels */
.ba-label {
    position: absolute;
    top: 12px;
    padding: 4px 14px;
    border-radius: var(--r-pill);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 5;
    pointer-events: none;
}
.ba-label-before {
    left: 12px;
    background: rgba(239,68,68,.9);
    color: #fff;
}
.ba-label-after {
    right: 12px;
    background: rgba(16,185,129,.9);
    color: #fff;
}

/* Handle */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    pointer-events: none;
}
.ba-handle-line {
    flex: 1;
    width: 3px;
    background: var(--bg);
    box-shadow: 0 0 6px rgba(0,0,0,.3);
}
.ba-handle-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--p2);
    letter-spacing: 2px;
    flex-shrink: 0;
}

/* Card Info */
.ba-info {
    padding: 20px;
}
.ba-info h3 {
    font-size: 1.0625rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.ba-info p {
    font-size: 0.8125rem;
    color: var(--text-l);
    margin-bottom: 12px;
    line-height: 1.5;
}
.ba-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.ba-meta-item {
    font-size: 0.75rem;
    color: var(--text-l);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.375rem; }
    .hero > p { font-size: 1rem; }
    .sec, .sec-alt { padding: 48px 24px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .est-layout { grid-template-columns: 1fr; }
    .gallery-ba-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid, .detail-layout, .about-story { grid-template-columns: 1fr; }
    .feat { gap: 16px; }
    .wiz { padding: 28px 22px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.875rem; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .card-grid { grid-template-columns: 1fr; }
    .contact-grid, .detail-layout, .about-story, .est-layout { grid-template-columns: 1fr; }
    .est-summary-wrap { position: static; }
    .ft-inner { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-ba-grid { grid-template-columns: 1fr; }
    .ba-slider { height: 240px; }
    .form-row { grid-template-columns: 1fr; }
    .time-slots { grid-template-columns: repeat(3, 1fr); }
    .hamburger { display: block; }
    .nav-user-name { display: none; }
    .quiz-card { padding: 24px 18px; }
    .quiz-question { font-size: 1.0625rem; }
    .auth-card { padding: 24px 18px; }
    .appt-card { flex-wrap: wrap; }
    .appt-status { text-align: center; }
    .appt-actions { width: 100%; justify-content: center; }
    .dash-actions { flex-direction: column; }
    .dash-actions .btn { text-align: center; }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px 32px;
        box-shadow: var(--sh-lg); gap: 12px;
    }
    .nav-links.open { display: flex; }
    .page-header h1 { font-size: 1.75rem; }
    .sec, .sec-alt { padding: 40px 20px; }
    .wiz { padding: 24px 18px; }
    .stepper { gap: 4px; }
    .step-l { font-size: 0.5625rem; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn { width: 100%; }
    .ft-inner { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .time-slots { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 48px 16px 64px; }
    .hero h1 { font-size: 1.5rem; }
    .hero > p { font-size: 0.9375rem; }
    .sec, .sec-alt { padding: 32px 16px; }
    .nav { padding: 0 16px; }
    .nav-links { padding: 16px; }
    .page-header { padding: 32px 16px; }
    .page-header h1 { font-size: 1.5rem; }
    .st { font-size: 1.5rem; }
    .cta-b { padding: 36px 20px; margin: 24px 16px; }
    .cta-b h2 { font-size: 1.375rem; }
}

/* ===========================================
   Cost Estimator Wizard
   =========================================== */

.ce-wizard {
    max-width: 720px; margin: 0 auto;
}

/* Stepper */
.ce-stepper {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 32px;
}
.ce-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: relative; z-index: 1;
}
.ce-step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-alt); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9375rem; font-weight: 800; color: var(--text-l);
    transition: all .3s ease;
}
.ce-step.active .ce-step-num {
    background: var(--p); border-color: var(--p);
    color: #fff; box-shadow: 0 4px 12px rgba(6,182,212,.35);
}
.ce-step.done .ce-step-num {
    background: var(--success); border-color: var(--success);
    color: #fff;
}
.ce-step-label {
    font-size: 0.75rem; font-weight: 700; color: var(--text-l);
    text-transform: uppercase; letter-spacing: .3px;
}
.ce-step.active .ce-step-label { color: var(--p); }
.ce-step.done .ce-step-label { color: var(--success); }

.ce-step-line {
    flex: 1; max-width: 80px; height: 2px;
    background: var(--border); margin: 0 8px;
    margin-bottom: 20px;
    transition: background .3s ease;
}

/* Panels */
.ce-panel { display: none; animation: fadeIn .3s ease; }
.ce-panel.active { display: block; }

.ce-panel-title {
    font-size: 1.375rem; font-weight: 900; text-align: center;
    margin-bottom: 4px; color: var(--dark);
}
.ce-panel-sub {
    font-size: 0.875rem; color: var(--text-l); text-align: center;
    margin-bottom: 24px;
}

/* Step 1: Category buttons */
.ce-categories {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.ce-cat-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px; border: 2px solid var(--border);
    border-radius: var(--r); background: var(--bg);
    cursor: pointer; transition: all .2s ease;
    text-align: left;
}
.ce-cat-btn:hover {
    border-color: var(--p); background: var(--p-light);
    transform: translateY(-2px); box-shadow: var(--sh);
}
.ce-cat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--p-light); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.ce-cat-btn:hover .ce-cat-icon { background: var(--bg); }
.ce-cat-text { font-size: 0.9375rem; font-weight: 700; color: var(--dark); }

/* Step 2: Concern buttons */
.ce-concerns {
    display: flex; flex-direction: column; gap: 8px;
}
.ce-concern-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border: 1px solid var(--border);
    border-radius: var(--r); background: var(--bg);
    cursor: pointer; transition: all .2s ease;
    text-align: left; width: 100%;
}
.ce-concern-btn:hover {
    border-color: var(--p); background: var(--p-light);
    box-shadow: var(--sh);
}
.ce-concern-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--p-light); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.125rem; flex-shrink: 0;
}
.ce-concern-btn:hover .ce-concern-icon { background: var(--bg); }
.ce-concern-text { flex: 1; min-width: 0; }
.ce-concern-label { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--dark); }
.ce-concern-hint { display: block; font-size: 0.75rem; color: var(--p2); font-weight: 600; margin-top: 2px; }
.ce-concern-arrow {
    font-size: 1.125rem; color: var(--text-l);
    transition: all .2s ease; flex-shrink: 0;
}
.ce-concern-btn:hover .ce-concern-arrow { color: var(--p); transform: translateX(4px); }

/* Back button */
.ce-back {
    display: inline-block; margin-top: 20px;
    background: none; border: none; cursor: pointer;
    font-size: 0.875rem; font-weight: 600; color: var(--text-l);
    padding: 8px 0; transition: color .2s;
}
.ce-back:hover { color: var(--p); }

/* Step 3: Results */
.ce-result-header {
    text-align: center; margin-bottom: 24px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.ce-result-badge {
    display: inline-block; background: var(--p-light);
    color: var(--p2); font-size: 0.75rem; font-weight: 700;
    padding: 4px 14px; border-radius: var(--r-pill);
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 10px;
}
.ce-result-title {
    font-size: 1.5rem; font-weight: 900; color: var(--dark);
    margin-bottom: 4px;
}
.ce-result-cat {
    font-size: 0.8125rem; color: var(--text-l);
    text-transform: capitalize;
}
.ce-result-list-title {
    font-size: 0.8125rem; font-weight: 700; color: var(--p2);
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 10px;
}

/* Service cards in results */
.ce-result-services {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 20px;
}
.ce-svc-card {
    padding: 16px; border: 1px solid var(--border);
    border-radius: var(--r); background: var(--bg);
    transition: all .2s;
}
.ce-svc-card:hover { border-color: var(--p); box-shadow: var(--sh); }
.ce-svc-top {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px;
}
.ce-svc-icon {
    width: 38px; height: 38px; border-radius: 8px;
    background: var(--p-light); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.0625rem; flex-shrink: 0;
}
.ce-svc-info { flex: 1; min-width: 0; }
.ce-svc-name { font-size: 0.9375rem; font-weight: 700; color: var(--dark); }
.ce-svc-meta { font-size: 0.75rem; color: var(--text-l); margin-top: 1px; }
.ce-svc-price-range {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; background: var(--bg-alt);
    border-radius: 8px;
}
.ce-svc-range {
    font-size: 1rem; font-weight: 800; color: var(--p2);
}
.ce-svc-base {
    font-size: 0.6875rem; color: var(--text-l);
}

/* Total box */
.ce-total-box {
    background: var(--bg-alt); border-radius: var(--r);
    padding: 18px 20px; margin-bottom: 20px;
}
.ce-total-row {
    display: flex; justify-content: space-between;
    align-items: center; padding: 6px 0;
    font-size: 0.875rem; color: var(--text);
}
.ce-total-row span:last-child { font-weight: 700; }
.ce-total-main {
    border-top: 2px solid var(--border);
    margin-top: 8px; padding-top: 12px;
}
.ce-total-price {
    font-size: 1.25rem; font-weight: 900; color: var(--p2);
}
.ce-disclaimer {
    font-size: 0.6875rem; color: var(--text-l);
    margin-top: 10px; line-height: 1.5;
}

/* CTA actions */
.ce-actions {
    display: flex; flex-direction: column; gap: 8px;
}

/* Lead capture */
.ce-lead-capture {
    max-width: 600px; margin: 0 auto;
}
.ce-lead-inner {
    text-align: center; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--r);
    padding: 32px 28px; box-shadow: var(--sh-lg);
}
.ce-lead-icon { font-size: 2.5rem; margin-bottom: 12px; }
.ce-lead-inner h3 {
    font-size: 1.125rem; font-weight: 800; margin-bottom: 6px;
}
.ce-lead-inner > p {
    font-size: 0.8125rem; color: var(--text-l); margin-bottom: 20px;
}
.ce-lead-fields {
    display: flex; gap: 8px; flex-wrap: wrap;
    justify-content: center;
}
.ce-lead-input {
    padding: 10px 14px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.875rem;
    flex: 1; min-width: 180px; max-width: 240px;
    transition: border-color .2s;
}
.ce-lead-input:focus {
    outline: none; border-color: var(--p);
    box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.ce-lead-btn { white-space: nowrap; flex-shrink: 0; }
.ce-lead-note {
    font-size: 0.6875rem; color: var(--text-l); margin-top: 10px;
}
.ce-lead-success {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 20px;
}
.ce-lead-check {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--success); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; font-weight: 700; flex-shrink: 0;
}
.ce-lead-success p {
    font-size: 0.9375rem; font-weight: 700; color: var(--success);
}

/* Responsive */
@media (max-width: 640px) {
    .ce-categories { grid-template-columns: 1fr; }
    .ce-stepper { gap: 0; }
    .ce-step-label { font-size: 0.625rem; }
    .ce-step-num { width: 34px; height: 34px; font-size: 0.8125rem; }
    .ce-step-line { max-width: 40px; }
    .ce-result-title { font-size: 1.25rem; }
    .ce-svc-price-range { flex-direction: column; align-items: flex-start; gap: 2px; }
    .ce-total-price { font-size: 1.0625rem; }
    .ce-lead-fields { flex-direction: column; align-items: stretch; }
    .ce-lead-input { max-width: 100%; }
}

/* ===========================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   =========================================== */

/* --- Touch targets: min 44px for all interactive elements --- */
.btn { min-height: 44px; }
.tab { min-height: 44px; display: inline-flex; align-items: center; }
.hamburger { min-height: 44px; min-width: 44px; }
.quiz-opt { min-height: 44px; }
.ce-cat-btn { min-height: 44px; }
.ce-concern-btn { min-height: 44px; }
.time-slot { min-height: 44px; }
.cal-day { min-height: 44px; }
.est-add-btn { min-height: 44px; min-width: 44px; }
.chat-send { min-height: 44px; min-width: 44px; }

/* --- Tables: horizontal scroll wrapper --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.legal-content table {
    min-width: 480px;
}
.summary-table {
    min-width: 320px;
}

/* --- Testimonials grid: 1 col on mobile --- */
@media (max-width: 768px) {
    .test-grid { grid-template-columns: 1fr; }
}

/* --- Team/Doctor grid: 1 col on small mobile --- */
@media (max-width: 640px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* --- Values grid: 1 col on small mobile --- */
@media (max-width: 640px) {
    .values-grid { grid-template-columns: 1fr; }
}

/* --- Features boxes: full width on mobile --- */
@media (max-width: 768px) {
    .feat { flex-direction: column; align-items: stretch; }
    .fb { width: 100%; }
}

/* --- FAQ: full width with proper padding on mobile --- */
@media (max-width: 768px) {
    .faq details { margin-left: 0; margin-right: 0; }
    .faq summary { padding: 14px 12px; font-size: 0.8125rem; }
    .faq details p { padding: 10px 12px; }
}

/* --- Booking wizard: full-width buttons on mobile --- */
@media (max-width: 640px) {
    .wiz { padding: 20px 14px; margin: 0 -4px; }
    .wiz-nav { flex-direction: column; gap: 8px; }
    .wiz-nav .btn { width: 100%; text-align: center; justify-content: center; }
    .stepper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .step-l { display: none; }
    .step-c { width: 32px; height: 32px; font-size: 0.75rem; }
}

/* --- Dashboard: stack layout on mobile --- */
@media (max-width: 768px) {
    .appt-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .appt-status { align-self: flex-start; }
    .appt-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .appt-actions .btn { flex: 1; text-align: center; justify-content: center; }
}

/* --- Contact grid: already 1col at 1024px, ensure form-row stacks --- */
@media (max-width: 768px) {
    .contact-grid { gap: 24px; }
    .ci-list li { font-size: 0.8125rem; }
}

/* --- Footer: ensure text doesn't overflow --- */
@media (max-width: 768px) {
    .ft-bot {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    .footer { padding: 36px 20px 20px; }
}

/* --- Gallery grid: ensure 1 col on mobile (already handled for gallery-ba-grid) --- */
@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .ba-slider { height: 200px; }
}

/* --- Legal content tables: wrap in scrollable area --- */
@media (max-width: 768px) {
    .legal-content { padding: 0 4px; }
    .legal-content table { font-size: 0.75rem; }
}

/* --- Auth pages: better mobile spacing --- */
@media (max-width: 480px) {
    .auth-container { margin: 0 8px; }
    .auth-card { padding: 20px 16px; }
    .auth-card h2 { font-size: 1.25rem; }
}

/* --- Cookie banner: full width on very small screens --- */
@media (max-width: 480px) {
    .cookie-banner {
        left: 8px; right: 8px;
        max-width: none;
        padding: 16px;
    }
    .cookie-btns { flex-direction: column; }
    .cookie-btns button { width: 100%; text-align: center; }
}

/* --- Modal: full width on mobile --- */
@media (max-width: 480px) {
    .modal-box {
        width: 96%;
        padding: 24px 16px;
        max-height: 90vh;
    }
}

/* --- Success card: tighter on mobile --- */
@media (max-width: 480px) {
    .success-card { padding: 28px 16px; }
    .success-card h2 { font-size: 1.25rem; }
}

/* --- Sidebar card stacking for detail pages --- */
@media (max-width: 768px) {
    .detail-layout { gap: 20px; }
    .sidebar-card { margin-bottom: 12px; }
}

/* --- Package detail page: inline grid fix --- */
@media (max-width: 640px) {
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
}

/* --- Review stats: wrap on small screens --- */
@media (max-width: 640px) {
    .rvs { flex-direction: column; align-items: center; gap: 12px; }
    .rv { width: 100%; }
}

/* --- Estimator layout: sticky panel -> static on mobile --- */
@media (max-width: 768px) {
    .est-summary-wrap { position: static; }
    .est-item { flex-wrap: wrap; }
    .est-cart-item { flex-wrap: wrap; }
    .est-cart-name { white-space: normal; }
}

/* --- WhatsApp + Chat FAB: avoid overlap on mobile --- */
@media (max-width: 480px) {
    .chat-fab {
        width: 52px;
        height: 52px;
        font-size: 1.375rem;
    }
}

/* --- Nav links: ensure z-index above page content on mobile --- */
@media (max-width: 768px) {
    .nav-links {
        z-index: 901;
    }
    .nav-links .lang-switcher {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* --- Prevent horizontal overflow globally --- */
html, body {
    overflow-x: hidden;
}
.sec, .sec-alt, .sec-dark {
    overflow-x: hidden;
}

/* === UI DESIGNER FIXES === */

/* Placeholder contrast (5.1:1 ratio) */
input::placeholder, textarea::placeholder { color: var(--text-l) !important; }

/* Disabled states improvement */
.btn:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
input:disabled, select:disabled, textarea:disabled { opacity: 0.6; background: var(--bg-alt); cursor: not-allowed; }

/* Loading skeleton */
.skeleton { background: var(--bg-alt); border-radius: var(--r); animation: skeleton-pulse 1.5s ease-in-out infinite; }
@keyframes skeleton-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Empty state enhancement */
.empty-state h3 { color: var(--text); font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { max-width: 400px; margin: 0 auto; }

/* === FOCUS-VISIBLE === */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--p, #0d9488);
    outline-offset: 2px;
}
