/* Freshatz LLC design system — warm cream, charcoal, muted teal. Mobile-first. */
:root {
  --cream: #faf6ee;
  --cream-deep: #f3ecdd;
  --charcoal: #2e2c28;
  --charcoal-soft: #55524b;
  --teal: #4f7d7a;
  --teal-dark: #3d6361;
  --teal-pale: #e3efee;
  --line: #e2d9c6;
  --error: #b3402e;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

/* ---------- Header / brand ---------- */
.brand {
  text-align: center;
  padding: 28px 0 8px;
}
.brand img {
  width: 120px;
  height: auto;
  border-radius: 18px;
}
.brand h1 {
  font-size: 30px;
  margin: 14px 0 4px;
  letter-spacing: 0.5px;
}
.brand .tagline {
  color: var(--charcoal-soft);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ---------- Progress ---------- */
.progress {
  margin: 18px 0 6px;
}
.progress .label {
  font-size: 13px;
  color: var(--charcoal-soft);
  margin-bottom: 6px;
}
.progress .bar {
  height: 8px;
  background: var(--cream-deep);
  border-radius: 99px;
  overflow: hidden;
}
.progress .bar > div {
  height: 100%;
  background: var(--teal);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ---------- Screens ---------- */
.screen { display: none; }
.screen.active { display: block; }

.kicker {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 18px 0 8px;
  font-weight: 700;
}

h2.q {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 8px;
  font-weight: 700;
}
.note {
  color: var(--charcoal-soft);
  font-size: 15px;
  margin: 0 0 18px;
}
.optional-tag {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

/* ---------- Fields ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field textarea,
.field select {
  width: 100%;
  font-size: 17px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--charcoal);
  font-family: inherit;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-pale);
}
.field .error {
  display: none;
  color: var(--error);
  font-size: 14px;
  margin-top: 6px;
}
.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: var(--error);
}
.field.invalid .error { display: block; }

/* Big tap-target choice buttons */
.choices { display: grid; gap: 12px; margin-bottom: 8px; }
.choice {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
  font-family: inherit;
  min-height: 60px;
}
.choice:active { transform: scale(0.99); }
.choice.selected {
  border-color: var(--teal);
  background: var(--teal-pale);
}

/* Repeatable entry groups */
.entry-group {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.entry-group h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.add-btn {
  display: inline-block;
  background: none;
  border: 2px dashed var(--teal);
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 6px;
}
.remove-btn {
  background: none;
  border: none;
  color: var(--error);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
}

/* ---------- Nav buttons ---------- */
.nav {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  padding: 17px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 58px;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:active { background: var(--teal-dark); }
.btn-secondary {
  background: var(--cream-deep);
  color: var(--charcoal);
  flex: 0 0 auto;
  padding-left: 26px;
  padding-right: 26px;
}
.btn:disabled { opacity: 0.55; }

/* ---------- Review ---------- */
.review-section {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.review-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--cream-deep);
  font-size: 15px;
}
.review-row:first-of-type { border-top: none; }
.review-row .rl { color: var(--charcoal-soft); }
.review-row .rv { text-align: right; font-weight: 600; word-break: break-word; }

/* ---------- Confirmation ---------- */
.confirm {
  text-align: center;
  padding: 40px 0;
}
.confirm .big {
  font-size: 60px;
  margin-bottom: 8px;
}
.confirm h2 { font-size: 28px; margin: 0 0 10px; }
.confirm p { color: var(--charcoal-soft); }

/* ---------- Homepage cards ---------- */
.card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card h2 { margin: 0 0 8px; font-size: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 6px 0; color: var(--charcoal-soft); }
.card .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal-dark);
}
.btn-link {
  display: block;
  text-align: center;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  padding: 17px 20px;
  border-radius: var(--radius);
  margin-top: 14px;
  min-height: 58px;
}
.btn-link:active { background: var(--teal-dark); }
.btn-link.secondary {
  background: #fff;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}
.listing .addr { font-weight: 700; color: var(--charcoal); font-size: 17px; }
.footer {
  text-align: center;
  color: var(--charcoal-soft);
  font-size: 13px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
/* ---------- Stepper (adults/kids counters) ---------- */
.stepper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.stepper-label {
  font-size: 18px;
  font-weight: 600;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stepper-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: #fff;
  color: var(--teal-dark);
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.stepper-btn:active {
  background: var(--teal-pale);
}
.stepper-val {
  font-size: 22px;
  font-weight: 800;
  min-width: 36px;
  text-align: center;
}

/* ---------- $ prefix input ---------- */
.input-prefix {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.input-prefix:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-pale);
}
.input-prefix > span {
  padding: 14px 0 14px 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal-soft);
}
.input-prefix input {
  border: none !important;
  box-shadow: none !important;
  flex: 1;
}
.field.invalid .input-prefix {
  border-color: var(--error);
}

.hidden { display: none !important; }

/* ---------- Emergency card (maintenance page) ---------- */
.card.emergency {
  border: 2px solid var(--error);
  background: #fdf4f1;
}
.card.emergency h2 {
  color: var(--error);
  margin-top: 0;
}
.emergency-call {
  font-size: 20px;
  margin: 10px 0;
}
