/* Faithful update of the original scheduler look — values MEASURED from the live original
   (computed styles, 2026-07-17): transparent card over the peach/yellow fade, 4px black
   frame radius 16, no shadow; white inner boxes with 2px black borders; wrapper max 920px;
   content padding ~34px sides / ~120px bottom; dropdown 18px type. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { width: 100%; margin: 0; padding: 0; -webkit-text-size-adjust: 100%; }
body {
  width: 100%;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 180% 120% at 50% 0%, #FFF8F0 0%, #FDEBD0 60%, transparent 100%),
    radial-gradient(circle at 0% 100%, #E6A57E 0%, #D4A59A 15%, transparent 35%),
    radial-gradient(circle at 100% 100%, #E6A57E 0%, #D4A59A 15%, transparent 35%),
    #FDEBD0;
  background-attachment: fixed;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111827;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

/* Measured: outer wrapper padding 32px 20px; card wrapper max-width 920px */
.page { width: 100%; padding: 32px 20px; }

/* ---------- The app card (measured: transparent bg, 4px black, radius 16, no shadow) ---------- */
.app-card {
  max-width: 920px;
  margin: 0 auto;
  background: transparent;
  border: 4px solid #000000;
  border-radius: 16px;
  overflow: hidden;
}

/* Film strip flush inside the frame (measured: strip sits directly against the border,
   3px below it the content begins). Sprocket chrome recreates the original's baked-in bars. */
.strip-chrome {
  background: #000;
  padding: 14px 0;
  position: relative;
  margin-bottom: 3px;
}
.strip-chrome::before,
.strip-chrome::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background-image: radial-gradient(circle 3.5px at 50% 50%, #f6efe4 97%, transparent 100%);
  background-size: 18px 14px;
  background-repeat: repeat-x;
  background-position: 6px 50%;
}
.strip-chrome::before { top: 0; }
.strip-chrome::after { bottom: 0; }
.strip-frames {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip-frames img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 488 / 408;
  display: block;
}
/* Phone: the WHOLE strip scales down — all four frames always visible (Rob's ruling),
   same as the original site's single scaled strip image. Grid stays 4-across at every width. */
@media (max-width: 640px) {
  .strip-chrome { padding: 8px 0; }
  .strip-chrome::before, .strip-chrome::after {
    height: 8px;
    background-image: radial-gradient(circle 2px at 50% 50%, #f6efe4 97%, transparent 100%);
    background-size: 11px 8px;
  }
}

/* Measured: content area padding 33.5px sides, ~120px bottom (the original's tall breathing room) */
.card-body { padding: 18px 34px 44px; }

/* Measured: h1 33.5px / 700, margin 0 0 12px */
h1 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}
.tagline {
  margin: 0 0 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

/* ---------- GO emblem: fleet "way home" — header monogram (Rob's placement, 2026-07-17) ---------- */
/* The chip borrows the page's own "tappable" grammar: white surface, 2px black border —
   same as the dropdowns, slots, and submit button. Consistency is the affordance. */
.go-emblem {
  display: block;
  width: 80px;
  margin: 8px auto 20px;
  padding: 3px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 5px;
  box-shadow: 0 2px 0 #aaaaaa, 0 5px 11px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  line-height: 0;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.go-emblem img { width: 70px; height: 70px; border-radius: 2px; display: block; }
.go-emblem:hover, .go-emblem:focus-visible {
  background: #e1effe;
  border-color: #1a56db;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px #e1effe;
}

/* ---------- Crisis banner (measured: white, 2px black, radius 12, padding 20px 24px) ---------- */
.crisis {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 20px;
}
.crisis-title {
  margin: 0 0 6px;
  color: #dc2626;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.crisis-body {
  margin: 0 0 6px;
  color: #dc2626;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}
.crisis-disclaimer {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Labels, selects, inputs (measured: white, 2px black, radius 10, 16/18px padding, 18px type) ---------- */
label, .type-label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}
select, input[type="text"], input[type="email"], input[type="tel"],
input[type="datetime-local"], textarea {
  width: 100%;
  padding: 16px 18px;
  font-size: 18px;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 10px;
  outline: none;
}
select:focus, input:focus, textarea:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 3px #e1effe;
}
select { appearance: auto; cursor: pointer; font-weight: 500; }

/* ---------- Info / prompt boxes (white on the yellow, 2px black, centered) ---------- */
.info-box {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 22px 18px;
  margin: 20px 0 8px;
  text-align: center;
}
.prompt-main { margin: 0 0 10px; font-weight: 700; font-size: 16px; color: #111827; }
.prompt-tz { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #111827; }
.prompt-clock { margin: 0; font-size: 16px; font-weight: 700; color: #1a56db; }

/* ---------- Slot grid (enhanced picker) ---------- */
#picker-enhanced { margin-top: 16px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
#picker-enhanced .tz-note {
  margin: 4px 0 12px;
  font-size: 14px;
  color: #374151;
  text-align: center;
}
#picker-enhanced h3 {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.slot {
  min-height: 48px;
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  color: #1a56db;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 80ms ease, background 100ms ease, border-color 100ms ease;
}
.slot:hover { background: #e1effe; border-color: #1a56db; }
.slot:active { transform: scale(0.97); }
.slot.selected { background: #1a56db; border-color: #1a56db; color: #ffffff; }

/* ---------- Skeleton loading animation ---------- */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.skeleton-loading-text {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a56db;
  margin: 8px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.skeleton-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid #e1effe;
  border-top-color: #1a56db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
.skeleton-box {
  background: linear-gradient(90deg, #f8fafc 25%, #e2e8f0 50%, #f8fafc 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
  border-radius: 8px;
}
.skeleton-nav-strip {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
  overflow-x: hidden;
}
.skeleton-pill {
  height: 34px;
  width: 86px;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
}
.skeleton-header {
  height: 18px;
  width: 140px;
  margin: 18px 0 10px;
}
.skeleton-slot {
  height: 48px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
}

/* ---------- Week / Date quick-filter navigation ---------- */
.week-nav-container {
  margin: 6px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.week-nav-pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #374151;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 120ms ease;
}
.week-nav-pill:hover {
  background: #e1effe;
  border-color: #1a56db;
  color: #1a56db;
}
.week-nav-pill.active {
  background: #1a56db;
  border-color: #1a56db;
  color: #ffffff;
}

/* ---------- Smart Day-by-Day Selector Strip ---------- */
.day-nav-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin: 0 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.day-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  transition: all 120ms ease;
  min-width: 82px;
}
.day-chip-date {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}
.day-chip-count {
  font-size: 11px;
  font-weight: 600;
  color: #1a56db;
  margin-top: 2px;
}
.day-chip:hover {
  background: #f0f7ff;
  border-color: #1a56db;
}
.day-chip.active {
  background: #1a56db;
  border-color: #000000;
}
.day-chip.active .day-chip-date,
.day-chip.active .day-chip-count {
  color: #ffffff;
}

/* ---------- Two-stage picker: second dropdown ---------- */
#typeStage { margin-top: 12px; }

/* ---------- Static (no-JS) picker ---------- */
#picker-static[hidden] { display: none; }
.picker-help { margin: 8px 0 0; font-size: 14px; color: #6b7280; }

/* ---------- Form step ---------- */
.chosen-time {
  margin: 4px 0 4px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #1a56db;
}
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 0 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
}
.back-link:hover { color: #1a56db; text-decoration: underline; }

/* ---------- Required Indicator & Form Legend ---------- */
.req {
  color: #dc2626;
  font-weight: 700;
  margin-right: 4px;
}
.form-legend {
  margin: 6px 0 16px 0;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}

/* ---------- Phone Label Row (Inline Phone Number + International Checkbox) ---------- */
.phone-label-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 8px;
}
.phone-label-row label {
  margin: 0;
}
.intl-toggle-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.intl-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a56db;
  margin: 0;
  cursor: pointer;
}
textarea::placeholder, input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

textarea { resize: vertical; }

button[type="submit"], #done-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background: #1a56db;
  border: 2px solid #000000;
  border-radius: 10px;
  cursor: pointer;
}
button[type="submit"]:hover, #done-btn:hover { background: #1e429f; }
#form-status { margin: 12px 0 0; text-align: center; font-size: 15px; font-weight: 600; color: #374151; }

/* ---------- Success step ---------- */
.step-success { text-align: center; padding: 14px 0 4px; }
.success-h { margin: 6px 0 12px; color: #059669; font-size: 28px; font-weight: 700; }
.step-success p { margin: 0 0 8px; font-size: 16px; color: #374151; }
.success-what { font-weight: 700; color: #1a56db; }
.success-expect { font-weight: 600; }
#done-btn { max-width: 240px; margin: 18px auto 0; }

/* ---------- Honeypot (never display:none) ---------- */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Step visibility (JS-driven; JS-off shows selection+form stacked) ---------- */
.js-on .step-form, .js-on .step-success { display: none; }
.app-card[data-step="selection"] .step-selection { display: block; }
.app-card[data-step="form"].js-on .step-selection { display: none; }
.app-card[data-step="form"].js-on .step-form { display: block; }
.app-card[data-step="success"].js-on .step-selection,
.app-card[data-step="success"].js-on .step-form { display: none; }
.app-card[data-step="success"].js-on .step-success { display: block; }

/* ---------- Preview badge ---------- */
.preview-badge {
  position: fixed;
  bottom: 8px; left: 8px;
  z-index: 50;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- Tablet / phablet (iPad portrait, large phones) ---------- */
@media (max-width: 820px) {
  .page { padding: 22px 18px 32px; }
  h1 { font-size: 30px; }
}

/* ---------- Phone (iPhone, Android) ---------- */
@media (max-width: 560px) {
  .page { padding: 16px 16px 28px; }   /* real breathing room on both sides */
  .app-card { border-width: 3px; border-radius: 14px; }
  .card-body { padding: 16px 18px 30px; }
  h1 { font-size: 25px; margin: 0 0 10px; line-height: 1.15; }
  .tagline { font-size: 16px; margin: 0 0 14px; }
  .go-emblem { margin: 0 auto 16px; }
  .crisis { padding: 16px 16px; }
  .crisis-body { font-size: 14px; }
  .type-label, label { font-size: 15px; }
  .info-box { padding: 18px 14px; }
  .prompt-main { font-size: 15px; }
  select, input[type="text"], input[type="email"], input[type="tel"],
  input[type="datetime-local"], textarea { font-size: 16px; padding: 14px 14px; }
  button[type="submit"], #done-btn { font-size: 17px; padding: 15px 20px; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .slot { font-size: 14px; padding: 11px 6px; }
  .week-nav-pill { padding: 6px 11px; font-size: 12px; }
  .skeleton-slot { height: 42px; }
}

/* ---------- Small phone (iPhone SE / mini, 360px Androids) ---------- */
@media (max-width: 380px) {
  .page { padding: 12px 12px 24px; }
  h1 { font-size: 23px; }
  .card-body { padding: 14px 14px 26px; }
}
