.quote-banner { padding-block: 24px 53px; }
.quote-banner h1 { max-width: 77%; }
.quote-banner p { max-width: min(77%, var(--reading-width)); line-height: 1.53; }
.quote-emblem {
  position: absolute;
  z-index: -1;
  top: -16px;
  right: 20px;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  color: #f1cf86;
  opacity: .73;
}
.quote-emblem::before, .quote-emblem::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(241 207 134 / 27%);
  border-radius: 50%;
  content: "";
}
.quote-emblem::after { inset: 23px; }
.quote-emblem .icon { width: 74px; height: 74px; stroke-width: 1.15; }

.quote-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(236px, 28%);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
  margin-top: -31px;
  padding-bottom: clamp(28px, 4vw, 49px);
}
.quote-card { padding: clamp(19px, 2.8vw, 36px); box-shadow: var(--shadow); }
.quote-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quote-card-heading h2, .contact-grid h2 { font-size: clamp(1.42rem, 2.5vw, 2rem); }
.sms-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .83rem; font-weight: 800; line-height: 1.25; }
.sms-label .icon { color: var(--gold-ink); }

.quote-progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(4px, 1vw, 8px);
  margin: 16px 0 19px;
  padding: 0;
  list-style: none;
}
.quote-progress li {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 9px);
  min-height: 44px;
  padding: 6px clamp(4px, 1.15vw, 13px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--muted);
  font-size: clamp(.75rem, 1.2vw, .94rem);
  font-weight: 800;
  line-height: 1.2;
}
.step-index { display: inline-grid; width: clamp(20px, 3vw, 25px); aspect-ratio: 1; place-items: center; flex: none; border-radius: 50%; color: var(--ink); background: #e8e7e0; font-size: .76rem; }
.quote-progress li[aria-current="step"] { border-color: #dfc68b; background: #fbf0d8; color: var(--ink); }
.quote-progress li[aria-current="step"] .step-index { background: var(--navy); color: var(--white); }
.quote-progress li.is-complete { border-color: #c7d9cf; background: #f0f6f2; color: #255f40; }
.quote-progress li.is-complete .step-index { background: #d6e9db; color: #255f40; }

.step-heading { font-size: clamp(1.13rem, 2.15vw, 1.45rem); margin-bottom: 13px; }
.step-description { color: var(--muted); font-size: .94rem; margin: -6px 0 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 15px 16px; }
.field-wide { grid-column: 1 / -1; }
.form-field { min-width: 0; }
.form-field label { display: block; width: fit-content; margin-bottom: 5px; font-size: var(--field-label-size); font-weight: 800; line-height: 1.3; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid var(--input-line);
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.35;
}
.form-field textarea { display: block; resize: vertical; }
.form-field input[type="date"] { max-width: 100%; }
.form-field :is(input, select, textarea):focus { border-color: var(--navy-raised); }
.form-field input::placeholder { color: #687484; opacity: 1; }
.form-field :is(input, select, textarea)[aria-invalid="true"] { border-color: #a92436; background: #fff8f7; }
.field-hint, .field-error { display: block; margin-top: 5px; font-size: .82rem; line-height: 1.45; }
.field-hint { color: var(--muted); }
.field-error { color: #a0222e; font-weight: 750; }

.sms-send, .sms-verify { align-self: start; min-width: 0; padding-top: calc(var(--field-label-size) * 1.3 + 5px); }
.sms-send .button, .sms-verify .button { max-width: 100%; min-height: 48px; }
.sms-code-panel { margin-top: 18px; padding: 14px; border: 1px solid #e7d4a8; border-radius: 10px; background: #fbf6e9; }
.verified-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: #245a3e; }
.verified-row p { display: flex; align-items: center; gap: 5px; font-size: .86rem; font-weight: 750; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.form-actions .prev-button { margin-right: auto; }
.button:disabled { cursor: default; color: #475563; background: #e8ebee; border-color: #d6dce1; }

.form-feedback:not(:empty) {
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid #e9c0bf;
  border-radius: 8px;
  background: #fff0ee;
  color: #8f2530;
  font-size: .88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.form-feedback[data-tone="success"]:not(:empty) { border-color: #c5d9c8; background: #eff8f0; color: #255f40; }
.form-feedback[data-tone="warning"]:not(:empty) { border-color: #e8d4a8; background: #fff7e5; color: #745217; }

.registration-help { margin-top: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.registration-help summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: .87rem; font-weight: 800; list-style: none; }
.registration-help summary::-webkit-details-marker { display: none; }
.registration-help[open] summary .icon { rotate: 180deg; }
.registration-help p { padding: 0 12px 8px; color: var(--muted); font-size: .84rem; }
.registration-help img { width: min(100% - 24px, 385px); height: auto; margin: 0 12px 12px; border: 1px solid var(--line); border-radius: 7px; }

.quote-aside { display: grid; gap: 12px; }
.quote-checklist, .quote-help { padding: clamp(17px, 2vw, 24px); }
.quote-checklist h2, .quote-help h2 { font-size: 1.13rem; letter-spacing: -.025em; }
.quote-checklist h2 { margin-top: 13px; }
.quote-checklist p { margin-top: 4px; color: var(--muted); font-size: .94rem; }
.quote-checklist ul { display: grid; gap: 9px; margin: 13px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
.quote-checklist li { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.quote-checklist li .icon { margin-top: 2px; color: var(--gold-ink); }
.quote-help { background: var(--navy-raised); border-color: var(--navy-raised); color: var(--white); }
.quote-help :focus-visible { outline-color: var(--gold); }
.quote-help-phone { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; font-size: 1.07rem; font-weight: 800; }
.quote-help-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.quote-help-phone .icon { color: var(--gold); }
.quote-help .text-link { font-size: .92rem; }

.product-details { padding-bottom: clamp(39px, 5.1vw, 72px); }
.product-details .section-heading { align-items: center; }
.product-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 18px); }
.product-detail { padding: clamp(17px, 2vw, 27px); }
.product-detail p { max-width: var(--reading-width); margin-top: 8px; color: var(--muted); font-size: .97rem; }
.quote-guide-link { display: flex; align-items: center; gap: 9px; padding: 9px 12px; color: var(--ink); font-size: .91rem; font-weight: 800; }
.quote-guide-link:hover { border-color: #bda674; background: #fffdf6; }
.quote-guide-link .icon-tile { width: 35px; border-radius: 8px; font-size: .9rem; }
.quote-guide-link > .icon { margin-left: auto; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: clamp(15px, 3vw, 40px); align-items: start; padding-block: 32px 64px; }
.contact-details, .contact-form { padding: clamp(19px, 3vw, 34px); box-shadow: var(--shadow); }
.contact-details address { margin-top: 12px; font-style: normal; }
.contact-details address > a { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; font-size: .98rem; overflow-wrap: anywhere; }
.contact-details address > a + a { border-top: 1px solid var(--line); }
.contact-details address > a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.contact-details address .icon-tile { width: 38px; border-radius: 8px; font-size: .98rem; }
.contact-details strong, .contact-details small { display: block; }
.contact-details small { color: var(--muted); font-size: .83rem; }
.contact-details .text-link { margin-top: 4px; color: var(--gold-ink); font-size: .88rem; }
.contact-form form { margin-top: 18px; }
.contact-map { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; }
.contact-map summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: .91rem; font-weight: 800; list-style: none; }
.contact-map summary::-webkit-details-marker { display: none; }
.contact-map[open] summary .icon { rotate: 180deg; }
.contact-map iframe { display: block; width: 100%; height: 235px; border: 0; border-radius: 0 0 9px 9px; }

@media (max-width: 760px) {
  .quote-banner { padding-block: 15px 29px; }
  .quote-banner h1, .quote-banner p { max-width: 100%; }
  .quote-banner h1 { font-size: clamp(1.6rem, 6.4vw, 2.8rem); }
  .quote-banner p { font-size: .91rem; line-height: 1.45; }
  .quote-emblem { display: none; }
  .quote-grid { grid-template-columns: minmax(0, 1fr); margin-top: -17px; padding-bottom: 29px; }
  .quote-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-card { padding: clamp(16px, 4vw, 26px); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); padding-block: 20px 38px; }
  .product-details .section-heading { align-items: flex-start; }
  .product-details-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .field-grid { --field-label-size: .93rem; grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .quote-progress { margin-block: 12px 14px; }
  .sms-send, .sms-verify { padding-top: 0; }
  .sms-send .button, .sms-verify .button { width: 100%; }
  .sms-label { font-size: .71rem; }
  .quote-aside { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .quote-progress li { min-height: 37px; }
  .form-actions .button { padding-inline: 12px; font-size: .8rem; }
}
