/* ===== SAMG Tour Scheduler — warm SAMG brand =====
   Palette, type and component look reproduced 1:1 from the original
   (_original_backup/index.html). Warm light: cream/warm-gray backgrounds,
   gold + olive accents, charcoal text, DM Sans. Self-hosted font, no CDN. */

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dmsans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --charcoal: #3A3A3A;
  --gold: #B5A17C;
  --olive: #6B7F3F;
  --cream: #F5F1EB;
  --bg: #F5F2ED;
  --red: #C0392B;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: #333;
  min-height: 100vh;
}

/* ── HEADER ── */
.header {
  background: var(--charcoal);
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
}
.header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.header .logo { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.header .logo span { background: var(--olive); color: white; padding: 2px 5px; border-radius: 2px; font-size: 9px; margin-left: 2px; }
.header h1 { font-size: 22px; font-weight: 700; color: white; }
.header .sub { font-size: 12px; color: var(--gold); margin-top: 4px; font-weight: 500; }

.main { max-width: 480px; margin: 0 auto; padding: 16px 16px 40px; }

/* ── STEP DOTS ── */
.steps { display: flex; justify-content: center; gap: 6px; padding: 16px 0 8px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; transition: all 0.3s; }
.step-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }
.step-dot.done { background: var(--olive); }

/* ── CARD ── */
.card {
  background: white;
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 14px;
  border: 1px solid #e8e5df;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.card-title {
  font-size: 11px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.card-title::before { content: ''; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }
.card-title.center { justify-content: center; }

/* ── PROPERTY CARDS ── */
.prop-cards { display: flex; flex-direction: column; gap: 10px; }
.prop-card {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  border: 2px solid #e8e5df; border-radius: 12px; cursor: pointer;
  transition: all 0.2s; background: white; -webkit-tap-highlight-color: transparent;
  width: 100%; text-align: left; font-family: inherit; color: inherit;
}
.prop-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.prop-card.selected { border-color: var(--gold); background: var(--cream); }
.prop-card .prop-icon {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; border: 2px solid #e8e5df; transition: border-color 0.2s;
}
.prop-card.selected .prop-icon { border-color: var(--gold); }
.prop-card .prop-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-card .prop-info { min-width: 0; }
.prop-card .prop-info h3 { font-size: 14px; font-weight: 700; color: #222; }
.prop-card .prop-info p { font-size: 11px; color: #888; margin-top: 3px; line-height: 1.4; }
.prop-card .prop-check {
  margin-left: auto; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #ddd; flex-shrink: 0; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: white;
}
.prop-card.selected .prop-check { background: var(--olive); border-color: var(--olive); }
.prop-card.selected .prop-check::after { content: '\2713'; }
.prop-card.disabled {
  opacity: 0.45; cursor: not-allowed; filter: grayscale(60%);
}

/* ── AVAILABILITY BADGE ── */
.avail-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px; margin-top: 5px;
}
.avail-limited { background: #FFF3CD; color: #7a5c00; }
.avail-none { background: #f0f0f0; color: #aaa; }

/* ── FORM FIELDS ── */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 13px; border: 1.5px solid #e0ddd7; border-radius: 9px;
  font-family: inherit; font-size: 14px; color: #222; background: white;
  appearance: none; -webkit-appearance: none; outline: none; transition: border-color 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.field input::placeholder { color: #bbb; }
.field .err { display: none; font-size: 11px; font-weight: 600; color: var(--red); margin-top: 6px; }
.field.invalid input { border-color: var(--red); }
.field.invalid .err { display: block; }

/* honeypot — off-screen, hidden from users and assistive tech, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ── CALENDAR / DATE PICKER ── */
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 4px; border: 2px solid #e8e5df; border-radius: 10px; cursor: pointer;
  transition: all 0.2s; -webkit-tap-highlight-color: transparent; background: white;
  font-family: inherit; color: inherit;
}
.cal-day:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cal-day.selected { border-color: var(--gold); background: var(--cream); }
.cal-day .cal-dow { font-size: 9px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }
.cal-day.selected .cal-dow { color: var(--gold); }
.cal-day .cal-date { font-size: 16px; font-weight: 700; color: #333; margin-top: 2px; line-height: 1; }
.cal-day.selected .cal-date { color: var(--charcoal); }
.cal-day .cal-mon { font-size: 9px; color: #aaa; margin-top: 1px; }
.cal-day.selected .cal-mon { color: #888; }

.time-label { font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.time-slot {
  padding: 9px 4px; text-align: center; border: 2px solid #e8e5df; border-radius: 9px;
  cursor: pointer; font-size: 12px; font-weight: 600; color: #555;
  transition: all 0.2s; -webkit-tap-highlight-color: transparent; background: white;
  font-family: inherit;
}
.time-slot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.time-slot.selected { border-color: var(--gold); background: var(--cream); color: var(--charcoal); }

/* ── PILL SELECTORS ── */
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  padding: 8px 14px; border: 2px solid #e8e5df; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: #555; cursor: pointer;
  transition: all 0.2s; -webkit-tap-highlight-color: transparent;
  background: white; font-family: inherit;
}
.pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill.selected { border-color: var(--gold); background: var(--cream); color: var(--charcoal); }

/* ── YES/NO ── */
.yn-block { margin-bottom: 14px; }
.yn-block:last-child { margin-bottom: 0; }
.yn-q { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 8px; line-height: 1.4; }
.yn-btns { display: flex; gap: 8px; }
.yn-btn {
  flex: 1; padding: 9px; text-align: center; border: 2px solid #e8e5df;
  border-radius: 9px; font-size: 13px; font-weight: 600; color: #777;
  cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: transparent;
  background: white; font-family: inherit;
}
.yn-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.yn-btn.selected-yes { border-color: var(--olive); background: #f0f5e8; color: var(--olive); }
.yn-btn.selected-no  { border-color: var(--gold);  background: var(--cream); color: #7a6a4a; }

/* ── BUTTONS ── */
.btn-next {
  width: 100%; padding: 14px; background: var(--charcoal); color: white;
  font-family: inherit; font-size: 15px; font-weight: 700; border: none;
  border-radius: 12px; cursor: pointer; transition: all 0.2s; margin-top: 4px;
  -webkit-tap-highlight-color: transparent;
}
.btn-next:disabled { background: #ccc; cursor: not-allowed; }
.btn-next:not(:disabled):active { background: #222; transform: scale(0.98); }
.btn-next:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.btn-back {
  display: block; width: 100%; padding: 11px; background: transparent; color: #888;
  font-family: inherit; font-size: 13px; font-weight: 600; border: none;
  text-align: center; cursor: pointer; margin-top: 8px; -webkit-tap-highlight-color: transparent;
}
.btn-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-submit {
  width: 100%; padding: 14px; background: var(--olive); color: white;
  font-family: inherit; font-size: 15px; font-weight: 700; border: none;
  border-radius: 12px; cursor: pointer; transition: all 0.2s; margin-top: 4px;
}
.btn-submit:not(:disabled):active { background: #556632; transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-submit:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

/* success-screen calendar actions */
.btn-gcal {
  display: block; width: 100%; padding: 13px; background: #4285F4; color: white;
  font-family: inherit; font-size: 14px; font-weight: 700; border-radius: 11px;
  text-decoration: none; text-align: center; border: none; cursor: pointer;
}
.btn-ics {
  display: block; width: 100%; padding: 11px; margin-top: 8px; background: transparent;
  border: 1.5px solid #ddd; border-radius: 11px; font-family: inherit; font-size: 13px;
  font-weight: 600; color: #666; cursor: pointer; text-align: center;
}
.btn-gcal:focus-visible, .btn-ics:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cal-help { font-size: 12px; color: #888; margin-bottom: 14px; line-height: 1.5; }

/* ── SUBMIT STATUS (pending / error) ── */
.status { margin-top: 12px; padding: 12px 14px; border-radius: 9px; font-size: 13px; line-height: 1.5; }
.status.pending { background: var(--cream); color: #7a6a4a; border: 1.5px solid var(--gold); }
.status.error { background: #fbeae8; color: var(--red); border: 1.5px solid #e6b0a8; }

/* ── SECTIONS ── */
.section { display: none; }
.section.active { display: block; }
.hidden { display: none !important; }

/* ── SUMMARY ── */
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f0ede7; gap: 12px; }
.summary-row:last-child { border-bottom: none; }
.summary-row .s-label { font-size: 11px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 0.6px; white-space: nowrap; }
.summary-row .s-val { font-size: 13px; font-weight: 600; color: #333; text-align: right; word-break: break-word; }

/* ── SUCCESS ── */
.success-wrap { text-align: center; padding: 40px 0 20px; }
.success-wrap .check { font-size: 56px; margin-bottom: 16px; }
.success-wrap h2 { font-size: 24px; font-weight: 700; color: var(--charcoal); margin-bottom: 10px; }
.success-wrap p { font-size: 14px; color: #666; line-height: 1.6; }
