/* Round 112: the price survey (rackoon.fit/price/). Colors come from ../styles.css's tokens. */

.vw {
  padding-block: 32px 56px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.vw h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.vw-head .lead {
  margin-top: 8px;
}
.note,
.sub {
  color: var(--muted);
  font-size: 0.95rem;
}
.note {
  margin-top: 8px;
}
.vw-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vw-form fieldset {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
/* The legend sits inside the box (float), so a two-line legend doesn't straddle the border on phones. */
.vw-form legend {
  float: left;
  width: 100%;
  padding: 0;
  font-weight: 800;
}
.q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.q > span:first-child {
  flex: 1 1 280px;
  min-width: 0;
}
.money {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.vw input[type='number'],
.vw select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.vw input[type='number'] {
  width: 7.5em;
}
.vw input:focus-visible,
.vw select:focus-visible,
.vw button:focus-visible {
  outline: 3px solid var(--eyeshine);
  outline-offset: 2px;
}
.vw input[aria-invalid='true'] {
  border-color: var(--accent);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.chips label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vw select {
  max-width: 100%;
}
.hp {
  /* Round 131: hidden without moving it far off to the side. */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}
.btn {
  /* Round 131: centered under the questions (her ask). */
  align-self: center;
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  background: var(--primary);
  color: var(--primary-text);
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.link-btn {
  font: inherit;
  border: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.vw-error,
.vw-closed,
.vw-done,
.vw-thanks {
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--accent-soft);
  margin: 0;
}
/* Round 113: the thanks card in the eyeshine amber (her call), with dark ink in both themes.
   Round 115: the "already answered" card too (its Answer again link keeps its color). */
.vw-done,
.vw-thanks {
  font-weight: 700;
  background: var(--eyeshine);
  color: #1f2329;
}
/* Round 115: .vw-form's display: flex beat the hidden attribute, so a return visit showed the form
   under "You've already answered". */
.vw [hidden] {
  display: none !important;
}
