/* Hatcher Solutions LLC — custom intake forms
   Brand tokens (owner-corrected 2026-10-20, see CUSTOM_FORM_BUILD_PLAN.md):
   background #FDFCF9 · text #1F2A37 · accent light blue #7FA8C9 ·
   buttons antique gold #B08D57 with dark text · Playfair Display headings.
   Light, polished, professional. No vendor branding anywhere. */

:root {
  --bg: #fdfcf9;
  --ink: #1f2a37;
  --accent: #7fa8c9;
  --accent-dark: #4a7298;
  --gold: #b08d57;
  --gold-dark: #96733f;
  --muted: #5b6b7c;
  --line: #e3ded2;
  --field-bg: #ffffff;
  --error: #a33327;
  --ok-bg: #f2f7ee;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.masthead {
  text-align: center;
  padding: 24px 0 8px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 28px;
}

.wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 6px;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.intro {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 8px;
}

form { margin-top: 8px; }

fieldset {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0 0;
  padding: 22px 0 0;
}

fieldset:first-of-type { border-top: none; padding-top: 4px; }

legend, .group-label {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 10px;
}

.field { margin: 0 0 20px; }

label, .field-label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.required-mark { color: var(--gold-dark); }

.helper {
  display: block;
  font-weight: normal;
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* >=16px prevents iOS zoom-on-focus */
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

textarea { min-height: 130px; resize: vertical; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: normal;
}

.choice input { margin-top: 4px; accent-color: var(--accent-dark); flex: none; }

.choice .price { color: var(--accent-dark); font-weight: bold; white-space: nowrap; }

.conditional {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 6px 0 20px;
}

[hidden] { display: none !important; }

/* Honeypot: off-screen, NOT display:none (bots look for that). Real users
   never see or tab into it (tabindex="-1" + aria-hidden in the markup). */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 16px 20px;
  margin-top: 30px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--radius);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--gold-dark); color: #fff; }
button[type="submit"]:disabled { opacity: 0.55; cursor: wait; }

.error-text { color: var(--error); font-size: 14.5px; margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }

.status {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 24px;
}

.status.error { background: #fbf0ee; border: 1px solid var(--error); color: var(--ink); }
.status.success { background: var(--ok-bg); border: 1px solid var(--accent); }

.progress-list { list-style: none; margin: 14px 0 0; padding: 0; }
.progress-list li { margin-bottom: 10px; font-size: 15px; }
.progress-list progress { width: 100%; height: 10px; accent-color: var(--accent-dark); }

/* ---------- Voice message recorder (ask page) ---------- */

.voice-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
  padding: 16px 18px;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  background: #ffffff;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent-dark);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15.5px;
  font-weight: bold;
  cursor: pointer;
}

.btn-secondary:hover { background: #eef4f9; }
.btn-secondary:disabled { opacity: 0.55; cursor: wait; }

.rec-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  font-variant-numeric: tabular-nums;
}

.rec-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c0392b;
  animation: rec-pulse 1.1s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.voice-panel audio { width: 100%; margin: 10px 0 4px; }

.voice-note { color: var(--muted); font-size: 15px; margin: 6px 0; }

footer.colophon {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 640px) {
  .page { padding: 48px 32px 80px; }
  h1 { font-size: 40px; }
  button[type="submit"] { width: auto; min-width: 320px; margin-left: auto; margin-right: auto; }
}
