.quote-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(18px, 4vw, 30px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(var(--accent-light-rgb), .3);
  border-radius: 20px;
  background: #0b1726;
  color: var(--text);
  box-shadow: 0 25px 80px #0009;
  color-scheme: dark;
}

.quote-dialog::backdrop { background: #030910d9; }
.quote-dialog [hidden] { display: none !important; }

.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quote-header h2 {
  font: 800 clamp(24px, 5vw, 32px)/1.15 var(--display);
  letter-spacing: -.025em;
}

.quote-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(var(--accent-light-rgb), .22);
  border-radius: 10px;
}

.quote-close:hover { background: rgba(var(--accent-light-rgb), .09); }
.quote-close svg { width: 20px; height: 20px; }

.quote-progress { margin: 16px 0 24px; }
.quote-progress span { font-size: 14px; color: #adc5ea; }
.quote-progress progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #253750;
}
.quote-progress progress::-webkit-progress-bar { background: #253750; }
.quote-progress progress::-webkit-progress-value { background: var(--accent-text); }
.quote-progress progress::-moz-progress-bar { background: var(--accent-text); }

.quote-step { min-inline-size: 0; border: 0; }
.quote-step legend {
  width: 100%;
  margin-bottom: 14px;
  color: #f5f8ff;
  font-size: clamp(19px, 4.4vw, 23px);
  font-weight: 750;
  line-height: 1.27;
}
.quote-step legend:focus, .quote-result h3:focus { outline: none; }

.quote-options { display: grid; gap: 9px; }
.quote-options--binary, .quote-options--disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #344962;
  border-radius: 10px;
  color: #f0f5ff;
  background: #13243a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.quote-option:hover, .quote-option:has(input:checked) {
  border-color: var(--accent-light);
  background: #17345d;
}
.quote-option input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--accent-text);
}

.quote-hint { margin: 0 0 12px; color: #bdcbe0; font-size: 14px; line-height: 1.45; }
.quote-contact { display: grid; gap: 12px; }
.quote-contact label { display: grid; gap: 5px; color: #f0f5ff; font-size: 15px; font-weight: 650; }
.quote-contact input {
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid #47617e;
  border-radius: 9px;
  color: #f5f8ff;
  background: #101f32;
  font: 400 16px/1.4 var(--body);
}
.quote-contact input::placeholder { color: #9badc7; }

.privacy-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: .18em; }
.quote-measurement { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin: 15px 0 5px; font-size: 14px; }
.quote-measurement input { margin: 0 3px 0 0; width: 17px; height: 17px; accent-color: var(--accent-text); }
.quote-measurement span { color: #bdcbe0; }
.quote-error { margin-top: 10px; color: #ffb8af; font-size: 15px; }

.quote-controls { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.quote-controls .btn { margin-left: auto; }
.quote-dialog .btn, .quote-dialog .btn-ghost { min-height: 44px; padding: 9px 16px; font-size: 15px; }
.quote-dialog .btn::after { display: none; }
.quote-dialog button:disabled { cursor: wait; opacity: .65; }

.quote-result { padding-top: 20px; }
.quote-result h3 { margin-bottom: 6px; color: var(--accent-light); font-size: 23px; }
.quote-result p { color: #d7e5f9; }
.quote-result .btn { margin-top: 18px; }

.faq-more button[data-quote] {
  display: inline-block;
  padding: 6px 2px;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 460px) {
  .quote-options--disciplines { grid-template-columns: 1fr; }
}
