/* ============================================================
   OsherVest — Book a Demo Page (Single-Form Layout)
   ============================================================ */

.active-nav { color: #f0d8a8 !important; border-bottom: 2px solid var(--brand-orange); padding-bottom: 2px; }

/* ── Page wrapper ── */
.demo-page { padding: 5.5rem 0 5rem; }

/* ── Header ── */
.demo-container { max-width: 680px; }
.demo-header { text-align: center; margin-bottom: 2.5rem; }
.demo-header h1 { font-size: 2.6rem; font-weight: 900; color: #3d1f0a; letter-spacing: -1.5px; margin: 0.75rem 0 0.8rem; line-height: 1.15; }
.demo-header p { font-size: 1rem; color: #4a4540; max-width: 480px; margin: 0 auto 1.2rem; line-height: 1.7; }
.demo-trust { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; font-size: 0.83rem; font-weight: 700; color: #5c3520; }

/* ── Card ── */
.demo-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dark), var(--shadow-light);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 2.5rem 2.5rem 2rem;
}

/* ── Form Sections ── */
.form-section { margin-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 1.75rem; }
.form-section:last-of-type { border-bottom: none; }
.section-label {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3d1f0a;
  margin-bottom: 0.9rem;
}
.section-sublabel {
  font-size: 0.88rem;
  font-weight: 800;
  color: #3d1f0a;
  margin-bottom: 0.75rem;
}

/* ── Field Row ── */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-group { display: flex; flex-direction: column; gap: 0.35rem; }
.field-group label { font-size: 0.83rem; font-weight: 800; color: #1a1714; }
.field-group input,
.field-group select,
.field-group textarea {
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,0,0,0.16);
  background: var(--surface-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1a1714;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: var(--shadow-inset-dark), var(--shadow-inset-light);
  width: 100%;
  box-sizing: border-box;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(232,98,42,0.1);
}
.field-group input.error,
.field-group select.error { border-color: #ef4444; }
.field-error { font-size: 0.75rem; color: #c0392b; font-weight: 700; min-height: 14px; display: block; }

/* ── Textarea — bulletproof font override ── */
.field-group textarea,
.form-section textarea,
textarea#notes {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,0,0,0.16);
  background: var(--surface-light) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px; /* prevents iOS auto-zoom AND ensures readability */
  color: #1a1714 !important;
  font-weight: 500;
  outline: none;
  resize: vertical;
  min-height: 88px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-inset-dark), var(--shadow-inset-light);
  -webkit-appearance: none;
  appearance: none;
}
.field-group textarea:focus,
.form-section textarea:focus,
textarea#notes:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(232,98,42,0.1);
}

/* ── Phone Input ── */
.phone-input {
  display: flex;
  align-items: center;
  background: var(--surface-light);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-inset-dark), var(--shadow-inset-light);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-prefix {
  padding: 0.78rem 0.75rem;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 700;
  color: #3d2a1a;
  border-right: 1px solid rgba(0,0,0,0.15);
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-input input {
  border: none;
  box-shadow: none;
  background: transparent;
  flex: 1;
  padding: 0.78rem 0.8rem;
  min-width: 0;
}
.phone-input:focus-within {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(232,98,42,0.1);
}

/* ── Business Type Cards ── */
.option-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.opt-card {
  padding: 0.65rem 0.4rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3d2a1a;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-dark), var(--shadow-light);
  line-height: 1.4;
}
.opt-card:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.opt-card.selected { background: var(--brand-orange); color: white; border-color: var(--brand-orange); box-shadow: 0 4px 14px rgba(232,98,42,0.35); }

/* ── Goal Cards ── */
.goal-cards { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.4rem; }
.goal-card {
  padding: 0.55rem 1rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: #3d2a1a;
  background: var(--surface);
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-dark), var(--shadow-light);
}
.goal-card:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.goal-card.selected { background: var(--brand-orange); color: white; border-color: var(--brand-orange); box-shadow: 0 4px 14px rgba(232,98,42,0.3); }

/* ── Duration Cards ── */
.duration-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.dur-card {
  padding: 0.9rem 0.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #3d2a1a;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-dark), var(--shadow-light);
  line-height: 1.4;
}
.dur-card small { font-size: 0.72rem; font-weight: 500; display: block; margin-top: 0.2rem; }
.dur-card:hover { border-color: var(--brand-orange); }
.dur-card.selected { border-color: var(--brand-orange); color: var(--brand-orange); background: rgba(232,98,42,0.06); box-shadow: 0 4px 14px rgba(232,98,42,0.15); }

/* ── Calendar ── */
.calendar-wrap {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-dark), var(--shadow-light);
  margin-bottom: 1rem;
}
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-header span { font-size: 0.95rem; font-weight: 800; color: #3d1f0a; }
.cal-header button {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--surface-card);
  box-shadow: var(--shadow-dark), var(--shadow-light);
  cursor: pointer; font-size: 1.1rem; color: #3d1f0a;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cal-header button:hover { background: var(--brand-orange); color: white; }
.cal-days-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 0.4rem; }
.cal-days-header span { font-size: 0.7rem; font-weight: 800; color: #6b5d52; padding: 0.25rem 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; color: #1a1714;
}
.cal-day:hover:not(.disabled):not(.empty) { background: rgba(232,98,42,0.1); color: var(--brand-orange); }
.cal-day.today { border: 2px solid var(--brand-orange); color: var(--brand-orange); }
.cal-day.selected { background: var(--brand-orange); color: white; box-shadow: 0 3px 10px rgba(232,98,42,0.4); }
.cal-day.disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.35; }
.cal-day.disabled { color: #888; cursor: not-allowed; opacity: 0.6; }
.cal-day.empty { cursor: default; }

/* ── Time Slots ── */
.time-slots-wrap {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-dark), var(--shadow-light);
  margin-top: 0.5rem;
}
.time-slots-wrap h4 { font-size: 0.95rem; font-weight: 800; color: #3d1f0a; margin-bottom: 1rem; }
.time-slots { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.time-slot {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.83rem; font-weight: 700;
  border: 1.5px solid rgba(0,0,0,0.14);
  background: var(--surface-card);
  color: #1a1714;
  cursor: pointer; transition: all 0.2s;
  box-shadow: var(--shadow-dark), var(--shadow-light);
}
.time-slot:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.time-slot.selected { background: var(--brand-orange); color: white; border-color: var(--brand-orange); box-shadow: 0 3px 10px rgba(232,98,42,0.35); }

/* ── Submit Button ── */
.btn-submit {
  display: flex;
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* ── Footnote ── */
.form-footnote {
  text-align: center;
  font-size: 0.78rem;
  color: #6b5d52;
  font-weight: 500;
  margin-top: 0.9rem;
  line-height: 1.6;
}

/* ── Success State ── */
.success-state { text-align: center; padding: 3rem 1rem; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; animation: bounce 0.6s ease; }
@keyframes bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
.success-state h3 { font-size: 1.9rem; font-weight: 900; color: #3d1f0a; margin-bottom: 0.8rem; }
.success-state p { color: #4a4540; font-size: 1rem; max-width: 380px; margin: 0 auto 1.5rem; line-height: 1.7; }
.success-details { background: var(--surface); border-radius: var(--radius-sm); padding: 1rem 1.5rem; margin: 1.2rem auto; max-width: 340px; font-size: 0.9rem; color: #1a1714; font-weight: 500; line-height: 1.9; border: 1px solid rgba(0,0,0,0.08); }
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Tablet ── */
@media(max-width: 768px) {
  .demo-card { padding: 2rem 1.75rem; }
  .demo-header h1 { font-size: 2.2rem; }
  .option-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ── Mobile ── */
@media(max-width: 600px) {
  .demo-page { padding: 4.5rem 0 4rem; }
  .demo-header { margin-bottom: 1.75rem; }
  .demo-header h1 { font-size: 1.9rem; letter-spacing: -1px; }
  .demo-header p { font-size: 0.93rem; }
  .demo-trust { gap: 0.5rem; flex-direction: column; align-items: center; font-size: 0.8rem; }

  .demo-card { padding: 1.5rem 1.1rem 1.25rem; border-radius: var(--radius-sm); }

  /* Fields stack on mobile */
  .field-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .field-group input,
  .field-group select,
  .field-group textarea,
  textarea {
    font-size: 16px; /* prevents iOS auto-zoom */
    padding: 0.85rem 0.9rem;
  }

  /* Business type — 2 cols */
  .option-cards { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .opt-card { padding: 0.7rem 0.3rem; font-size: 0.78rem; }

  /* Goal cards */
  .goal-card { padding: 0.55rem 0.85rem; font-size: 0.8rem; }

  /* Duration */
  .duration-cards { gap: 0.5rem; }
  .dur-card { padding: 0.8rem 0.4rem; font-size: 0.82rem; }
  .dur-card small { font-size: 0.66rem; }

  /* Calendar */
  .calendar-wrap { padding: 1rem 0.8rem; }
  .cal-days-header span { font-size: 0.62rem; }
  .cal-day { font-size: 0.75rem; }
  .cal-header span { font-size: 0.88rem; }

  /* Time slots */
  .time-slots-wrap { padding: 1rem; }
  .time-slot { padding: 0.5rem 0.85rem; font-size: 0.8rem; }

  /* Submit */
  .btn-submit { padding: 1rem; font-size: 1rem; }

  /* Success */
  .success-state { padding: 2rem 0.5rem; }
  .success-state h3 { font-size: 1.55rem; }
  .success-actions { flex-direction: column; align-items: stretch; }
  .success-actions .btn { text-align: center; }
}

/* ── Very small ── */
@media(max-width: 360px) {
  .demo-header h1 { font-size: 1.65rem; }
  .option-cards { grid-template-columns: repeat(2, 1fr); }
  .duration-cards { grid-template-columns: 1fr; }
  .demo-card { padding: 1.1rem 0.9rem; }
}
