/* Daichii: Get a Quote page */
.qpage { background: linear-gradient(180deg, var(--white) 0%, #F7FBFF 60%, var(--ice) 100%); padding-bottom: clamp(56px, 7vw, 96px); }
.qpage__head { display: grid; gap: 10px; padding-block: 20px 28px; }
.qpage__head h1 { font-weight: 800; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1; letter-spacing: -0.035em; }
.qpage__head h1 span { color: var(--blue); }
.qpage__head p { color: var(--ink-2); max-width: 60ch; }

.qgrid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) {
  .qgrid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px; }
  .qsel { position: sticky; top: calc(var(--hdr-h) + 20px); }
}

/* ---------- Selected product ---------- */
.qsel__card { display: grid; gap: 16px; padding: 20px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-card); }
.qsel__label { display: inline-flex; align-items: center; gap: 8px; font: 800 1.05rem var(--display); letter-spacing: -0.01em; color: var(--blue-deep); }
.qsel__label .icon { width: 18px; height: 18px; color: var(--white); background: var(--wa); border-radius: 50%; padding: 2px; stroke-width: 3; }
.qsel__product { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.qsel__media { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; aspect-ratio: 1 / 1.4; padding: 10px 8px 4px; border-radius: 14px; background: radial-gradient(70% 55% at 50% 92%, rgba(4, 110, 209, 0.16), transparent 70%), linear-gradient(180deg, #F7FBFF, var(--ice)); }
.qsel__media img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(15, 77, 168, 0.18)); }
.qsel__info { display: grid; gap: 6px; min-width: 0; }
.qsel__cat { font-size: 0.86rem; color: var(--ink-2); }
.qsel__name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.qsel__specs { display: flex; flex-wrap: wrap; gap: 6px; }
.qsel__specs li { font-size: 0.8rem; color: var(--ink-2); background: #F3F8FE; border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.qsel__empty { display: none; padding: 14px; border-radius: 12px; background: var(--ice); color: var(--ink-2); font-size: 0.92rem; }
.qsel__card[data-state="empty"] .qsel__empty { display: block; }
.qsel__card[data-state="empty"] .qsel__label,
.qsel__card[data-state="empty"] .qsel__product,
.qsel__card[data-state="empty"] .qsel__wa { display: none; }
.qsel__card[data-state="picked"] .qsel__product { animation: picked 420ms var(--ease-out); }
@keyframes picked { from { opacity: 0.5; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qsel__optlabel { font: 700 0.85rem var(--display); color: var(--ink); margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: var(--ice); }
.seg button { display: grid; gap: 2px; min-height: 48px; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 700 0.9rem var(--display); cursor: pointer; }
.seg button small { font: 600 0.78rem var(--text); font-variant-numeric: tabular-nums; }
.seg button[aria-checked="true"] { background: var(--white); color: var(--blue-deep); box-shadow: 0 6px 14px -10px rgba(15, 77, 168, 0.6); }

.select { position: relative; }
.select select {
  width: 100%;
  min-height: 48px;
  padding: 10px 40px 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 500 1rem var(--text);
  appearance: none;
  cursor: pointer;
}
.select .icon { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--blue); pointer-events: none; }
.select select:focus-visible { border-color: var(--blue); outline-offset: 2px; }

/* ---------- Form ---------- */
.qform, .qdone { padding: clamp(20px, 3vw, 32px); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-card); }
.qform { display: grid; gap: 18px; }
.qform h2, .qdone h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 180px; } }
.field__label { font: 700 0.9rem var(--display); color: var(--ink); }
.field__label span { color: #B42318; }
.field__label .field__opt { color: var(--ink-2); font: 500 0.82rem var(--text); }
.field__hint { font-size: 0.8rem; color: var(--ink-2); }
.field__err { font-size: 0.84rem; color: #B42318; font-weight: 600; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 500 1rem var(--text);
  transition: border-color 140ms var(--ease-ui), box-shadow 140ms var(--ease-ui);
}
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }
.input::placeholder { color: #667385; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(4, 110, 209, 0.14); }
.input[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1); }
.input-group { display: flex; }
.input-group__pre { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--ice); color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.input-group .input { border-radius: 0 12px 12px 0; font-variant-numeric: tabular-nums; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; }
.stepper button { border: 1.5px solid var(--line); background: var(--ice); color: var(--blue-deep); font: 700 1.2rem var(--display); cursor: pointer; }
.stepper button:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.stepper button:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
.stepper .input { border-radius: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper .input::-webkit-outer-spin-button, .stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qform__submit { min-height: 52px; font-size: 1.02rem; }
.qform__note { font-size: 0.8rem; color: var(--ink-2); }

/* ---------- Done ---------- */
.qdone { display: grid; gap: 12px; justify-items: start; }
.qdone:focus { outline: none; }
.qdone__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #E7F8EE; color: var(--wa); }
.qdone__icon .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.qdone p { color: var(--ink-2); }
.qdone--fail .qdone__icon { background: #E7F8EE; color: var(--wa-solid); }
/* Honeypot: off-screen for people, still in the form for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qdone b { color: var(--ink); }
.qdone__faster { font-weight: 600; color: var(--ink) !important; margin-top: 4px; }
.qdone__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .qdone:not([hidden]) { animation: picked 420ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) { .qsel__card[data-state="picked"] .qsel__product { animation: none; } }
