/* DriveFresh "midnight teal" skin for the booking and account pages.
   Loads AFTER css/style.css and each page's own <style>. It re-maps the old colour tokens, so every rule that
   uses var(--blue), var(--surface) and so on picks up the new palette, then fixes the places that hard-coded
   white text on a gradient. No white anywhere: text is soft mint, the action colour is emerald with navy text.
   Same palette as css/home-v4.css. Page logic, ids and form fields are untouched. */

:root {
  --bg: #07151f;
  --bg2: #0a2330;
  --surface: #0f2f37;
  --surface2: #143d46;
  --border: rgba(150, 230, 205, .18);
  --blue: #2ecf9f;           /* the old "blue" accent is now emerald */
  --blue-l: #6fe8c4;
  --cyan: #34c4ae;
  --green: #47d9a8;
  --gold: #e8c170;
  --red: #f2897c;
  --white: #d6ece4;          /* "white" text is mint */
  --text: #c3dad3;
  --muted: #9bb9b3;
  --r: 20px;
  --r-sm: 12px;
  --night: #07151f;
  --mint: #d6ece4;
  --on-fresh: #04251c;       /* text on emerald */
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
input, select, textarea, button { font-family: var(--body); }
h1, h2, h3, .page-hero h1, .q-title, .dash-greeting, .success-screen h2, .nav-logo, .auth-logo { font-family: var(--display); }
.page-hero h1, .q-title, .dash-greeting, .success-screen h2 { letter-spacing: -.035em; }
:focus-visible { outline: 3px solid var(--blue-l) !important; outline-offset: 3px; }

/* ── nav ── */
nav { background: rgba(7, 21, 31, .82) !important; border-bottom: 1px solid var(--border) !important; box-shadow: none !important; }
nav.scrolled { background: rgba(7, 21, 31, .94) !important; }
.nav-logo { font-family: var(--display); letter-spacing: -.03em; color: var(--white); gap: 0; }
.nav-logo img.mark { width: 36px; height: 36px; object-fit: contain; margin-right: 10px; }
.nav-logo span { color: var(--blue); }
.nav-links a::after { background: var(--blue); }
.hamburger span { background: var(--white); }
.mobile-menu { background: rgba(7, 21, 31, .98); }

/* ── buttons: emerald with navy text ── */
.btn { font-family: var(--display); font-weight: 800; letter-spacing: -.005em; }
.btn::before, .btn-primary::after { display: none; }
.btn-primary, .btn-book, .auth-submit {
  background: var(--blue) !important; color: var(--on-fresh) !important; animation: none !important;
  box-shadow: 0 10px 30px rgba(46, 207, 159, .26) !important; border: 0;
}
.btn-primary:hover, .btn-book:hover, .auth-submit:hover { background: var(--blue-l) !important; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(46, 207, 159, .34) !important; }
.btn-outline { color: var(--white); border-color: var(--border); background: transparent; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-l); }
.btn-ghost { background: rgba(46, 207, 159, .1); color: var(--blue-l); border-color: rgba(46, 207, 159, .25); }
.btn-ghost:hover { background: rgba(46, 207, 159, .18); }
.btn-danger { background: var(--red); color: var(--on-fresh); }

/* ── forms ── */
.form-group label { color: var(--muted); letter-spacing: .08em; }
.form-group input, .form-group select, .form-group textarea { background: var(--bg2); border-color: var(--border); color: var(--white); border-radius: 12px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 207, 159, .16); background: var(--bg); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(155, 185, 179, .5); }
.auth-form .form-group input, .plan-schedule .form-group input, .plan-schedule .form-group select { background: var(--bg); }
.auth-error { background: rgba(242, 137, 124, .1); border-color: rgba(242, 137, 124, .3); color: var(--red); }
.q-err { color: var(--red); }
.form-group.invalid input, .form-group.invalid select { border-color: var(--red); box-shadow: 0 0 0 3px rgba(242, 137, 124, .14); }

/* ── page hero + sections ── */
.page-hero, .auth-section, .dash-hero { background: linear-gradient(180deg, #0a2330, #0a2b2e); }
.page-hero::before, .auth-section::before { background: radial-gradient(ellipse 60% 60% at 50% 55%, rgba(46, 207, 159, .14), transparent); }
.booking-section, .dashboard { background: var(--bg); }
.accent { color: var(--blue); background: none; -webkit-text-fill-color: currentColor; }

/* ── booking: stepper, picks, chips ── */
.step-dot.active .step-circle { background: var(--blue); color: var(--on-fresh); box-shadow: 0 0 0 5px rgba(46, 207, 159, .2); }
.step-dot.done .step-circle { background: var(--green); color: var(--on-fresh); }
.step-dot.done:not(:last-child)::after { background: var(--blue); }
.pkg-option, .chip, .count-btn, .upsell-box, .mode-opt { border-radius: 16px; }
.pkg-option:hover, .chip:hover, .count-btn:hover, .upsell-box:hover, .mode-opt:hover { border-color: rgba(46, 207, 159, .55); }
.pkg-option.selected, .chip.active, .count-btn.active, .upsell-box.active, .mode-opt.active { border-color: var(--blue); background: rgba(46, 207, 159, .1); }
.pkg-option.selected::after, .mode-opt.active::after { background: var(--blue); color: var(--on-fresh); }
.popular-ribbon { background: var(--gold); color: #2b1d04; }
.upsell-box.active .upsell-check { background: var(--blue); color: var(--on-fresh); }
.wiz-progress-fill { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.wiz-relax, .q-kicker, .upsell-note { color: var(--blue-l); }
.upsell-note { background: rgba(46, 207, 159, .12); }
.requirements-box { color: #e9d7ac; }
.price-hint, .confirm-header { background: linear-gradient(135deg, rgba(46, 207, 159, .14), rgba(52, 196, 174, .06)); border-color: rgba(46, 207, 159, .28); }
.confirm-header { border-color: var(--border); }
.stamp-notice, .stamp-earned { background: rgba(46, 207, 159, .1); border-color: rgba(46, 207, 159, .28); color: var(--blue-l); }
.success-icon { background: var(--blue); color: var(--on-fresh); }
.payment-box, .free-wash-notice, .free-wash-box { background: rgba(71, 217, 168, .09); border-color: rgba(71, 217, 168, .26); color: var(--green); }
/* calendar + time picker */
.cal-day { color: var(--white); }
.cal-day.today { background: rgba(46, 207, 159, .18); border-color: var(--blue); color: var(--blue-l); }
.cal-day.selected { background: var(--blue); border-color: transparent; color: var(--on-fresh); box-shadow: 0 5px 16px rgba(46, 207, 159, .4); }
.cal-key.key-today { background: rgba(46, 207, 159, .18); border-color: var(--blue); }
.cal-key.key-sel { background: var(--blue); }
.tp-selband { border-color: rgba(46, 207, 159, .4); background: rgba(46, 207, 159, .1); }
.wa-cta { color: #06301a; }
/* emoji icon boxes are hidden: the pages use words, not emoji */
.pkg-option-icon, .mode-ico, .requirements-icon, .wa-ic, .confirm-header-icon, .plan-card-icon, .empty-icon, .booking-meta-icon { display: none; }
.confirm-header { gap: 0; }

/* ── account: auth + dashboard ── */
.auth-box, .booking-item, .empty-state, .details-form, .confirm-card, .cal, .tp { border-color: var(--border); }
.auth-tab.active { background: var(--surface2); color: var(--white); }
.auth-tabs { background: var(--bg); }
.auth-note a { color: var(--blue-l) !important; }
.notif-card { background: rgba(46, 207, 159, .07); border-color: rgba(46, 207, 159, .24); }
.plan-card { background: linear-gradient(135deg, rgba(46, 207, 159, .12), rgba(52, 196, 174, .05)); border-color: rgba(46, 207, 159, .28); }
.plan-schedule { border-top-color: rgba(46, 207, 159, .22); }
.addr-chip.active { background: rgba(46, 207, 159, .14); border-color: rgba(46, 207, 159, .5); color: var(--blue-l); }
.loyalty-card { background: linear-gradient(160deg, rgba(46, 207, 159, .16), rgba(52, 196, 174, .05)); border-color: rgba(46, 207, 159, .28); }
.stamp { border-color: rgba(46, 207, 159, .3); background: var(--bg2); color: var(--on-fresh); font-weight: 800; }
.stamp.filled { background: var(--blue); box-shadow: 0 4px 14px rgba(46, 207, 159, .4); }
.stamp-progress-fill { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.booking-item:hover { border-color: rgba(46, 207, 159, .35); }
.booking-item-price { color: var(--blue-l); }
.loyalty-rule strong { color: var(--blue-l) !important; }
.loyalty-rule strong:last-of-type { color: var(--green) !important; }

/* ── misc ── */
.toast { background: var(--surface2); color: var(--white); border-color: var(--border); }
.toast.success { color: var(--green); border-color: rgba(71, 217, 168, .4); }
.toast.error { color: var(--red); border-color: rgba(242, 137, 124, .4); }
.q-escape a, .q-back:hover { color: var(--blue-l); }

/* ── footer (same as the new homepage) ── */
footer { background: #050f17; border-top: 1px solid var(--border); }
.footer-col h4 { color: var(--white); }
.footer-col ul li a:hover, .footer-bottom a { color: var(--blue-l); }
.footer-brand p, .footer-col ul li a, .footer-bottom { color: var(--muted); }
.footer-social a { color: var(--muted); font-size: .84rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.footer-social { gap: 18px; }
.footer-social a:hover { color: var(--blue-l); }

/* the selected tick sits bottom-right so it never covers the "Most Popular" ribbon */
.pkg-option.selected::after { top: auto; bottom: 14px; }

/* text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
