.quote-page {
  background: #f5f7fa;
  color: #10283f;
  font-family: 'DM Sans', sans-serif;
}
.quote-layout {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: clamp(60px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'intro card' 'call card';
  gap: 30px clamp(36px, 7vw, 96px);
  align-items: start;
  align-content: center;
}
.quote-intro { grid-area: intro; align-self: end; }
.quote-page .quote-intro h1 {
  margin: 0;
  font: 650 clamp(2.35rem, 4.9vw, 3.8rem)/1.02 'DM Sans', sans-serif;
  letter-spacing: -.055em;
  text-wrap: balance;
  color: #10283f;
}
.quote-intro > p { margin: 20px 0 0; max-width: 35em; color: #3e5368; }
.quote-agent { display: flex; gap: 12px; align-items: center; margin-top: 26px; }
.quote-avatar { width: 56px; aspect-ratio: 1; flex: none; overflow: hidden; position: relative; background: #182028; border-radius: 50%; }
.quote-avatar img { position: absolute; width: 140%; max-width: none; height: auto; top: -82%; left: -9%; }
.quote-agent strong, .quote-agent span { display: block; line-height: 1.45; }
.quote-agent strong { font-size: 1rem; font-weight: 700; }
.quote-agent span { color: #46596d; font-size: .9rem; }
.quote-card {
  grid-area: card;
  min-width: 0;
  padding: clamp(24px, 3.2vw, 42px);
  border: 1px solid #d7dfe7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(22 43 66 / 5%);
  scroll-margin-block-start: 100px;
}
.quote-page .quote-card h2 { margin: 0; font: 650 clamp(1.4rem, 2.5vw, 1.85rem)/1.15 'DM Sans', sans-serif; letter-spacing: -.04em; }
.quote-page .quote-number { display: inline-flex; align-items: center; min-height: 44px; color: #294e79; font-size: 1rem; text-underline-offset: 3px; }
.quote-card .quote-bubble {
  position: relative;
  margin: 10px 0 22px;
  padding: 16px 20px;
  border-radius: 17px 17px 5px 17px;
  background: #eef3f9;
  color: #233c56;
  overflow-wrap: anywhere;
}
.quote-page .quote-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: 100px;
  background: #1854bc;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease;
}
.quote-page .quote-primary:hover { background: #103e94; }
.quote-primary span { font-size: 1.15em; line-height: 1; }
.quote-page .quote-instructions { margin: 10px 0 20px; color: #405368; }
.quote-customize { border-top: 1px solid #dbe3eb; }
.quote-customize[hidden] { display: none; }
.quote-page .quote-customize summary {
  min-height: 48px;
  padding-block: 10px;
  color: #214572;
  font-weight: 650;
  cursor: pointer;
}
.quote-fields { display: grid; gap: 12px; padding: 6px 0 16px; }
.quote-fields label { display: block; color: #10283f; font-weight: 650; }
.quote-fields label span { font-weight: 400; color: #475b6f; }
.quote-fields select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 5px;
  min-height: 48px;
  border: 1px solid #77899c;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  color: #10283f;
  font: inherit;
}
.quote-page .quote-privacy { margin: 10px 0 0; color: #536475; }
.quote-privacy a, .quote-call a { color: #184b99; text-underline-offset: 3px; }
.quote-call { grid-area: call; padding-top: 18px; border-top: 1px solid #ced8e2; }
.quote-page .quote-call h2 { margin: 0; font: 650 1.05rem/1.5 'DM Sans', sans-serif; }
.quote-call a { display: inline-flex; align-items: center; gap: .4em; min-height: 48px; font-weight: 600; }
.quote-page :is(a, select, summary):focus-visible { outline: 3px solid #15469e; outline-offset: 4px; }
.quote-page .quote-card:focus { outline: 0; }
.quote-page .quote-card:focus-visible { outline: 3px solid #15469e; outline-offset: 4px; }
@media (max-width: 760px) {
  .quote-layout { width: min(560px, calc(100% - 36px)); grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'card' 'call'; gap: 22px; padding-block: 30px 42px; }
  .quote-intro > p { margin-top: 12px; }
  .quote-agent { margin-top: 16px; }
  .quote-avatar { width: 44px; }
  .quote-card { padding: 20px; border-radius: 18px; }
  .quote-card .quote-bubble { margin: 4px 0 16px; }
  .quote-call { padding: 0 2px; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-page .quote-primary { transition: none; }
}
