/* ============================================================================
   SHARED REQUEST SURFACE
   Both money-making flows — the print quote and the studio booking — are the
   same object: numbered steps on white stock, a summary panel on ink that
   follows you down the page, and a bottom bar on phones carrying the running
   total and the action.

   Everything common to both lives here so the two pages cannot drift apart.
   Page-specific controls live in quote.css and booking.css.
   ============================================================================ */

/* ------------------------------------------------------------- page head -- */
.page-head {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(24px, 4vw, 44px);
  color: var(--on-ink);
}

.page-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame-hot);
  margin-bottom: 16px;
}

.page-head__kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.page-head h1 {
  max-width: 16ch;
}

.page-head .lede {
  color: var(--on-ink-soft);
  margin-top: 18px;
}

/* ---------------------------------------------------------------- layout -- */
.request {
  display: grid;
  gap: 16px;
  align-items: start;
  padding-bottom: clamp(120px, 16vw, 160px);
}

@media (min-width: 860px) {
  .request {
    grid-template-columns: minmax(0, 1fr) 372px;
    gap: 20px;
    padding-bottom: clamp(64px, 8vw, 96px);
  }
}

/* the white stock panel the steps sit on */
.build {
  background: var(--stock);
  border-radius: var(--r-sheet);
  box-shadow: var(--lift-3);
  padding: clamp(20px, 3vw, 34px);
}

/* ----------------------------------------------------------------- steps -- */
.step + .step {
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--stock-line);
}

.step__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.step__n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: translateY(3px);
}

.step__title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.step__note {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--on-stock-soft);
  letter-spacing: -0.008em;
  margin-top: 3px;
}

.step__pair {
  display: grid;
  gap: 20px;
}

@media (min-width: 560px) {
  .step__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-stock-soft);
  margin-bottom: 9px;
}

/* --------------------------------------------------- segmented controls --- */
.seg-group {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #f7f0ec;
  border-radius: 14px;
}

.seg {
  flex: 1;
  min-height: 46px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--on-stock-soft);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.seg:hover {
  color: var(--on-stock);
}

.seg.is-on {
  background: var(--stock);
  color: var(--on-stock);
  box-shadow: var(--lift-1);
}

.seg--price em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-stock-soft);
  font-variant-numeric: tabular-nums;
}

.seg.is-on em {
  color: var(--flame-deep);
}

/* -------------------------------------------------------- option blocks --- */
/* Used for pickup/delivery on the print side and studio/offsite on the studio
   side — same control, same behaviour. */
.ff {
  display: grid;
  gap: 8px;
}

@media (min-width: 560px) {
  .ff {
    grid-template-columns: 1fr 1fr;
  }
}

.ff__opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 15px;
  border: 1px solid var(--stock-line);
  border-radius: var(--r-control);
  background: var(--stock);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.ff__opt:hover {
  border-color: #e0c8bc;
}

.ff__opt.is-on {
  border-color: var(--flame);
  background: var(--flame-wash);
}

.ff__top {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ff__price {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ff__opt.is-on .ff__price {
  color: var(--flame-deep);
}

.ff__free {
  color: var(--good);
}

.ff__note {
  font-size: 0.83rem;
  color: var(--on-stock-soft);
  line-height: 1.45;
}

/* --------------------------------------------------------------- fields --- */
.fields {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .fields--split {
    grid-template-columns: 1fr 1.35fr;
  }
}

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

.field label span {
  font-weight: 400;
  color: var(--on-stock-soft);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--stock-line);
  border-radius: var(--r-control);
  background: #fffcfa;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a7568; /* 4.6:1 on the field fill */
}

.field input:focus,
.field textarea:focus {
  border-color: var(--flame);
  background: var(--stock);
}

/* -------------------------------------------------------- summary panel --- */
.price {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-sheet);
  padding: clamp(20px, 2.6vw, 26px);
  box-shadow: var(--lift-3);
}

@media (min-width: 860px) {
  .price {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
}

.price__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-line);
}

.price__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price__garment {
  font-size: 0.84rem;
  color: var(--on-ink-soft);
  margin-top: 2px;
}

.price__lines {
  display: grid;
  gap: 11px;
  padding: 16px 0;
  font-size: 0.92rem;
}

.price__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--on-ink-soft);
}

.price__line b {
  font-weight: 600;
  color: var(--on-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price__line.is-free b,
.price__line--discount b {
  color: #6ee7a0; /* 8.9:1 on ink */
}

/* a summary line whose value is prose, not a number — wraps instead of clipping */
.price__line--text b {
  white-space: normal;
  text-align: right;
  font-variant-numeric: normal;
}

.price__line--empty b {
  color: var(--on-ink-soft);
  font-weight: 400;
}

.price__rule {
  border: 0;
  border-top: 1px solid var(--ink-line);
  margin: 0;
}

.price__total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
}

/* Scoped to the label only — a bare `span` here also caught the amount's own
   inner span and shrank the total. */
.price__total .label {
  font-size: 0.84rem;
  color: var(--on-ink-soft);
}

.price__total .amount {
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* the studio quotes in ranges, so its headline value is text, not a figure */
.price__total .amount--range {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  letter-spacing: -0.03em;
  text-align: right;
}

.price__total .amount i {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-ink-soft);
  margin-right: 5px;
  letter-spacing: 0;
}

.price__per {
  font-size: 0.83rem;
  color: #6ee7a0;
  margin-top: 7px;
}

.price__cta {
  margin-top: 20px;
}

.price__cta .btn {
  width: 100%;
}

/* Sits under the primary action — needs real separation from it, not the
   tight spacing that reads as part of the button. */
.price__fine {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--on-ink-soft);
}

.price__fine b {
  color: var(--on-ink);
  font-weight: 600;
}

/* ------------------------------------------------------------ mobile bar -- */
.bar {
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(23, 17, 14, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--ink-line);
  color: var(--on-ink);
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (min-width: 860px) {
  .bar {
    display: none;
  }
}

.bar__amount {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.bar__amount--sm {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.bar__amount i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--on-ink-soft);
  margin-right: 4px;
}

.bar__meta {
  font-size: 0.74rem;
  color: var(--on-ink-soft);
  line-height: 1.3;
  margin-top: 1px;
}

.bar .btn {
  margin-left: auto;
  flex: none;
}

/* --------------------------------------------------------------- no-JS --- */
.noscript-card {
  background: var(--stock);
  border-radius: var(--r-sheet);
  padding: 28px;
  box-shadow: var(--lift-3);
  margin-bottom: 16px;
}

/* ------------------------------------------------------------------ faq --- */
/* Shared: both the print quote and the studio booking end on an FAQ. These
   rules used to live in quote.css, which the booking page never loads — the
   booking FAQ rendered as bare 26px <details> rows inside a padded section,
   which read as a large empty gap above the footer. */
/* One column for heading and list together, so their left edges line up — the
   heading used to run the full page width while the list was centred narrower. */
.faq-block {
  max-width: 820px;
  margin-inline: auto;
}

.faq-title {
  color: var(--on-ink);
  margin-bottom: 24px;
}

.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  background: var(--stock);
  border-radius: var(--r-control);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: solid var(--flame);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.faq summary:hover {
  color: var(--flame-deep);
}

/* Aligned to the summary's text, not its padding box. */
.faq__a {
  padding: 0 22px 20px;
  color: var(--on-stock-soft);
  line-height: 1.6;
  max-width: 66ch;
}
