/* inquire.css: the public Inquire page. Mobile first (390 px), then wider.
   Colours: maroon #8B1A1A, ink #1C1A17, paper #FBF9F6, sand #F1ECE4, line #E5DCD1, gold #C8973A.
   No inline styles anywhere: widths that change come from classes, data attributes or the --pct property. */

@font-face {
  font-family: "Anton";
  src: local("Anton"), url("fonts/Anton-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: local("Inter Tight"), url("fonts/InterTight-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --maroon: #8B1A1A;
  --ink: #1C1A17;
  --paper: #FBF9F6;
  --sand: #F1ECE4;
  --line: #E5DCD1;
  --gold: #C8973A;
  --muted: #5F584F;
  --error: #B3261E;
  --amber: #FBF0D6;
  --title-font: "Anton", Impact, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --text-font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--text-font);
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

html:not(.is-embedded) .app {
  min-height: 100vh;
}

h1, h2, h3, p, ol, ul, dl, dd, figure {
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}

h1:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* In the page flow and on screen, but with no height of its own: it takes room only when Cloudflare shows a
   challenge. It is never hidden or moved off screen, so a keyboard or a screen reader can always reach it. */
.human-check {
  display: flex;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

.boot {
  padding: 48px 0;
  color: var(--muted);
}

/* top bar */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand__name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top__link {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0 10px 12px;
}

/* progress, back, rail */

.progress {
  padding-top: 16px;
}

.progress__track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
}

.progress__fill {
  height: 100%;
  width: 0;
  background: var(--maroon);
  border-radius: 2px;
}

.progress[data-step="1"] .progress__fill { width: 16.667%; }
.progress[data-step="2"] .progress__fill { width: 33.333%; }
.progress[data-step="3"] .progress__fill { width: 50%; }
.progress[data-step="4"] .progress__fill { width: 66.667%; }
.progress[data-step="5"] .progress__fill { width: 83.333%; }
.progress[data-step="6"] .progress__fill { width: 100%; }

.progress__labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  padding: 0;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.progress__label.is-current {
  color: var(--maroon);
  font-weight: 700;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 4px;
  background: none;
  border: 0;
  color: var(--maroon);
  font-weight: 600;
  cursor: pointer;
}

.back::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid var(--maroon);
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}

.rail {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--sand);
  border-radius: 14px;
}

.rail__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.rail__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail__count {
  color: var(--maroon);
  font-weight: 700;
  white-space: nowrap;
}

.rail__line {
  margin: 6px 0 10px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.rail__bar {
  height: 6px;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
}

.rail__fill {
  height: 100%;
  width: var(--pct, 0%);
  background: var(--gold);
  border-radius: 3px;
}

.rail__note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* text */

.screen {
  display: block;
  padding-top: 20px;
}

.title {
  font: 400 30px/1.1 var(--title-font);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.title--big {
  font-size: 38px;
  margin-top: 12px;
}

.title--small {
  font-size: 26px;
  margin-top: 12px;
}

.lead {
  margin-top: 12px;
  color: var(--muted);
}

.small {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.help {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.label {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.error, .field__error {
  margin-top: 6px;
  font-size: 14px;
  color: var(--error);
}

/* buttons */

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 24px 0 8px;
  padding: 12px 24px;
  background: var(--maroon);
  border: 2px solid var(--maroon);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pill--outline {
  background: transparent;
  color: var(--maroon);
}

.linkbtn {
  display: block;
  margin: 12px auto 0;
  padding: 10px;
  background: none;
  border: 0;
  color: var(--maroon);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* cards and photo slots */

.card {
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card--sand {
  background: var(--sand);
}

.card__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
  border-radius: 10px;
}

.slot__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.slot__ph::after {
  content: "Photo: " attr(data-label);
}

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.photos--three {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.photo figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.grid--types, .grid--looks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tcard, .lcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.tcard__label, .lcard__label {
  padding: 0 4px 4px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tcard--other {
  justify-content: center;
  padding: 16px;
  background: var(--sand);
}

.tcard__help {
  font-size: 14px;
  color: var(--muted);
}

.is-selected, .card.is-selected {
  border-color: var(--maroon);
  box-shadow: 0 0 0 1px var(--maroon);
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.fcard {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 10px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.fcard__body {
  display: grid;
  gap: 4px;
  align-content: start;
}

.fcard__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
}

.fcard__who {
  font-size: 14px;
  color: var(--muted);
}

/* choice controls */

.seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.seg--sites {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seg__btn {
  min-height: 44px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.seg__btn[aria-checked="true"] {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.chip.is-on {
  border-color: var(--maroon);
  color: var(--maroon);
  font-weight: 600;
}

.sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.note {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
}

.note--sand {
  background: var(--sand);
}

.note--amber {
  background: var(--amber);
  border: 1px solid var(--gold);
}

.note a {
  color: var(--maroon);
  font-weight: 600;
}

/* fields */

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

input[type="text"], input[type="number"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

textarea {
  resize: vertical;
}

input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.field--check .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--maroon);
}

.field--check label {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
}

.shield {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.shield::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
}

/* item rows, switches, steppers */

.rows {
  display: block;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row--plain {
  margin-top: 12px;
}

.row__text {
  display: grid;
  gap: 2px;
}

.row__name {
  overflow-wrap: anywhere;
}

.row__help {
  font-size: 14px;
  color: var(--muted);
}

.row__lock {
  color: var(--maroon);
  font-weight: 600;
}

.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  padding: 0;
  background: var(--line);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.switch::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

.switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}

.switch.is-on {
  background: var(--maroon);
}

.switch.is-on .switch__knob {
  transform: translateX(20px);
}

.switch.is-locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.stepper {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper__btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.stepper__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper__btn::before, .stepper__btn--plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  background: var(--ink);
}

.stepper__btn--plus::after {
  transform: rotate(90deg);
}

.stepper__value {
  min-width: 24px;
  font-weight: 700;
  text-align: center;
}

.stepper__unit {
  color: var(--muted);
  font-size: 14px;
}

.toast {
  margin: 16px 0;
  padding: 10px 14px;
  background: var(--sand);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
}

/* upload and files */

.upload {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 16px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
}

.upload:focus-within {
  border-color: var(--maroon);
}

.files {
  list-style: none;
  padding: 0;
}

.files__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.files__name {
  overflow-wrap: anywhere;
}

.files__remove {
  flex: none;
  padding: 8px;
  background: none;
  border: 0;
  color: var(--maroon);
  font-weight: 600;
  cursor: pointer;
}

/* resume offer, thank you */

.resume {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--sand);
  border-radius: 14px;
}

.resume__buttons .pill {
  margin: 10px 0 0;
}

.tick {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  background: var(--maroon);
  border-radius: 50%;
}

.tick::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 7px;
  width: 8px;
  height: 15px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.ref {
  margin-top: 12px;
  font-weight: 600;
}

.nodes {
  list-style: none;
  padding: 0;
}

.nodes__item {
  position: relative;
  padding: 0 0 14px 28px;
}

.nodes__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
}

.nodes__item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 19px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.nodes__item:last-child {
  padding-bottom: 0;
}

.nodes__item:last-child::after {
  display: none;
}

.summary__row {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.summary__row:first-child {
  border-top: 0;
}

.summary__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary__value {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

/* wider screens */

@media (min-width: 700px) {
  .app {
    max-width: 720px;
  }

  .grid--types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--looks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seg--sites {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .title {
    font-size: 40px;
  }

  .title--big {
    font-size: 52px;
  }

  .title--small {
    font-size: 32px;
  }

  .pill {
    max-width: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .switch__knob {
    transition: none;
  }
}
