:root {
  --ink: #171314;
  --paper: #f8f7f3;
  --white: #ffffff;
  --garnet: #7c2638;
  --green: #355f4d;
  --blue: #294f6b;
  --brass: #d3ad68;
  --line: rgba(23, 19, 20, 0.2);
  --muted: #6d6768;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  width: 100%;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(1.5rem, calc((100vw - var(--max)) / 2));
  transform: translateX(-50%);
  color: var(--ink);
  background: rgba(248, 247, 243, 0.97);
  border-bottom: 1px solid rgba(23, 19, 20, 0.18);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  flex: 0 0 3rem;
  padding: 0.18rem;
  background: #f8f7f3;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(23, 19, 20, 0.12);
  overflow: hidden;
}

.wordmark-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-links > a:not(.button) {
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links > a:not(.button):hover { text-decoration: underline; text-underline-offset: 0.35rem; }
.nav-links .button { white-space: nowrap; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.button-small { min-height: 2.55rem; padding: 0.55rem 0.9rem; font-size: 0.88rem; }
.button-light { border-color: rgba(255,255,255,0.65); color: var(--white); background: rgba(0,0,0,0.12); }
.button-light:hover { background: var(--white); color: var(--ink); }
.site-header:not(.page-header) .button-light { border-color: rgba(23,19,20,0.42); color: var(--ink); background: transparent; }
.site-header:not(.page-header) .button-light:hover { color: var(--white); background: var(--ink); }
.button-primary { color: var(--ink); background: var(--brass); }
.button-primary:hover { background: #e1c183; }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: var(--garnet); }

.hero {
  position: relative;
  display: grid;
  min-height: min(82svh, 820px);
  padding-top: 88px;
  place-items: end start;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(14, 12, 12, 0.88) 0%, rgba(14, 12, 12, 0.62) 34%, rgba(14, 12, 12, 0.08) 68%),
    linear-gradient(0deg, rgba(10, 9, 9, 0.58) 0%, transparent 40%),
    url("assets/ketubah-studio-hero.png") center / cover no-repeat;
}

.hero-content {
  z-index: 1;
  width: min(760px, calc(100% - 3rem));
  margin: 0 max(1.5rem, calc((100vw - var(--max)) / 2)) clamp(4rem, 9vh, 7rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dark { color: var(--garnet); }

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8.2rem;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 3px 24px rgba(0,0,0,0.25);
}

.hero-copy {
  max-width: 600px;
  margin: 1.7rem 0 2rem;
  font-size: 1.3rem;
  line-height: 1.5;
}

.hero-note {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--max)) / 2));
  bottom: 1.5rem;
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.band, .work-section, .process-section, .cta-section, .site-footer {
  padding-inline: max(1.5rem, calc((100vw - var(--max)) / 2));
}

.intro {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.section-number { padding-top: 0.35rem; color: var(--muted); font-size: 0.8rem; }

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.9rem;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-details { align-self: end; }
.intro-details > p { margin: 0 0 2rem; font-size: 1.08rem; }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

.work-section { padding-block: clamp(5rem, 10vw, 9rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.55fr); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2 { max-width: 850px; }
.section-note { max-width: 410px; margin: 0 0 0.4rem; color: var(--muted); }

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  gap: 2rem;
}

.work-slot { margin: 0; }
.work-slot-tall { grid-row: span 2; }
.art-placeholder {
  position: relative;
  display: flex;
  min-height: 310px;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  overflow: hidden;
  color: var(--white);
  background: var(--green);
  border: 12px solid #e5dfd3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32);
}

.work-slot-tall .art-placeholder { height: calc(100% - 2.4rem); min-height: 650px; }
.art-placeholder::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50% 45% 52% 48%;
}
.art-placeholder > span { z-index: 1; }
.placeholder-number { color: var(--brass); font-family: Georgia, serif; font-size: 2rem; }
.art-placeholder-garnet { background: var(--garnet); }
.art-placeholder-blue { background: var(--blue); }

.work-slot figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; font-weight: 700; }
.work-slot figcaption span { color: var(--muted); font-weight: 400; }

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--white);
}

.portrait-slot {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue), var(--green));
}

.portrait-initial { font-family: Georgia, serif; font-size: 12rem; line-height: 1; color: rgba(255,255,255,0.82); }
.about-copy h2 { max-width: 740px; }
.about-copy > p:last-child { max-width: 650px; margin: 2rem 0 0; font-size: 1.08rem; }

.process-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  color: var(--white);
  background: var(--ink);
}

.process-intro h2 { max-width: 620px; font-size: 4.8rem; }
.process-intro > p:last-child { max-width: 540px; margin: 2rem 0 0; color: rgba(255,255,255,0.72); }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.22); }
.process-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.22); }
.process-list li > span { color: var(--brass); }
.process-list h3 { margin: 0 0 0.35rem; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.process-list p { margin: 0; color: rgba(255,255,255,0.72); }

.cta-section { padding-block: clamp(5rem, 10vw, 9rem); text-align: center; }
.cta-section h2 { max-width: 940px; margin-inline: auto; }
.cta-section > p:not(.eyebrow) { max-width: 620px; margin: 1.5rem auto 2rem; color: var(--muted); font-size: 1.08rem; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding-block: 2rem;
  color: var(--white);
  background: var(--garnet);
}
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .hero h1 { font-size: 6.4rem; }
  h2, .process-intro h2 { font-size: 4rem; }
  .intro, .section-heading, .about-section, .process-section { grid-template-columns: 1fr; }
  .section-number { display: none; }
  .work-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .work-slot-tall { grid-row: auto; }
  .work-slot-tall .art-placeholder { min-height: 480px; }
  .portrait-slot { min-height: 470px; }
  .site-footer { grid-template-columns: 1fr; gap: 0.7rem; }
}

@media (max-width: 620px) {
  .site-header { width: 100%; min-height: 72px; padding-inline: 1rem; }
  .wordmark-mark { width: 2.6rem; flex-basis: 2.6rem; }
  .wordmark > span:last-child { max-width: 9rem; line-height: 1.1; }
  .nav-links > a:not(.button) { display: none; }
  .hero { min-height: 78svh; padding-top: 72px; background-position: 58% center; }
  .hero-content { width: calc(100% - 2rem); margin-inline: 1rem; margin-bottom: 4rem; }
  .hero h1 { font-size: 4.7rem; }
  .hero-copy { font-size: 1.08rem; }
  h2, .process-intro h2 { font-size: 3rem; }
  .hero-note { display: none; }
  .band, .work-section, .process-section, .cta-section, .site-footer { padding-inline: 1rem; }
  .intro { padding-block: 4.5rem; }
  .section-heading { gap: 1.5rem; }
  .work-grid { gap: 2.5rem; }
  .work-slot-tall .art-placeholder, .art-placeholder { min-height: 360px; }
  .about-section { gap: 3rem; }
  .portrait-slot { min-height: 410px; }
  .portrait-initial { font-size: 9rem; }
  .process-list li { grid-template-columns: 38px 1fr; gap: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.request-page { background: #efeee9; }
.page-header {
  position: relative;
  left: auto;
  width: 100%;
  max-width: none;
  padding-inline: max(1.5rem, calc((100vw - var(--max)) / 2));
  transform: none;
  color: var(--white);
  background: var(--ink);
  border: 0;
}

.request-main { padding-bottom: 6rem; }
.request-lede {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem 3.5rem;
}

.request-lede h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  font-weight: 400;
  line-height: 0.95;
}

.request-lede > div > p:last-child { max-width: 680px; margin: 1.5rem 0 0; font-size: 1.08rem; }
.lead-time { padding: 1.5rem 0 0; border-top: 3px solid var(--garnet); }
.lead-time span, .lead-time small { display: block; color: var(--muted); }
.lead-time strong { display: block; margin: 0.35rem 0; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; line-height: 1.2; }

.form-workspace {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.form-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 720px);
  margin-bottom: 1rem;
  padding: 4px;
  background: #d9d6ce;
  border-radius: 6px;
}

.form-tab {
  min-height: 3rem;
  padding: 0.7rem 1rem;
  color: #554f50;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.form-tab.is-active { color: var(--white); background: var(--ink); }
.form-panel { padding: clamp(1.5rem, 5vw, 4.5rem); background: var(--white); border-top: 5px solid var(--garnet); }
.form-panel[hidden] { display: none; }

.panel-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 820px;
  margin-bottom: 3.5rem;
}

.panel-heading > span { color: var(--garnet); font-weight: 800; }
.panel-heading h2 { font-size: 4.4rem; }
.panel-heading p { margin: 0.75rem 0 0; color: var(--muted); }

form { max-width: 980px; margin-left: auto; }
fieldset { margin: 0; padding: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
legend { width: 100%; margin-bottom: 1.5rem; padding: 0; font-family: Georgia, serif; font-size: 1.6rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem 1.5rem; }
.field-stack { display: grid; gap: 1.5rem; }

.quote-progress {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 2rem;
  padding: 0.7rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.quote-progress li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-progress li::after {
  content: "";
  height: 1px;
  flex: 1;
  margin-right: 0.65rem;
  background: var(--line);
}

.quote-progress li:last-child::after { display: none; }
.quote-progress li span { display: grid; width: 2rem; height: 2rem; flex: 0 0 2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 800; }
.quote-progress li.is-complete, .quote-progress li.is-current { color: var(--ink); }
.quote-progress li.is-complete span { color: var(--white); background: var(--green); border-color: var(--green); }
.quote-progress li.is-current span { color: var(--white); background: var(--garnet); border-color: var(--garnet); }

.wizard-step[hidden] { display: none; }
.wizard-step { scroll-margin-top: 5rem; }
.field-intro { max-width: 700px; margin: -0.5rem 0 1.5rem; color: var(--muted); }

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.style-choice {
  position: relative;
  display: grid;
  min-height: 118px;
  grid-template-columns: 96px minmax(0, 1fr) 24px;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.style-choice-wide { grid-column: 1 / -1; }
.style-choice input, .palette-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.style-choice:has(input:checked), .palette-choice:has(input:checked) { background: #f0f3f1; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.style-choice:has(input:focus-visible), .palette-choice:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 3px; }
.style-preview { display: grid; width: 100%; height: 92px; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: 3px; }
.style-preview i, .palette-swatches i { display: block; }
.style-copy { display: grid; gap: 0.35rem; }
.style-copy strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; line-height: 1.15; }
.style-copy small { color: var(--muted); font-size: 0.85rem; font-weight: 450; line-height: 1.4; }
.choice-check { display: grid; width: 1.4rem; height: 1.4rem; place-items: center; color: transparent; border: 1px solid var(--line); border-radius: 50%; }
.style-choice:has(input:checked) .choice-check { color: var(--white); background: var(--green); border-color: var(--green); }

.swatch-green { background: #355f4d; }
.swatch-garnet { background: #7c2638; }
.swatch-brass { background: #d3ad68; }
.swatch-stone { background: #c9bba4; }
.swatch-blue { background: #294f6b; }
.swatch-paper { background: #f2efe8; }
.swatch-ink { background: #171314; }
.swatch-protea { background: #bd5f72; }
.swatch-sky { background: #7ba6b5; }

.palette-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.palette-choice { position: relative; display: grid; gap: 0.7rem; padding: 0.7rem; background: #fbfaf7; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.palette-choice strong { font-size: 0.9rem; }
.palette-swatches { display: grid; height: 48px; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: 3px; }

.motif-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.motif-grid label { display: flex; min-height: 3rem; align-items: center; gap: 0.65rem; padding: 0.7rem 0.8rem; background: #fbfaf7; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.motif-grid input { width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; margin: 0; accent-color: var(--green); }
.motif-grid label:has(input:checked) { background: #f0f3f1; border-color: var(--green); }
.full-width-field { display: block; margin-top: 1.2rem; }

.wizard-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-top: 1rem; }
.wizard-actions-end { justify-content: flex-end; }

.selection-summary { margin: 0 0 1rem; padding: 1.25rem; background: #f0f3f1; border-left: 4px solid var(--green); }
.selection-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.selection-summary dl div { min-width: 0; }
.selection-summary dt { color: var(--muted); font-size: 0.8rem; }
.selection-summary dd { margin: 0.2rem 0 0; font-weight: 800; overflow-wrap: anywhere; }

label { font-weight: 750; }
input, select, textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.82rem 0.9rem;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid #9b9495;
  border-radius: 3px;
}

textarea { min-height: 7rem; resize: vertical; }
select { min-height: 3.25rem; }
.field-help { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.82rem; font-weight: 450; line-height: 1.45; }

.file-field {
  display: block;
  padding: 1.2rem;
  background: #f0f3f1;
  border: 1px dashed var(--green);
  border-radius: 4px;
}

.file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-field:focus-within { outline: 3px solid var(--brass); outline-offset: 3px; }
.file-action { display: inline-flex; margin-top: 0.8rem; padding: 0.6rem 0.8rem; color: var(--white); background: var(--green); border-radius: 3px; cursor: pointer; }
.file-list { display: block; margin-top: 0.75rem; color: var(--green); font-size: 0.9rem; font-weight: 650; overflow-wrap: anywhere; }

.money-input { display: grid; grid-template-columns: 2.8rem 1fr; margin-top: 0.45rem; }
.money-input > span { display: grid; place-items: center; color: var(--white); background: var(--garnet); border-radius: 3px 0 0 3px; }
.money-input input { margin: 0; border-left: 0; border-radius: 0 3px 3px 0; }

.check-field { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.75rem; align-items: start; margin: 1rem 0 2rem; }
.check-field input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--garnet); }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.text-button { min-height: 3rem; padding: 0.6rem 0.2rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); font-weight: 800; cursor: pointer; }
.form-status { display: block; min-height: 1.6rem; margin-top: 1.2rem; font-weight: 700; }
.form-status.is-working { color: var(--blue); }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--garnet); }
.request-footer { margin-top: 0; }

@media (max-width: 760px) {
  .request-lede h1 { font-size: 3.8rem; }
  .panel-heading h2 { font-size: 3rem; }
  .request-lede, .field-grid { grid-template-columns: 1fr; }
  .request-lede { gap: 2.5rem; padding-inline: 1rem; }
  .form-workspace { padding-inline: 0; }
  .form-tabs { width: calc(100% - 2rem); margin-inline: 1rem; }
  .form-panel { padding-inline: 1rem; }
  .panel-heading { grid-template-columns: 1fr; gap: 0.5rem; }
  .style-grid { grid-template-columns: 1fr; }
  .style-choice-wide { grid-column: auto; }
  .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motif-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .page-header { width: 100%; padding-inline: 1rem; }
  .form-tabs { grid-template-columns: 1fr; }
  .form-tab { text-align: left; }
  .quote-progress { margin-inline: -1rem; padding-inline: 1rem; }
  .quote-progress li { display: grid; justify-items: center; gap: 0.25rem; text-align: center; font-size: 0.78rem; }
  .quote-progress li::after { display: none; }
  .style-choice { min-height: 104px; grid-template-columns: 72px minmax(0, 1fr) 22px; gap: 0.75rem; }
  .style-preview { height: 78px; }
  .palette-grid, .motif-grid { grid-template-columns: 1fr; }
  .wizard-actions, .wizard-actions-end { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .wizard-actions .button, .wizard-actions .text-button { width: 100%; }
  .wizard-actions .text-button { order: 2; }
  .file-action { display: flex; width: 100%; justify-content: center; text-align: center; }
}
