/* ============================================================
   NUCARPOOL — styles.css
   Fonts: Playfair Display (headings) + DM Sans (body/UI)
   Northwestern Purple · Gold accent · Warm premium feel
   ============================================================ */

/* ── Design tokens ── */
:root {
  --purple:        #4e2a84;
  --purple-mid:    #6b3aad;
  --purple-light:  #8a56cc;
  --purple-pale:   #f2effa;
  --purple-border: #ddd5f5;
  --gold:          #b6975a;
  --gold-light:    #f7edd8;
  --gold-border:   #e8d5a8;
  --bg:            #faf9f7;
  --card:          #ffffff;
  --text-1:        #0f0a1e;
  --text-2:        #544f6e;
  --text-3:        #7a7295;
  --border:        #ebe7f5;
  --green:         #16a34a;
  --green-pale:    #dcfce7;
  --red:           #dc2626;
  --red-pale:      #fef2f2;
  --shadow-sm:     0 2px 12px rgba(78,42,132,.07);
  --shadow-md:     0 6px 28px rgba(78,42,132,.11);
  --shadow-lg:     0 16px 48px rgba(78,42,132,.17);
  --r:             16px;
  --r-lg:          22px;
  --r-xl:          28px;
  --font-display:  'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset + base font ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--text-1);
}

/* ── Utility ── */
.hidden { display: none !important; }
.pill   { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--purple-pale); color: var(--purple); font-size: 12px; font-weight: 600; }
button:disabled { opacity: .5; cursor: not-allowed; }


/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  background: var(--purple);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 20px rgba(0,0,0,.2);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav-brand:hover { opacity: .85; }

.nav-brand-name {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}

.nav-brand-nu {
  color: var(--gold-light);
}

.nav-auth { display: flex; align-items: center; gap: 8px; }

.nav-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.nav-auth-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  letter-spacing: .1px;
}
.nav-auth-btn:hover { background: rgba(255,255,255,.24); }


/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: linear-gradient(148deg, #2d1452 0%, #4e2a84 44%, #6b3aad 78%, #7a4abf 100%);
  padding: 52px 18px 58px;
  overflow: hidden;
  position: relative;
}

/* Dot grid pattern */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Warm gold glow orb */
.hero-section::after {
  content: "";
  position: absolute;
  top: -120px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(182,151,90,.1) 0%, transparent 62%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; min-width: 0; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(182,151,90,.15);
  border: 1px solid rgba(182,151,90,.3);
  color: #f7edd8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  letter-spacing: -.2px;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.88);
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 28px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 13px 22px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 18px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { padding-right: 0; }

.hero-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  display: block;
}

.hero-stat-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
  letter-spacing: .4px;
  display: block;
  white-space: nowrap;
}


/* ── Hero decorative card ── */
.hero-deco {
  flex: 0 0 auto;
  width: 184px;
}

.hero-deco-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 17px 15px 15px;
  box-shadow: 0 14px 44px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.14);
  animation: heroFloat 4.5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-deco-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}

.hero-deco-brand {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .7px;
}

.hero-deco-badge {
  font-size: 8px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(182,151,90,.18);
  border: 1px solid rgba(182,151,90,.32);
  border-radius: 999px;
  padding: 2px 7px;
  letter-spacing: .2px;
}

.hero-deco-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 13px;
}

.hero-deco-endpoint {
  flex: 0 0 auto;
}

.hero-deco-endpoint--right { text-align: right; }

.hero-deco-code {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

.hero-deco-city-name {
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.hero-deco-flight {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero-deco-plane-icon {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  line-height: 1;
}

.hero-deco-flight-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.4), rgba(255,255,255,.12));
}

.hero-deco-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin-bottom: 11px;
}

.hero-deco-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-deco-avatars {
  display: flex;
}

.hero-deco-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

.hero-deco-avatar--b {
  margin-left: -6px;
  background: rgba(182,151,90,.25);
  border-color: rgba(182,151,90,.4);
}

.hero-deco-savings {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  margin-left: auto;
  white-space: nowrap;
}


/* ============================================================
   TAB BAR
   ============================================================ */
.tab-bar {
  background: var(--card);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 52px;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(78,42,132,.06);
  padding-top: 8px;
}

.tab-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
}

.tab-item {
  flex: 1;
  padding: 11px 10px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  letter-spacing: .1px;
  white-space: nowrap;
  border-radius: 0;
}
.tab-item:hover { color: var(--purple); }
.tab-item.active { color: var(--purple); border-bottom-color: var(--purple); }

.tab-icon { display: block; font-size: 15px; margin-bottom: 3px; line-height: 1; }


/* ============================================================
   MAIN
   ============================================================ */
.app-main {
  max-width: 900px;
  margin: 44px auto 60px;
  padding: 0 18px;
}


/* ============================================================
   HOW-IT-WORKS STRIP
   ============================================================ */
.how-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.how-step {
  flex: 1;
  background: var(--card);
  border-radius: var(--r);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.how-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.how-icon  { font-size: 26px; margin-bottom: 8px; line-height: 1; }
.how-title { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 5px; letter-spacing: .1px; }
.how-desc  { font-size: 12.5px; font-weight: 400; color: var(--text-2); line-height: 1.55; }


/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 28px 24px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.form-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.1px;
  margin-bottom: 4px;
}

.form-card-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 22px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 7px;
}

.hidden-select { display: none !important; }

.form-input,
.form-select,
.modal-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-1);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.modal-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(78,42,132,.1);
}
.form-input::placeholder,
.modal-input::placeholder { color: var(--text-3); font-weight: 400; }

input[type="date"].form-input { height: 48px; line-height: 24px; }
@supports (-webkit-touch-callout: none) {
  input[type="date"].form-input { -webkit-appearance: none; appearance: none; }
}

.field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 5px;
  line-height: 1.5;
}

.consent-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.5;
}
.consent-hint a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
}

.consent-check-wrap {
  margin: 14px 0 2px;
}
.consent-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.consent-check-input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--purple);
  cursor: pointer;
}
.consent-check-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
}
.consent-link {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
}

.field-group { flex: 1; }
.field-row   { display: flex; gap: 12px; margin-bottom: 16px; }
.field-row .field-group { min-width: 0; }
.field-solo  { margin-bottom: 16px; }


/* ============================================================
   DIRECTION PICKER
   ============================================================ */
.dir-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.dir-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  text-align: center;
}
.dir-card:hover  { border-color: var(--purple-light); background: var(--purple-pale); transform: translateY(-1px); }
.dir-card.active { border-color: var(--purple); background: var(--purple-pale); box-shadow: 0 0 0 3px rgba(78,42,132,.1); }

.dir-card-icons { font-size: 20px; line-height: 1; letter-spacing: 3px; }
.dir-card-route { font-size: 13.5px; font-weight: 600; color: var(--text-1); line-height: 1.3; }
.dir-card.active .dir-card-route { color: var(--purple); }


/* ============================================================
   AIRPORT PILLS
   ============================================================ */
.airport-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.airport-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  text-align: center;
}
.airport-pill:hover  { border-color: var(--purple-light); background: var(--purple-pale); transform: translateY(-1px); }
.airport-pill.active { border-color: var(--purple); background: var(--purple-pale); box-shadow: 0 0 0 3px rgba(78,42,132,.1); }

.airport-pill-code { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: .5px; color: var(--text-1); display: block; }
.airport-pill-name { font-size: 12px; font-weight: 500; color: var(--text-2); display: block; }
.airport-pill.active .airport-pill-code { color: var(--purple); }
.airport-pill.active .airport-pill-name { color: var(--purple); opacity: .85; }


/* ============================================================
   SEGMENTED TOGGLE
   ============================================================ */
.seg-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.seg-btn {
  padding: 12px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  text-align: center;
  white-space: nowrap;
}
.seg-btn:hover  { border-color: var(--purple-light); background: var(--purple-pale); color: var(--text-1); }
.seg-btn.active { border-color: var(--purple); background: var(--purple-pale); color: var(--purple); font-weight: 700; box-shadow: 0 0 0 3px rgba(78,42,132,.1); }


/* ============================================================
   BUTTONS
   ============================================================ */
.search-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #4e2a84 0%, #6b2fad 55%, #7c34d4 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1px;
  cursor: pointer;
  transition: opacity .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 4px 18px rgba(78,42,132,.3);
}
.search-btn:hover  { opacity: .93; box-shadow: 0 6px 24px rgba(78,42,132,.38); }
.search-btn:active { transform: scale(.98); }
.search-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--purple-light); background: var(--purple-pale); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

.btn-danger {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid #fca5a5;
  background: #fff5f5;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-danger:hover { background: #fee2e2; border-color: #f87171; }


/* ============================================================
   STATUS MESSAGES
   ============================================================ */
.status-msg  { font-size: 13px; font-weight: 500; color: var(--green); margin-top: 8px; white-space: pre-wrap; }
.status-err  { font-size: 13px; font-weight: 500; color: var(--red);   margin-top: 8px; white-space: pre-wrap; }
.status-hint { font-size: 12px; font-weight: 400; color: var(--text-3); margin-top: 5px; }


/* ============================================================
   MY REQUESTS
   ============================================================ */
.section-page-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.1px;
}

.my-section-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-3);
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.my-empty {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-3);
  padding: 16px 0 8px;
  text-align: center;
}


/* ============================================================
   REQUEST CARDS
   ============================================================ */
.request-card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple-light);
  padding: 18px 18px 14px;
  margin-bottom: 12px;
  transition: box-shadow .2s;
}
.request-card:hover { box-shadow: var(--shadow-md); }
.request-card--matched  { border-left-color: var(--green); background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%); }
.request-card--canceled { border-left-color: var(--text-3); opacity: .6; }

.req-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.req-leaving-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.req-time {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.2px;
  line-height: 1.1;
}

.req-window-hint { font-size: 12px; font-weight: 400; color: var(--text-3); margin-top: 3px; }

.req-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.req-status-active   { background: #fef9c3; color: #92400e; }
.req-status-matched  { background: var(--green-pale); color: var(--green); }
.req-status-forming  { background: #ede9fe; color: #6d28d9; }
.req-status-canceled { background: var(--bg); color: var(--text-3); }

.req-details {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.req-riders {
  background: var(--green-pale);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.req-riders--forming { background: #f5f3ff; border-color: #ddd6fe; }

.req-riders-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.req-riders--forming .req-riders-title { color: #6d28d9; }

.req-rider-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.req-rider-row:last-of-type { margin-bottom: 0; }

.req-rider-you {
  background: var(--purple-pale);
  color: var(--purple);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.req-rider-name    { font-size: 14px; font-weight: 600; color: var(--text-1); }
.req-rider-phone   { font-size: 13px; font-weight: 500; color: var(--text-2); background: white; border-radius: 8px; padding: 3px 9px; }
.req-rider-nophone { font-size: 12px; font-weight: 400; color: var(--text-3); font-style: italic; }

.req-riders-hint { font-size: 13px; font-weight: 400; color: #166534; margin-top: 10px; line-height: 1.5; }

.req-forming-note {
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 500;
  color: #5b21b6;
  line-height: 1.55;
  margin-top: 10px;
}

.req-actions { display: flex; gap: 8px; margin-top: 10px; }


/* ============================================================
   ACCOUNT TAB
   ============================================================ */
.acct-email-display {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 11px 14px;
  background: var(--bg);
  border-radius: 12px;
  border: 1.5px solid var(--border);
}


/* ============================================================
   OVERLAY / MODALS
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,5,28,.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  z-index: 100;
  padding: 16px;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 520px) { .overlay { align-items: center; } }
.overlay.show { display: flex; }

.modal {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 24px 24px 18px 18px;
  box-shadow: 0 32px 70px rgba(0,0,0,.28);
  overflow: hidden;
  animation: modalSlideUp .24s cubic-bezier(.22,1,.36,1);
}
@media (min-width: 520px) { .modal { border-radius: 22px; } }

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modalHeader {
  background: linear-gradient(148deg, #2d1452 0%, #4e2a84 55%, #6b3aad 100%);
  padding: 28px 20px 22px;
  position: relative;
  text-align: center;
}

/* Brand mark for modal headers */
.modal-brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 12px;
  letter-spacing: -.3px;
}

.modalHeaderEmoji { font-size: 38px; line-height: 1; margin-bottom: 8px; }
.modalHeaderTitle { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.1px; margin: 0; }
.modalHeaderSub   { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.82); margin-top: 5px; }

.modalClose {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.modalClose:hover { background: rgba(255,255,255,.3); }

.modalTitle      { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-1); letter-spacing: -.1px; text-align: center; margin: 0 0 14px; }
.modalPlainBody  { padding: 20px 20px 22px; }
.modalBody       { padding: 16px 18px 20px; }
.modalActions    { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.modalActions button { flex: 1; }

.modal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
  margin-top: 12px;
}

.modal-btn-primary {
  width: 100%;
  padding: 13px 20px;
  margin-top: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #4e2a84 0%, #6b2fad 55%, #7c34d4 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(78,42,132,.28);
}
.modal-btn-primary:hover    { opacity: .91; box-shadow: 0 6px 22px rgba(78,42,132,.36); }
.modal-btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.modal-btn-secondary {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.modal-btn-secondary:hover { border-color: var(--purple-light); background: var(--purple-pale); color: var(--purple); }

.modal-btn-confirm {
  flex: 1;
  padding: 13px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #4e2a84 0%, #6b2fad 55%, #7c34d4 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  box-shadow: 0 4px 16px rgba(78,42,132,.28);
}
.modal-btn-confirm:hover    { opacity: .91; }
.modal-btn-confirm:disabled { opacity: .55; cursor: not-allowed; }

.stepList { display: flex; flex-direction: column; gap: 8px; }
.stepItem {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--purple-pale);
  border: 1px solid var(--purple-border);
  border-radius: 12px;
  padding: 12px;
}
.stepNum {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.stepText { font-size: 13px; color: var(--text-2); line-height: 1.5; padding-top: 2px; }
.stepText strong { font-weight: 700; color: var(--text-1); display: block; margin-bottom: 1px; }

.mascotSlot { text-align: center; margin-bottom: 6px; }

.no-rides-cta {
  text-align: center;
  padding: 44px 24px 40px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.no-rides-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.no-rides-sub   { font-size: 14px; font-weight: 400; color: var(--text-2); line-height: 1.65; max-width: 300px; margin: 0 auto 22px; }
.no-rides-btn {
  display: inline-block;
  padding: 13px 28px;
  background: linear-gradient(135deg, #4e2a84 0%, #6b2fad 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  box-shadow: 0 4px 14px rgba(78,42,132,.28);
}
.no-rides-btn:hover { opacity: .88; }


/* ============================================================
   POST-SUBMIT MODAL
   ============================================================ */
.sub-overlay { align-items: flex-end; padding: 0; }
@media (min-width: 540px) { .sub-overlay { align-items: center; padding: 20px; } }

@keyframes subSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sub-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  animation: subSlideUp .35s cubic-bezier(.22,.68,0,1.2) both;
}
@media (min-width: 540px) { .sub-modal { border-radius: 24px; box-shadow: 0 12px 50px rgba(0,0,0,.22); } }

.sub-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.sub-close:hover { background: rgba(255,255,255,.38); }

.sub-header { display: flex; flex-direction: column; align-items: center; padding: 28px 24px 22px; gap: 6px; }
.sub-header--matched { background: linear-gradient(148deg, #14532d 0%, #166534 55%, #15803d 100%); }
.sub-header--forming { background: linear-gradient(148deg, #2d1452 0%, #4e2a84 55%, #7c3aed 100%); }
.sub-header--waiting { background: linear-gradient(148deg, #1e3a8a 0%, #1e40af 55%, #3b82f6 100%); }

.sub-mascot { margin-bottom: 4px; }

.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: .2px;
  margin-bottom: 4px;
}

.sub-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: white; letter-spacing: -.1px; text-align: center; line-height: 1.15; }
.sub-sub   { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.84); text-align: center; line-height: 1.5; max-width: 320px; }

.sub-body  { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.sub-steps { display: flex; flex-direction: column; gap: 12px; }
.sub-step  { display: flex; align-items: flex-start; gap: 14px; }

.sub-step-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--purple-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 1px 4px rgba(78,42,132,.12);
}
.sub-header--matched ~ .sub-body .sub-step-icon { background: #dcfce7; }
.sub-header--waiting ~ .sub-body .sub-step-icon { background: #dbeafe; }

.sub-step-text { flex: 1; padding-top: 4px; }
.sub-step-head { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.sub-step-body { font-size: 13px; font-weight: 400; color: var(--text-2); line-height: 1.55; }

.sub-disclaimer { font-size: 12px; font-weight: 400; color: var(--text-3); text-align: center; line-height: 1.5; }

.sub-cta {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #4e2a84 0%, #6b2fad 55%, #7c34d4 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .1px;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(78,42,132,.3);
}
.sub-cta:hover  { opacity: .92; }
.sub-cta:active { transform: scale(.98); }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #f2f0f8;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 20px 32px;
  text-align: center;
}

.footer-brand      { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 5px; }

.footer-brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -.3px;
  flex-shrink: 0;
}

.footer-brand-name { font-size: 14px; font-weight: 700; color: var(--purple); }
.footer-tagline    { font-size: 12px; font-weight: 400; color: var(--text-3); margin: 4px 0 16px; line-height: 1.5; }
.footer-links      { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.footer-link {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.footer-link:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-pale); }

.footer-copy { margin-top: 18px; font-size: 12px; font-weight: 400; color: var(--text-3); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .hero-deco     { display: none; }
  .hero-headline { font-size: 30px; }
  .hero-stats    { padding: 12px 18px; }
  .hero-stat     { padding: 0 14px; }
  .hero-stat-num { font-size: 18px; }

  .how-strip  { flex-direction: column; gap: 8px; }
  .form-card  { padding: 22px 18px 18px; border-radius: var(--r-lg); }
  .field-row  { flex-direction: column; gap: 10px; }
  .tab-item   { font-size: 12px; padding: 10px 6px 10px; }
  .nav-chip   { display: none; }
}

@media (max-width: 480px) {
  .hero-headline      { font-size: 27px; }
  .req-time           { font-size: 20px; }
  .sub-title          { font-size: 20px; }
  .req-details        { font-size: 12px; gap: 8px; }
  .sub-body           { padding: 16px 16px 20px; }
  .form-card-title    { font-size: 19px; }
  .section-page-title { font-size: 19px; }
  .dir-card           { padding: 12px 6px; }
  .dir-card-route     { font-size: 13px; }
}
