/* =========================================================
   Website intake form: styles
   Light brand style. Teal used sparingly as accent only.
   Mobile-first. One column, generous whitespace.
========================================================= */

/* ---- Brand tokens ---- */
:root {
  --bg: #FEFCF9;        /* background */
  --text: #202020;      /* text */
  --teal: #53C5B3;      /* highlight / accent, used sparingly */
  --teal-soft: #eef9f6; /* very soft teal wash for accent boxes */
  --muted: #5f5f5a;     /* helper text */
  --line: #e4e1da;      /* hairlines and input borders */
  --error: #b3402e;     /* calm warm red for gentle errors */

  /* Body fallback stack in case Switzer does not load.
     Swap nothing here once Switzer is loading correctly. */
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Switzer", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset-ish ---- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Fixed header (DR.JOHNNA wordmark, always visible)
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px 12px;
}

.wordmark {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; opacity: 0.75; }
.wordmark:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
  border-radius: 4px;
}

/* =========================================================
   Progress bar (lives inside the header, steps only)
========================================================= */
.progress {
  margin: 12px 0 0;
}
.progress[hidden] { display: none; }

.progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--teal); /* accent: progress fill */
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-label {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* =========================================================
   Layout
========================================================= */
.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 72px 22px 64px; /* clears the fixed wordmark header */
}

/* When the progress bar shows, leave a little more room for it. */
body.has-progress .wrap {
  padding-top: 112px;
}

/* =========================================================
   Screens and step transitions
========================================================= */
.screen[hidden] { display: none; }

.screen {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .progress-fill { transition: none; }
}

/* =========================================================
   Typography
========================================================= */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}

h1.display { font-size: 2.4rem; }
h2.display { font-size: 1.95rem; }

.lead {
  font-size: 1.08rem;
  margin: 0 0 18px;
  color: var(--text);
}

.intro {
  font-size: 1.08rem;
  margin: 0 0 6px;
  color: var(--text);
}

.helper {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.helper-block {
  margin: 4px 0 22px;
}

a {
  color: #2c8576; /* a slightly deeper teal for readable links on light bg */
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { text-decoration: none; }

/* =========================================================
   Fields
========================================================= */
.field {
  margin: 0 0 26px;
  border: 0;
  padding: 0;
}

fieldset.field { min-width: 0; }

label,
legend {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 8px;
  padding: 0;
  color: var(--text);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px;
  line-height: 1.45;
}

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

input::placeholder,
textarea::placeholder { color: #a8a49c; }

/* Visible teal focus state on every input. */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(83, 197, 179, 0.28);
}

/* =========================================================
   Radio and checkbox choices (large tap targets)
========================================================= */
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.choice:last-child { margin-bottom: 0; }

.choice input[type="radio"],
.choice input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--teal); /* accent: selected control */
  cursor: pointer;
}

.choice label {
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

/* Keyboard focus visible on choices. */
.choice input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* A revealed sub-field (for "Something else") sits inside the fieldset. */
.reveal {
  margin: 4px 0 0;
  padding: 14px 0 0;
}

/* =========================================================
   Accent boxes
   Teal border allowed on: invite box and account-prep box.
========================================================= */
.invite-box,
.prep-box {
  border: 1px solid var(--teal); /* accent: box border */
  background: var(--teal-soft);
  border-radius: 14px;
  padding: 20px 20px;
  margin: 26px 0 0;
}

.invite-box p { margin: 0 0 14px; }

.invite-link {
  display: inline-block;
  font-weight: 600;
}

.invite-note {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

/* Numbered account steps inside the prep box. */
.prep-steps {
  margin: 0 0 14px;
  padding-left: 22px;
}
.prep-steps li { margin: 0 0 10px; }
.prep-steps li:last-child { margin-bottom: 0; }
.prep-steps a { font-weight: 600; }

.prep-box h3,
.invite-box h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.prep-box p { margin: 0 0 12px; }
.prep-box p:last-child { margin-bottom: 0; }

/* Soft, set-apart box (no teal) for the screenshots note. */
.soft-box {
  background: #f4f1ea;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 26px 0 0;
}
.soft-box p { margin: 0; font-size: 0.98rem; }

/* =========================================================
   Buttons
========================================================= */
.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 34px 0 0;
}

.actions-single { justify-content: flex-start; }

.btn {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

/* Primary button uses teal accent. */
.btn-primary {
  background: var(--teal);
  color: #0c302a;
  border-color: var(--teal);
}
.btn-primary:hover { background: #46b3a1; border-color: #46b3a1; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--text); }

.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* =========================================================
   Errors
========================================================= */
.error {
  color: var(--error);
  font-size: 0.9rem;
  margin: 8px 0 0;
  min-height: 0;
}
.error:empty { display: none; }

/* Highlight an invalid input gently. */
.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
}

.submit-error {
  color: var(--error);
  font-size: 0.95rem;
  background: #fbeeeb;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 24px 0 0;
}

/* =========================================================
   Thank-you screen
   Centered, except the checklist box stays left-aligned.
========================================================= */
#closing { text-align: center; }
#closing .prep-box {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 44px;
}

.signoff {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 22px 0 0;
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
  margin: 96px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.88rem;
}
.site-footer a { color: var(--muted); }

/* =========================================================
   Larger screens
========================================================= */
@media (min-width: 640px) {
  body { font-size: 18px; }
  h1.display { font-size: 3rem; }
  h2.display { font-size: 2.3rem; }
  .wrap { padding: 80px 24px 72px; }
}
