.quote-dialog {
  color-scheme: light;
  box-sizing: border-box;
  inset: 0;
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 900px);
  max-height: min(90dvh, 900px);
  padding: 0;
  border: 1px solid #d9dce3;
  margin: auto;
  border-radius: 8px;
  background: #fff;
  color: #20242d;
  box-shadow: 0 25px 80px #1118323b;
  font-family: inherit;
  text-align: left;
  overscroll-behavior: contain;
}
.quote-dialog:not([open]), .quote-dialog [hidden] { display: none !important; }
.quote-dialog::backdrop { background: rgb(17 21 31 / .55); }
html:has(.quote-dialog[open]) { overflow: hidden; }
.quote-dialog *, .quote-dialog *::before, .quote-dialog *::after { box-sizing: border-box; }
.quote-panel { position: relative; padding: clamp(24px, 4.5vw, 42px); }
.quote-close {
  position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; display: grid;
  place-content: center; border-radius: 50%; border: 0; padding: 0;
  color: #343a46; background: #f1f2f4; cursor: pointer;
}
.quote-close:hover { background: #e3e7ed; }
.quote-heading {
  font-family: inherit; font-weight: 650; font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.06; letter-spacing: -.05em; margin: 0 32px 12px 0;
}
.quote-heading:focus { outline: none; }
.quote-intro { max-width: 43ch; font-size: 1rem; font-weight: 400; line-height: 1.5; margin: 0 0 27px; color: #545967; }
.quote-dialog fieldset.quote-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 15px; padding: 0; border: 0; min-width: 0; margin: 0;
}
.quote-fields label { display: grid; gap: 7px; font-size: .91rem; font-weight: 600; line-height: 1.3; color: #272c36; }
.quote-optional { font-size: .88rem; color: #626976; font-weight: 400; }
.quote-full { grid-column: 1/-1; }
.quote-fields input, .quote-fields select, .quote-fields textarea {
  display: block; font: inherit; font-size: 1rem; font-weight: 400; line-height: 1.4;
  width: 100%; min-width: 0; border-radius: 6px; border: 1px solid #bdc4ce;
  padding: 10px 11px; color: #20242d; background: #fff;
}
.quote-fields textarea { min-height: 66px; resize: vertical; }
.quote-fields select {
  appearance: none; padding-right: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='none' stroke='%23333c50' stroke-width='1.4'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E") no-repeat right 11px center;
}
.quote-fields :is(input, textarea)::placeholder { color: #626976; opacity: 1; }
.quote-dialog :is(input, select, textarea, button):focus-visible { outline: 2px solid #233eb7; outline-offset: 2px; }
.quote-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.quote-dialog .quote-primary, .quote-dialog .quote-secondary {
  padding: 11px 18px; min-height: 45px; font: inherit; font-size: 1rem; font-weight: 600;
  line-height: 1.35; border: 1px solid transparent; border-radius: 6px; cursor: pointer;
}
.quote-dialog .quote-primary { background: #233eb7; color: #fff; }
.quote-dialog .quote-primary:hover { background: #182f93; }
.quote-dialog .quote-primary:disabled { cursor: wait; opacity: .75; }
.quote-dialog .quote-secondary { background: #fff; color: #233eb7; border-color: #d3d8eb; }
.quote-dialog .quote-secondary:hover { background: #f1f4fb; }
.quote-message:not([hidden]) { margin: 16px 0 0; padding: 11px 14px; border-left: 3px solid #a04a19; color: #66320e; background: #fff5e8; font-size: .95rem; line-height: 1.45; }
.quote-reference { margin: 0; padding: 14px 15px; border-radius: 5px; color: #243e9e; background: #eef2ff; font-weight: 600; overflow-wrap: anywhere; }
.quote-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 540px) {
  .quote-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .quote-panel { padding: 27px 19px 24px; }
  .quote-dialog fieldset.quote-fields { grid-template-columns: 1fr; gap: 15px; }
  .quote-close { top: 12px; right: 12px; }
  .quote-actions > button { flex: 1; }
}
