/* ============================================
   Thank-you pages that ask for a few words (/feedback/{run}/ and its thanks
   page) — supplemental styles. Loaded after the main site stylesheet
   (css/styles.css); reuses its tokens, buttons, menu and footer. Pages are
   generated by scripts/build-feedback.js. Bump FEEDBACK_CSS_VERSION in that
   script on any change here: /css/* is cached as immutable.

   One centred column, one purpose: the thanks, the free call said first as a
   slim band, then the ask, in the person's own voice, with a short form.
   ============================================ */

.fb-page {
  padding: calc(var(--nav-height) + clamp(2.5rem, 6vw, 4.5rem)) var(--space-4) clamp(3.5rem, 8vw, 6rem);
}

.fb-column {
  max-width: 40rem;
  margin: 0 auto;
}

/* ---- The thanks ---- */
.fb-head h1 {
  position: relative;
  display: inline-block;
  font-size: clamp(2.25rem, 5vw, 3rem);
  text-wrap: balance;
  margin-bottom: var(--space-6);
}

.fb-head h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
}

.fb-nowrap {
  white-space: nowrap;
}

.fb-lead {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--color-text);
  text-wrap: pretty;
  margin-bottom: 0;
}

/* ---- The free call: a slim band, said before the ask ---- */
.fb-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
  margin-top: var(--space-10);
  padding: var(--space-6) var(--space-6);
  background: var(--color-accent-subtle);
  border-radius: 12px;
}

.fb-call__text {
  flex: 1 1 18rem;
  min-width: 0;
}

.fb-call h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.fb-call p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text);
}

.fb-call__button {
  flex: 0 0 auto;
}

/* The day of the calls, said plainly (2026-11-08): Google's booking page opens
   on today and cannot be sent to a date. */
.fb-call p.fb-call__when {
  font-size: var(--text-md);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

/* In the booking window the day is the loudest thing on screen (the user,
   2026-11-08, vault ex.377: "Needs to be extremely visible"): the brand's
   solid orange, large type, a calendar mark, and the one click spelled out. */
.fb-booking__when {
  margin: 0;
  padding: var(--space-5) var(--space-6);
  color: var(--color-on-fill);
  background: var(--color-fill);
  text-align: center;
}

.fb-booking__date {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.fb-booking__date svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* The attention sign under the date (vault ex.397): a warning triangle and one
   bold line, set off from the date by a thin rule. */
.fb-booking__alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-3) auto var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-on-dark-border-hover);
  max-width: 30rem;
}

.fb-booking__alert svg {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.fb-booking__alert p {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
}

.fb-booking__how {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.5;
}

/* Google's button wording, one per line, quoted: words to look for, not buttons
   (a plate behind each read as something to tap). */
.fb-booking__links {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  max-width: 28rem;
  margin: var(--space-3) auto 0;
  padding: 0;
}

.fb-booking__links li {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.35;
}

.fb-booking__links li::before { content: "\201C"; }
.fb-booking__links li::after { content: "\201D"; }

.fb-booking__down {
  margin: var(--space-2) 0 0;
  font-size: 1.5rem;
  line-height: 1;
}

/* ---- The ask ---- */
.fb-ask {
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.fb-ask__intro {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.fb-ask__portrait {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}

.fb-ask h2 {
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  text-wrap: balance;
  margin-bottom: 0;
}

.fb-ask > p {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--color-text);
  text-wrap: pretty;
}

/* ---- The form ---- */
.fb-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.fb-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.fb-pair {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .fb-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: var(--space-6);
  }
}

.fb-q {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  padding: 0;
}

/* The quote's question (vault ex.496): the one thing on the form people must
   see. Since ex.502 ("this is the main question. It doesn't stand out as much
   as the other stuff … The emotion comes right"), it is the strongest thing on
   the form: the home page's question style (heading face, italic, the brand
   orange), larger than the points under it. */
.fb-q--main {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.6vw, 2.3rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

/* One question per line (vault ex.500: the question broke after "to a",
   "compressed, weird, and hard to read"). */
.fb-q--main span {
  display: block;
  text-wrap: balance;
}

/* The three points under the question (vault ex.500: "make things stand
   out", understood "after the first reading", easy to "look up" at while
   writing): one point per line, its key words in bold, in ordinary text at a
   size above the form's hints, each line opening with the orange dash of the
   home page's lists. */
.fb-cues {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: var(--space-3) var(--space-4);
  display: grid;
  gap: var(--space-1);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  /* A soft panel (the quote strips' colour), so the three points read as one
     block the eye can find again from the box (vault ex.500, layout C of the
     three shown). */
  background: var(--color-accent-subtle);
  border-radius: 10px;
}

@media (min-width: 640px) {
  .fb-cues {
    padding: var(--space-4) var(--space-5);
  }
}

.fb-cues li {
  position: relative;
  padding-left: var(--space-5);
  text-wrap: pretty;
}

.fb-cues li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 600;
}

/* One step quieter than the question (ex.502): ordinary size, semibold. */
.fb-cues strong {
  font-weight: 600;
}

/* Ideas, folded above the box (vault ex.496: "further prompting on whether
   they want to have ideas"; above the box since ex.500, on the user's word). */
.fb-ideas {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-light);
}

.fb-ideas summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
}

.fb-ideas[open] summary {
  margin-bottom: var(--space-2);
}

/* A legend does not take the flex gap; give it the same space below. */
legend.fb-q {
  margin-bottom: var(--space-2);
}

.fb-hint {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0;
}

.fb-hint p {
  margin: 0 0 var(--space-2);
}

/* Writing prompts: one per line, light, easy to scan. */
.fb-prompts {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2);
  display: grid;
  gap: var(--space-1);
}

.fb-prompts li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--color-text);
  text-wrap: pretty;
}

.fb-prompts li::before {
  content: '';
  position: absolute;
  left: var(--space-1);
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary-light);
}

/* ---- Booking overlay: Google's booking page over this page ---- */
.fb-booking {
  /* the site's reset sets margin 0 on everything; a dialog needs auto to centre */
  margin: auto;
  width: min(46rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--color-bg-white);
  box-shadow: var(--shadow-hover);
}

.fb-booking::backdrop {
  background: var(--color-backdrop);
}

.fb-booking__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}

.fb-booking__bar h2 {
  font-size: var(--text-xl);
  margin: 0;
}

.fb-booking__close {
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-light);
}

.fb-booking__close:hover,
.fb-booking__close:focus-visible {
  background: var(--color-accent-subtle);
  color: var(--color-text);
}

.fb-booking__frame iframe {
  display: block;
  width: 100%;
  height: min(70vh, 40rem);
  border: 0;
}

.fb-booking__note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  padding: var(--space-3) var(--space-5) var(--space-4);
  margin: 0;
}

@media (max-width: 480px) {
  .fb-booking {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .fb-booking__frame iframe {
    height: calc(100vh - 9rem);
  }
}

.fb-field input[type="text"],
.fb-field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-field);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-3) var(--space-4);
  width: 100%;
  min-width: 0;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
}

.fb-field textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.6;
}

.fb-field input[type="text"]:focus,
.fb-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

/* The permission: three rows you choose by clicking anywhere on them. */
.fb-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fb-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-field);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.fb-choice:hover {
  border-color: var(--color-accent-light);
}

.fb-choice:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-accent-subtle);
}

.fb-choice input {
  accent-color: var(--color-primary);
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.fb-choice:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fb-send {
  align-self: flex-start;
  min-width: 10rem;
}

.fb-note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: calc(var(--space-4) * -1);
}

.fb-back {
  margin-top: var(--space-10);
  font-size: var(--text-sm);
}

.fb-back a {
  color: var(--color-text-light);
}

.fb-back a:hover {
  color: var(--color-primary);
}

@media (max-width: 480px) {
  .fb-call {
    padding: var(--space-5);
  }

  .fb-call__button,
  .fb-send {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb-choice,
  .fb-field input[type="text"],
  .fb-field textarea {
    transition: none;
  }
}
