.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  min-height: calc(100svh - 12rem);
  margin-block: clamp(.8rem, 2vw, 1.6rem) clamp(2.5rem, 6vw, 6rem);
  border: 1px solid var(--line);
}

.quote-intro {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
  padding: clamp(1.55rem, 4.2vw, 4.4rem);
  border-top: 4px solid var(--gold);
  background-color: var(--night);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 25px 25px;
  color: var(--chalk);
}

.quote-intro .eyebrow { margin-bottom: 1.25rem; color: var(--gold); }
.quote-intro .eyebrow span { background: currentColor; }
.quote-intro h1 { max-width: 8ch; font-size: clamp(3.1rem, 5.9vw, 6.45rem); line-height: .98; text-wrap: initial; }
.quote-intro h1 + p { max-width: 27rem; margin-top: 1.2rem; color: #e1ddd3; }

.quote-steps {
  width: 100%;
  margin: clamp(1.6rem, 3.8vw, 3rem) 0 clamp(1.5rem, 4vw, 3.5rem);
  padding: 0;
  list-style: none;
}

.quote-steps li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .64rem .45rem;
  border-block-start: 1px solid #ffffff36;
  color: #dfd8cc;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.22;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.quote-steps li:last-child { border-block-end: 1px solid #ffffff36; }
.quote-steps li span { color: var(--gold); font-variant-numeric: tabular-nums; }
.quote-steps li[aria-current] { border-block-start-color: var(--gold); background: #e5a85818; color: #fff7e8; }
.quote-steps li[data-complete] { color: var(--chalk); }
.quote-privacy { margin-top: auto; padding-left: .75rem; border-left: 2px solid var(--gold); color: #e1ddd3; font-size: .87rem; }
.quote-privacy a { color: var(--chalk); text-decoration-color: var(--gold); text-underline-offset: .2em; }
.quote-privacy a:hover { color: var(--gold); }
.quote-privacy a:focus-visible { outline-color: var(--gold); }

.quote-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.quote-challenge:not(:empty) { margin-top: 1rem; }
.quote-summary-actions button:disabled { opacity: .65; cursor: wait; transform: none; }
.quote-send-status { margin-top: 1rem; padding: .75rem; border-left: 2px solid var(--ochre-dark); color: var(--ink); background: var(--paper); }
.quote-send-status[data-error] { border-color: #a12c23; color: #7b241d; background: #fbede7; }

.quote-workspace { min-width: 0; padding: clamp(1.18rem, 4.2vw, 4.4rem); border-top: 4px solid var(--ink); background: var(--white); }
.quote-panel { min-width: 0; max-width: 46rem; }
.quote-panel h2 { font-size: clamp(1.95rem, 4vw, 3.85rem); }
.quote-panel h2:focus { outline: none; }
.quote-panel-intro { margin: .65rem 0 1.3rem; color: var(--muted); }
.quote-panel + .quote-panel { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.quote-ready .quote-panel { margin-top: 0; padding-top: 0; border-top: 0; animation: quote-appear .19s ease both; }

.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.quote-fields .quote-wide, .quote-conditional h3 { grid-column: 1 / -1; }
.quote-conditional { margin-top: 1.25rem; padding: clamp(.7rem, 1.6vw, 1.15rem); border-left: 2px solid var(--ochre); background: var(--paper); }
.quote-conditional h3 { margin: 0; font-size: 1.02rem; letter-spacing: -.022em; }
.quote-field { min-width: 0; }
.quote-field label { display: block; margin-bottom: .35rem; font-size: .94rem; font-weight: 750; }
.quote-field label span { color: var(--muted); font-size: .81rem; font-weight: 400; }
.quote-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 3.05rem;
  padding: .61rem .69rem;
  border: 1px solid #8e8373;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .16s ease, background-color .16s ease;
}

.quote-field :is(input, select, textarea):hover { border-color: var(--ochre-dark); }
.quote-field :is(input, textarea)::placeholder { color: #66605a; opacity: 1; }
.quote-field textarea { display: block; resize: vertical; }
.quote-field [aria-invalid="true"] { border-color: #953721; background: #fff8f5; }
.quote-error { margin-top: .35rem; color: #8d2c19; font-size: .88rem; font-weight: 700; line-height: 1.35; }

.quote-actions, .quote-summary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.35rem; }
.quote-actions { justify-content: flex-end; max-width: 46rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.quote-actions [data-quote-back] { margin-right: auto; }

.quote-summary dl, .quote-fallback-summary dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.quote-summary :is(dt, dd), .quote-fallback-summary :is(dt, dd) { margin: 0; padding: .65rem .25rem; border-bottom: 1px solid var(--line); }
.quote-summary dt, .quote-fallback-summary dt { color: var(--muted); font-weight: 700; }
.quote-summary dd, .quote-fallback-summary dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-fallback { margin-bottom: 1.15rem; padding: .66rem .8rem; border-left: 2px solid var(--ochre); background: var(--paper); font-size: .92rem; }
.quote-fallback-summary { margin-top: 1.4rem; }
.quote-fallback-summary summary { min-height: 2.75rem; padding-block: .5rem; color: var(--ochre-dark); cursor: pointer; font-weight: 750; }
.quote-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes quote-appear {
  from { opacity: .4; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .quote-layout { grid-template-columns: minmax(0, 1fr); }
  .quote-intro, .quote-workspace { padding: clamp(.95rem, 4.6vw, 2.1rem); }
  .quote-intro h1 { max-width: none; }
  .quote-workspace { border-top: 0; }
  .quote-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 1.3rem 1rem; }
  .quote-steps li:last-child { border-block-end: 0; }
  .quote-steps li:not(:first-child) { border-inline-start: 1px solid #ffffff36; }
}

@media (max-width: 480px) {
  .quote-intro .eyebrow { margin-bottom: .85rem; }
  .quote-intro h1 { font-size: clamp(2.55rem, 10.25vw, 3.4rem); }
  .quote-intro h1 + p { margin-top: .8rem; }
  .quote-steps li { gap: .34rem; padding-inline: .27rem; font-size: .76rem; }
  .quote-fields { grid-template-columns: minmax(0, 1fr); }
  .quote-workspace { padding-block: 1.2rem; }
  .quote-actions .button { padding-inline: .8rem; }
  .quote-summary dl, .quote-fallback-summary dl { grid-template-columns: minmax(0, 1fr); }
  .quote-summary dt, .quote-fallback-summary dt { padding-bottom: 0; border-bottom: 0; }
  .quote-summary dd, .quote-fallback-summary dd { padding-top: .12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-layout *, .quote-layout *::before, .quote-layout *::after { animation: none !important; transition: none !important; }
}
.quote-work-list { margin: .25rem 0 0; padding: .8rem .8rem .7rem; min-inline-size: 0; border: 1px solid var(--line); }
.quote-work-list legend { padding: 0 .3rem; font-weight: 750; }
.quote-work-list legend span { color: var(--muted); font-size: .84rem; font-weight: 400; }
.quote-work-list > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .3rem .6rem; }
.quote-work-list label { display: flex; align-items: baseline; gap: .55rem; padding: .35rem .15rem; font-size: .9rem; cursor: pointer; }
.quote-work-list input { flex: none; accent-color: var(--ochre-dark); }
