.quote-page {
  background: #f3f6f7;
  color: var(--ink);
  padding-block: clamp(3rem, 7vw, 7rem);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.quote-intro h1 {
  max-width: 9em;
  margin: 0 0 1.3rem;
  color: var(--navy);
  font-size: clamp(3.3rem, 6vw, 6rem);
  line-height: .99;
  letter-spacing: -.05em;
}

.quote-lead {
  max-width: 35ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.quote-contact {
  margin-top: clamp(1.75rem, 4vw, 3.5rem);
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
}

.quote-contact h2 { margin: 0 0 .3rem; font-size: 1rem; }
.quote-contact a { display: table; color: var(--navy); }
.quote-phone { font-size: 1.36rem; font-weight: 700; text-decoration: none; }
.quote-address { margin-top: .25rem; overflow-wrap: anywhere; text-underline-offset: .2em; }
.quote-phone:hover { text-decoration: underline; }

.quote-panel {
  padding: clamp(1.35rem, 3.5vw, 3rem);
  background: #fff;
  border: 1px solid #cbd6dc;
  box-shadow: 0 7px 0 -1px #e3eaed;
}

.quote-panel h2 {
  margin: 0 0 1.65rem;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.quote-panel [hidden] { display: none !important; }
.quote-panel form { display: grid; gap: 1.2rem; }
.quote-field { display: grid; min-width: 0; gap: .45rem; font-weight: 600; line-height: 1.4; }
.quote-optional, .quote-hint { color: #49606c; font-size: .88rem; font-weight: 400; }
.quote-route { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.quote-field :is(select, input, textarea), .quote-message {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  border: 1px solid #879ba7;
  border-radius: 2px;
  padding: .65rem .8rem;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 400;
}

.quote-field input::placeholder { color: #586b76; }
.quote-field textarea, .quote-message { resize: vertical; }
.quote-panel :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.quote-panel h2:focus:not(:focus-visible) { outline: none; }
.quote-next { justify-self: start; margin-top: .2rem; }
.quote-next span, #quote-open span { margin-left: .4rem; }
.quote-panel button { cursor: pointer; }
.quote-panel #quote-review > p:first-child { margin: -0.5rem 0 1.2rem; }
.quote-envelope { margin: 0; border-block: 1px solid #ced8dd; padding-block: .75rem; }
.quote-envelope > div { display: grid; grid-template-columns: 4.3rem 1fr; gap: .5rem; margin: .25rem 0; }
.quote-envelope dt { font-weight: 600; }
.quote-envelope dd { margin: 0; overflow-wrap: anywhere; }
.quote-message-label { margin: 1rem 0 .4rem; }
.quote-message { background: #f8fafb; }
.quote-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.quote-feedback { margin: .8rem 0 0; font-size: .9rem; }
.quote-feedback:empty { margin: 0; }
.quote-back { background: transparent; border: 0; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; padding: .65rem 0; margin-top: .65rem; font: inherit; }

@media (max-width: 800px) {
  .quote-layout { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .quote-intro h1 { max-width: none; }
  .quote-lead { max-width: 50ch; }
}

@media (max-width: 460px) {
  .quote-route { grid-template-columns: 1fr; gap: 1.2rem; }
  .quote-panel { padding: 1.1rem; }
  .quote-intro h1 { font-size: clamp(2.6rem, 13vw, 3.7rem); }
}
