.quote-modal-open { overflow: hidden; }
#quote-dialog,
#quote-dialog * { box-sizing: border-box; }
#quote-dialog {
  --quote-bg: #101314;
  --quote-ink: #ecf0f3;
  --quote-accent: #62c1fb;
  --quote-muted: #afb6ba;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--quote-ink);
  background: var(--quote-bg);
  border: 1px solid #353e43;
  border-radius: 20px;
  box-shadow: 0 30px 100px #0008;
  font-family: Manrope, Arial, sans-serif;
  text-align: left;
  scrollbar-color: #566772 var(--quote-bg);
  overscroll-behavior: contain;
  color-scheme: dark;
}
#quote-dialog::backdrop { background: #05080ac4; backdrop-filter: blur(10px); }
#quote-dialog [hidden] { display: none !important; }
.quote-shell { padding: 34px 38px 28px; }
.quote-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.quote-eyebrow { color: var(--quote-accent); font-size: 10px; line-height: 1.5; font-weight: 800; letter-spacing: 0.18em; }
.quote-close {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid #3e4a52; border-radius: 50%; color: var(--quote-ink); background: transparent;
  font: 400 28px/1 Arial, sans-serif; cursor: pointer;
}
.quote-close:hover { background: #1f2b32; border-color: var(--quote-accent); }
.quote-heading { margin: 0 0 12px; max-width: 560px; color: var(--quote-ink); font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -0.045em; }
.quote-heading:focus { outline: none; }
.quote-intro { margin: 0; max-width: 540px; color: var(--quote-muted); font-size: 14px; line-height: 1.7; }
.quote-progress { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; margin: 28px 0 24px; padding: 0; list-style: none; }
.quote-progress li { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-top: 2px solid #313b41; color: #9aa5ac; font-size: 12px; font-weight: 600; white-space: nowrap; }
.quote-progress li span { font-size: 10px; opacity: .72; }
.quote-progress li[aria-current="step"] { border-color: var(--quote-accent); color: var(--quote-accent); }
.quote-progress li.quote-complete { border-color: #417798; color: var(--quote-ink); }
.quote-form { margin: 0; }
.quote-required-note { margin: 0 0 20px; color: var(--quote-muted); font-size: 11px; }
.quote-field { min-width: 0; margin: 0 0 20px; }
.quote-field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.quote-field label, .quote-summary-label { display: block; margin: 0 0 9px; color: var(--quote-ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
.quote-optional { color: var(--quote-muted); font-weight: 400; }
.quote-field input, .quote-field select, .quote-field textarea, .quote-summary {
  display: block; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 13px 14px;
  color: var(--quote-ink); background: #1a1f22; border: 1px solid #3e4a52; border-radius: 7px;
  font: 400 14px/1.5 Manrope, Arial, sans-serif; box-shadow: none;
}
.quote-field select { padding-right: 30px; }
.quote-field textarea { min-height: 94px; resize: vertical; }
.quote-field input::placeholder, .quote-field textarea::placeholder { color: #97a3ab; opacity: 1; }
.quote-field input:focus, .quote-field select:focus, .quote-field textarea:focus, .quote-summary:focus { outline: 2px solid var(--quote-accent); outline-offset: 2px; border-color: var(--quote-accent); }
.quote-footer { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid #2e3a41; }
.quote-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 14px 21px; border: 1px solid transparent; border-radius: 5px; font: 700 12px/1.45 Manrope, Arial, sans-serif; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .18s, border-color .18s; }
.quote-primary { color: #0b1922; background: var(--quote-accent); }
.quote-primary:hover { color: #0b1922; background: #82d0ff; }
.quote-secondary { color: var(--quote-ink); background: transparent; border-color: #596e7b; }
.quote-secondary:hover { color: var(--quote-ink); background: #202c34; border-color: var(--quote-accent); }
.quote-button:focus-visible, .quote-back:focus-visible, .quote-close:focus-visible, .quote-copy:focus-visible { outline: 2px solid var(--quote-accent); outline-offset: 4px; }
.quote-back { margin-right: auto; padding: 12px 2px; min-height: 44px; border: 0; background: none; color: var(--quote-ink); font: 600 12px/1.5 Manrope, Arial, sans-serif; cursor: pointer; }
.quote-back span { margin-right: 7px; }
.quote-back:hover, .quote-copy:hover { color: var(--quote-accent); }
.quote-privacy { margin: 18px 0 0; color: var(--quote-muted); font-size: 10px; line-height: 1.7; }
.quote-review-note { margin: 0 0 22px; color: var(--quote-muted); font-size: 13px; line-height: 1.7; }
.quote-summary { min-height: 220px; max-height: 380px; resize: vertical; font-size: 12px; line-height: 1.65; }
.quote-send-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.quote-copy { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin: 10px 0 0; padding: 10px 0; border: 0; color: var(--quote-ink); background: transparent; text-decoration: underline; text-underline-offset: 4px; font: 500 12px/1.5 Manrope, Arial, sans-serif; cursor: pointer; }
.quote-status { margin: 0; color: var(--quote-accent); font-size: 12px; line-height: 1.6; }
.quote-status:empty { display: none; }
@media (max-width: 600px) {
  #quote-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .quote-shell { padding: 22px 20px; }
  .quote-header { margin-bottom: 20px; }
  .quote-heading { font-size: 30px; }
  .quote-intro { font-size: 13px; }
  .quote-progress { gap: 8px; margin: 24px 0 22px; }
  .quote-progress li { gap: 6px; font-size: 11px; }
  .quote-field-grid, .quote-send-options { grid-template-columns: 1fr; }
  .quote-field input, .quote-field select, .quote-field textarea { font-size: 16px; }
  .quote-field { margin-bottom: 18px; }
  .quote-footer { gap: 12px; margin-top: 22px; }
  .quote-send-options .quote-button { justify-content: space-between; }
  .quote-next { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-button { transition: none; }
}
