/* CutCycle — shared styles for the web account pages (signup.html, book-inspection.html).
 *
 * Same design tokens as website/calculator.html, kept in one file rather than pasted into
 * each page: these two pages are one flow and must not drift apart visually mid-journey.
 * Deliberately narrow (480px) and touch-sized (48px targets) — these pages are read on a
 * phone, standing at a letterbox, having just scanned a flyer.
 */

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

:root {
  --green: #1E3A2B;
  --green-light: #2D5A42;
  --green-faint: #E8F0EC;
  --gold: #C8963E;
  --white: #FFFFFF;
  --grey-50: #F8F9FA;
  --grey-100: #F1F3F5;
  --grey-200: #DEE2E6;
  --grey-400: #ADB5BD;
  --grey-600: #6C757D;
  --grey-800: #343A40;
  --grey-900: #212529;
  --accent: #2E7D32;
  --error: #B91C1C;
  --error-bg: #FEF2F2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--white);
  color: var(--grey-900);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.header {
  background: var(--green);
  color: var(--white);
  padding: 20px 16px 16px;
  text-align: center;
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.header-back {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 4px 0;
}
.header-back:active { opacity: 0.5; }
.header h1 { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; }
.header p { font-size: 13px; opacity: 0.85; margin-top: 4px; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 480px; margin: 0 auto; padding: 0 16px 80px; }
.section { margin-top: 24px; }
.section-label {
  font-size: 13px; font-weight: 600; color: var(--grey-600);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.lede { font-size: 15px; color: var(--grey-800); margin-top: 20px; }
.muted { font-size: 13px; color: var(--grey-600); }

/* ─── Fields ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--grey-800); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 2px solid var(--grey-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--grey-900);
  font-size: 16px; /* 16px or iOS zooms on focus */
  font-family: inherit; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
}
.field.invalid input, .field.invalid textarea {
  border-color: var(--error); background: var(--error-bg);
}
.field .err { display: none; font-size: 12px; font-weight: 600; color: var(--error); margin-top: 5px; }
.field.invalid .err { display: block; }
.field .hint { font-size: 12px; color: var(--grey-600); margin-top: 5px; }
.row { display: flex; gap: 10px; }
.row > .field { flex: 1; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.primary {
  display: block; width: 100%; min-height: 52px; margin-top: 18px;
  border: none; border-radius: var(--radius-sm);
  background: var(--green); color: var(--white);
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; text-align: center; text-decoration: none;
  padding: 14px 16px;
}
.primary:active { transform: scale(0.99); }
.primary[disabled] { opacity: 0.55; cursor: default; }
.secondary {
  display: block; width: 100%; min-height: 48px; margin-top: 10px;
  border: 2px solid var(--grey-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--grey-800);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-align: center; text-decoration: none; padding: 12px 16px;
}
.linkbtn {
  background: none; border: none; padding: 8px 0; font-family: inherit;
  font-size: 14px; font-weight: 600; color: var(--green); cursor: pointer;
  text-decoration: underline;
}

/* ─── Chips (dates and times) ────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 48px; min-width: 78px; padding: 8px 12px;
  border: 2px solid var(--grey-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--grey-800);
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.25;
}
.chip .chip-sub { font-size: 11px; font-weight: 500; color: var(--grey-600); }
.chip.nearby { border-color: var(--accent); }
.chip .chip-tag {
  font-size: 9px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px;
}
.chip.selected {
  border-color: var(--green); background: var(--green); color: var(--white);
}
.chip.selected .chip-sub, .chip.selected .chip-tag { color: rgba(255,255,255,0.8); }
.dates { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.dates .chip { flex: 0 0 auto; }

/* ─── Notices ────────────────────────────────────────────────────────────── */
.notice {
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 14px; line-height: 1.55; margin-top: 16px;
}
.notice-info { background: var(--green-faint); color: var(--green); }
.notice-warn { background: #FFF7E6; color: #7A5B00; }
.notice-error { background: var(--error-bg); color: var(--error); font-weight: 600; }
.notice a { color: inherit; font-weight: 700; }

.estimate {
  border: 2px dashed var(--grey-200); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 16px; background: var(--grey-50);
}
.estimate .amount { font-size: 26px; font-weight: 800; color: var(--green); }
.estimate .caveat { font-size: 12.5px; color: var(--grey-600); margin-top: 4px; line-height: 1.5; }

.done { text-align: center; padding: 28px 8px 8px; }
.done .tick { font-size: 44px; color: var(--accent); line-height: 1; }
.done h2 { font-size: 20px; font-weight: 800; color: var(--green); margin: 12px 0 8px; }
.done p { font-size: 15px; color: var(--grey-800); }
.when {
  border-radius: var(--radius); background: var(--green); color: var(--white);
  padding: 18px 16px; margin-top: 18px; text-align: center;
}
.when .when-day { font-size: 20px; font-weight: 800; }
.when .when-sub { font-size: 13px; opacity: 0.85; margin-top: 4px; }

footer.page-footer {
  border-top: 1px solid var(--grey-200); margin-top: 36px; padding: 20px 0 0;
  font-size: 12px; color: var(--grey-600); text-align: center; line-height: 1.7;
}
footer.page-footer a { color: var(--grey-600); }

.hidden { display: none !important; }
