/* ── Wesley Grocery Connect — Main Styles ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #F7F4EF;
  --tan:         #E8E2D7;
  --bark:        #C4B99A;
  --moss:        #3D5A3E;
  --moss-light:  #4E7250;
  --moss-dark:   #2A3F2B;
  --gold:        #C8933A;
  --gold-light:  #E8B55A;
  --rust:        #B84C2E;
  --slate:       #2C3E35;
  --charcoal:    #1A2420;
  --white:       #FFFFFF;
  --muted:       #7A8A7C;
  --border:      #D8D2C7;
  --radius:      10px;
  --radius-lg:   14px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--moss); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.wgc-wrap         { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.wgc-wrap-wide    { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wgc-page         { padding: 40px 0 64px; }

/* ── NAV ── */
.wgc-nav {
  background: var(--slate);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.wgc-nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.wgc-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: var(--gold-light);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.wgc-brand-icon {
  width: 28px; height: 28px;
  background: var(--moss); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.wgc-nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wgc-nav-link {
  color: var(--bark); background: none; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 6px 12px; border-radius: 6px;
  cursor: pointer; transition: all .15s;
  text-decoration: none; display: inline-block;
}
.wgc-nav-link:hover { color: var(--cream); background: rgba(255,255,255,.08); text-decoration: none; }
.wgc-nav-link.active { color: var(--gold-light); }
.wgc-nav-pill {
  background: var(--moss); color: var(--cream) !important;
  border: none; border-radius: 20px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  padding: 6px 16px; cursor: pointer; transition: all .15s;
  text-decoration: none; display: inline-block;
}
.wgc-nav-pill:hover { background: var(--moss-light); text-decoration: none; }
.wgc-role-badge {
  font-size: 11px;
  background: rgba(200,147,58,.2); color: var(--gold-light);
  padding: 2px 8px; border-radius: 10px; margin-left: 4px;
}

/* ── HERO ── */
.wgc-hero {
  background: var(--slate); color: var(--cream);
  padding: 72px 24px 80px;
  position: relative; overflow: hidden;
}
.wgc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(61,90,62,.4) 0%, transparent 65%);
  pointer-events: none;
}
.wgc-hero-inner { max-width: 700px; margin: 0 auto; position: relative; }
.wgc-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(200,147,58,.15); border: 1px solid rgba(200,147,58,.3);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 20px;
}
.wgc-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px,6vw,54px); font-weight: 700; line-height: 1.1;
  color: var(--cream); margin-bottom: 20px;
}
.wgc-hero h1 em { color: var(--gold-light); font-style: italic; }
.wgc-hero-desc { font-size: 17px; color: var(--bark); max-width: 520px; margin-bottom: 36px; line-height: 1.7; }
.wgc-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn, button.btn, input[type=submit].btn, a.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: all .15s; text-decoration: none; white-space: nowrap;
  line-height: 1.4;
}
.btn-primary  { background: var(--moss);  color: var(--white); }
.btn-primary:hover  { background: var(--moss-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(61,90,62,.3); text-decoration: none; color: var(--white); }
.btn-gold     { background: var(--gold);  color: var(--white); }
.btn-gold:hover     { background: var(--gold-light); transform: translateY(-1px); text-decoration: none; color: var(--white); }
.btn-outline  { background: transparent; color: var(--cream); border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline:hover  { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); text-decoration: none; color: var(--cream); }
.btn-ghost    { background: transparent; color: var(--muted); }
.btn-ghost:hover    { background: var(--tan); color: var(--charcoal); text-decoration: none; }
.btn-danger   { background: var(--rust);  color: var(--white); }
.btn-danger:hover   { background: #a03d22; text-decoration: none; color: var(--white); }
.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 13px 28px; font-size: 16px; }
.btn:disabled, button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── CARDS ── */
.wgc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ── SECTION HEADER ── */
.wgc-section-header { margin-bottom: 24px; }
.wgc-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 4px;
}
.wgc-section-header p { color: var(--muted); font-size: 14px; }

/* ── FORMS ── */
.wgc-form-group { margin-bottom: 18px; }
.wgc-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--charcoal); margin-bottom: 6px; letter-spacing: .01em;
}
.wgc-input, .wgc-select, .wgc-textarea {
  width: 100%; font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--charcoal); background: var(--cream);
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 14px; transition: border-color .15s, box-shadow .15s;
  outline: none; -webkit-appearance: none;
}
.wgc-input:focus, .wgc-select:focus, .wgc-textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(61,90,62,.1);
  background: var(--white);
}
.wgc-textarea { min-height: 90px; resize: vertical; }
.wgc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8A7C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.wgc-hint  { font-size: 12px; color: var(--muted); margin-top: 4px; }
.wgc-error { font-size: 12px; color: var(--rust);  margin-top: 4px; }
.wgc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wgc-check-group { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.wgc-check-group input[type=checkbox] { width:16px; height:16px; min-width:16px; accent-color: var(--moss); margin-top:2px; }
.wgc-check-label { font-size: 14px; color: var(--charcoal); line-height: 1.5; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}
.badge-pending    { background: #FDF8EE; color: #7A5A1A; }
.badge-confirmed  { background: #EFF5EF; color: var(--moss-dark); }
.badge-waitlisted { background: #EEF5FA; color: #2C5F7A; }
.badge-cancelled  { background: #f5f5f5; color: #888; }
.badge-open       { background: #EFF5EF; color: var(--moss-dark); }
.badge-locked     { background: #FDF8EE; color: #7A5A1A; }
.badge-finalized  { background: #EEF5FA; color: #2C5F7A; }

/* ── SLOT CARDS ── */
.wgc-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wgc-slot-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  cursor: pointer; transition: all .15s; text-decoration: none; display: block; color: inherit;
}
.wgc-slot-card:hover { border-color: var(--moss); box-shadow: 0 4px 16px rgba(61,90,62,.1); transform: translateY(-1px); text-decoration: none; color: inherit; }
.wgc-slot-card.selected { border-color: var(--moss); background: #EFF5EF; }
.wgc-slot-date  { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--charcoal); }
.wgc-slot-time  { font-size: 13px; color: var(--muted); margin-top: 2px; }
.wgc-slot-meta  { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.wgc-slot-chip  {
  font-size: 12px; color: var(--muted);
  background: var(--cream); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 20px;
}
.wgc-slot-bar   { margin-top: 10px; height: 4px; background: var(--tan); border-radius: 2px; overflow: hidden; }
.wgc-slot-fill  { height: 100%; border-radius: 2px; transition: width .3s; }

/* ── STEPS ── */
.wgc-steps { display: flex; align-items: center; margin-bottom: 32px; }
.wgc-step  { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.wgc-step-circle {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  background: var(--tan); color: var(--muted); border: 2px solid var(--border);
}
.wgc-step.active .wgc-step-circle { background: var(--moss); color: white; border-color: var(--moss); }
.wgc-step.done   .wgc-step-circle { background: var(--moss); color: white; border-color: var(--moss); }
.wgc-step.active .wgc-step-label  { color: var(--moss); }
.wgc-step-label  { color: var(--muted); }
.wgc-step-sep    { flex: 1; height: 2px; background: var(--border); margin: 0 8px; min-width: 16px; }
.wgc-step-sep.done { background: var(--moss); }

/* ── ALERTS ── */
.wgc-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.wgc-alert-success  { background: #EFF5EF; color: var(--moss-dark); border: 1px solid rgba(61,90,62,.2); }
.wgc-alert-warning  { background: #FDF8EE; color: #7A5A1A;          border: 1px solid rgba(200,147,58,.25); }
.wgc-alert-danger   { background: #FDF0ED; color: var(--rust);       border: 1px solid rgba(184,76,46,.2); }
.wgc-alert-info     { background: #EEF5FA; color: #2C5F7A;           border: 1px solid rgba(44,95,122,.2); }

/* ── TABS ── */
.wgc-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; gap: 0; }
.wgc-tab {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  padding: 10px 18px; background: none; border: none; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap; transition: all .15s;
  text-decoration: none; display: inline-block;
}
.wgc-tab:hover  { color: var(--charcoal); text-decoration: none; }
.wgc-tab.active { color: var(--moss); border-bottom-color: var(--moss); }

/* ── STAT CARDS ── */
.wgc-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; margin-bottom: 28px; }
.wgc-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.wgc-stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wgc-stat-value { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--charcoal); }
.wgc-stat-sub   { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── TABLES ── */
.wgc-table-wrap { overflow-x: auto; }
.wgc-table { width: 100%; border-collapse: collapse; }
.wgc-table th {
  text-align: left; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}
.wgc-table td { padding: 12px; font-size: 14px; border-bottom: 1px solid var(--tan); vertical-align: middle; }
.wgc-table tr:last-child td { border-bottom: none; }
.wgc-table tr:hover td { background: rgba(0,0,0,.015); }

/* ── HOW IT WORKS ── */
.wgc-how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; margin-top: 28px; }
.wgc-how-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; }
.wgc-how-num  { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--gold-light); margin-bottom: 10px; }
.wgc-how-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.wgc-how-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── DASHBOARD BOOKING CARDS ── */
.wgc-booking-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 14px;
}
.wgc-booking-card.status-confirmed  { border-left: 4px solid var(--moss); }
.wgc-booking-card.status-pending    { border-left: 4px solid var(--bark); }
.wgc-booking-card.status-waitlisted { border-left: 4px solid #2C5F7A; }
.wgc-booking-card.status-cancelled  { border-left: 4px solid #ccc; opacity: .6; }
.wgc-booking-meta { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.wgc-booking-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; margin: 6px 0 4px; }
.wgc-booking-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* ── ADMIN MATCH ── */
.wgc-driver-lane {
  background: var(--cream); border: 1.5px dashed var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 12px;
}
.wgc-driver-lane-header { font-weight: 500; font-size: 14px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.wgc-rider-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 20px; font-size: 13px; margin: 3px;
}

/* ── EMPTY ── */
.wgc-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.wgc-empty-icon { font-size: 36px; margin-bottom: 12px; }
.wgc-empty h4 { font-size: 16px; font-weight: 500; margin-bottom: 6px; color: var(--charcoal); }

/* ── FOOTER ── */
.wgc-footer {
  background: var(--slate); color: var(--bark);
  padding: 28px 24px; text-align: center; font-size: 13px; margin-top: 48px;
}
.wgc-footer strong { color: var(--gold-light); }

/* ── MODAL ── */
.wgc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,36,32,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px; display: none;
}
.wgc-modal-overlay.open { display: flex; }
.wgc-modal {
  background: var(--white); border-radius: 16px; padding: 32px;
  max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.wgc-modal h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.wgc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }

/* ── UTILS ── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.text-sm    { font-size: 13px; }
.text-muted { color: var(--muted); }
.text-success { color: var(--moss); }
.text-danger  { color: var(--rust); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.w-full { width: 100%; }
.font-serif { font-family: 'Playfair Display', serif; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .wgc-hero  { padding: 48px 20px 56px; }
  .wgc-form-row { grid-template-columns: 1fr; }
  .wgc-booking-meta { flex-direction: column; }
  .wgc-booking-actions { align-items: flex-start; flex-direction: row; }
  .hide-mobile { display: none; }
}
