/* The "Request a quote" dialog (app/quote.py, static/quote.js), on the landing page
   and in the Studio. Plain CSS with its own tokens, so it reads the same on both. */

:root {
  --quote-ink: #16151c;
  --quote-muted: #6f6b7a;
  --quote-card: #fff;
  --quote-field: #f4f4f8;
  --quote-rule: #e6e3ec;
  --quote-accent: #4a3f8a;
  --quote-accent-ink: #fff;
  --quote-wash: #efedf8;
  --quote-veil: rgba(21, 19, 31, .55);
}
/* Dark, as static/theme.js and the system decide; the two blocks hold the same values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --quote-ink: #f2f1f6;
    --quote-muted: #9b97a9;
    --quote-card: #1d1c25;
    --quote-field: #18171e;
    --quote-rule: #2e2c38;
    --quote-accent: #a99ef0;
    --quote-accent-ink: #16131f;
    --quote-wash: #2a2640;
    --quote-veil: rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --quote-ink: #f2f1f6;
  --quote-muted: #9b97a9;
  --quote-card: #1d1c25;
  --quote-field: #18171e;
  --quote-rule: #2e2c38;
  --quote-accent: #a99ef0;
  --quote-accent-ink: #16131f;
  --quote-wash: #2a2640;
  --quote-veil: rgba(0, 0, 0, .6);
}

.quote {
  width: min(36rem, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--quote-rule);
  border-radius: 16px;
  background: var(--quote-card);
  color: var(--quote-ink);
  box-shadow: 0 30px 90px rgba(28, 24, 60, .3);
  font: 400 .95rem/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.quote::backdrop { background: var(--quote-veil); }
.quote__form { display: grid; gap: 1rem; padding: 1.5rem; margin: 0; }
.quote__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.quote__head h2 { margin: 0; font: 500 1.4rem/1.2 "Fraunces", Georgia, serif; color: inherit; }
.quote__x {
  flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 50%;
  background: transparent; color: var(--quote-muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.quote__x:hover { background: var(--quote-field); color: var(--quote-ink); }
.quote__intro { margin: 0; color: var(--quote-muted); }
.quote__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.quote__group legend { padding: 0; margin-bottom: .45rem; font-weight: 600; }
.quote__choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.quote__choice { position: relative; cursor: pointer; }
.quote__choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.quote__choice span {
  display: inline-block; padding: .4rem .8rem; border: 1px solid var(--quote-rule); border-radius: 999px;
  background: var(--quote-field); font-size: .88rem;
}
.quote__choice input:checked + span {
  border-color: var(--quote-accent); background: var(--quote-wash); color: var(--quote-ink);
  box-shadow: inset 0 0 0 1px var(--quote-accent);
}
.quote__choice input:focus-visible + span { outline: 2px solid var(--quote-accent); outline-offset: 2px; }
.quote__field { display: block; }
.quote input[type="number"], .quote textarea {
  box-sizing: border-box; width: 100%; padding: .55rem .7rem; border: 1px solid var(--quote-rule);
  border-radius: 10px; background: var(--quote-field); color: var(--quote-ink); font: inherit;
}
.quote input[type="number"] { max-width: 8rem; }
.quote textarea { resize: vertical; }
.quote input:focus-visible, .quote textarea:focus-visible, .quote button:focus-visible {
  outline: 2px solid var(--quote-accent); outline-offset: 2px;
}
.quote__b2b { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--quote-muted); }
.quote__b2b input { margin-top: .2rem; accent-color: var(--quote-accent); }
.quote__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.quote__send, .quote__close, .quote__copy {
  padding: .65rem 1.2rem; border-radius: 999px; font-family: inherit; font-size: .92rem; font-weight: 600;
  line-height: 1; cursor: pointer;
}
.quote__send { border: 1px solid var(--quote-accent); background: var(--quote-accent); color: var(--quote-accent-ink); }
.quote__close, .quote__copy { border: 1px solid var(--quote-rule); background: transparent; color: var(--quote-ink); }
.quote__fallback { display: grid; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--quote-rule); }
.quote__fallback[hidden] { display: none; }
.quote__fallback p { margin: 0; font-size: .88rem; color: var(--quote-muted); }
.quote__fallback a { color: var(--quote-accent); }
.quote__copy { justify-self: start; }
.quote .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
