/*
 * The /otc/ quote form (Bold Stack), in the hero's demo slot. Its markup is
 * templates/partials/otc-form.html; js/otc-quote.js runs it. Loaded after css/bold-stack.css.
 *
 * Fields are 48px tall with a 16px font, so iOS doesn't zoom on focus. The error box is amber: amber
 * is for warnings and errors only.
 */

.qf {
  scroll-margin-top: 92px;
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bs-surface);
  border: 1px solid var(--bs-hairline);
  border-radius: var(--bs-radius-feature);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.qf-head { display: flex; flex-direction: column; gap: 8px; }
.qf-title { font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.qf-sub { font-size: 15px; font-weight: 500; line-height: 1.5; }

.qf-form { display: flex; flex-direction: column; gap: 14px; }
.qf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.qf-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qf-field label { font-size: 13px; font-weight: 700; }
.qf-field input, .qf-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bs-slate);
  border: 1px solid var(--bs-outline);
  border-radius: var(--bs-radius-input);
  color: var(--bs-white);
  color-scheme: dark;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}
.qf-field select {
  padding-right: 40px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2314afac' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  text-overflow: ellipsis;
}
.qf-field input:focus-visible, .qf-field select:focus-visible { outline: 2px solid var(--bs-teal); outline-offset: 1px; border-color: var(--bs-teal); }

/* The endpoint's honeypot: off screen, not hidden, so bots still fill it. */
.qf-hp { position: absolute; left: -9999px; }

.qf-submit { width: 100%; margin-top: 4px; }
.qf-submit:disabled { opacity: 0.6; cursor: default; }
.qf-turnstile { width: 100%; }

.qf-note { font-size: 13px; font-weight: 500; line-height: 1.5; }
.qf-error { padding: 12px 14px; background: rgba(214, 152, 91, 0.12); border: 1px solid rgba(214, 152, 91, 0.6); border-radius: var(--bs-radius-input); font-size: 14px; font-weight: 500; line-height: 1.5; }

.qf-success { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--bs-teal-advice); border: 1px solid var(--bs-teal); border-radius: var(--bs-radius-card); font-size: 14px; font-weight: 500; line-height: 1.5; }
.qf-success-title { margin-bottom: 4px; font-size: 16px; font-weight: 800; }
