.feedback-page {
  --field-bg: #0e0e0f;
  --danger: #f2a4a4;
  min-height: 100vh;
}

.feedback-page [hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--text);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.feedback-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.feedback-nav__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.feedback-nav__back {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 10px 0;
}

.feedback-nav__back:hover { color: var(--text); }

.feedback-main { padding: clamp(44px, 7vw, 96px) 0 clamp(72px, 9vw, 124px); }

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.feedback-intro {
  position: sticky;
  top: 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  column-gap: 18px;
}

.feedback-intro .eyebrow,
.feedback-intro h1,
.feedback-intro__lede { grid-column: 1 / -1; }

.feedback-intro h1 {
  font-size: clamp(3.2rem, 6.4vw, 5.6rem);
  margin: 22px 0 24px;
}

.feedback-intro h1 em { color: var(--muted); font-weight: 400; }

.feedback-intro__lede {
  color: var(--muted);
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.feedback-facts {
  grid-column: 1;
  margin: 36px 0;
  border-top: 1px solid var(--line);
}

.feedback-facts div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.feedback-facts dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.feedback-facts dd { color: var(--muted); font-size: 0.9rem; }

.feedback-product {
  grid-column: 2;
  align-self: center;
  width: 100%;
  margin: 16px -18px -30px 0;
  overflow: visible;
}

.feedback-product model-viewer {
  display: block;
  width: 100%;
  height: clamp(360px, 56vh, 620px);
  border: 0;
  background: transparent;
  --poster-color: transparent;
}

.feedback-product model-viewer > img[slot="poster"] {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feedback-form-shell { min-width: 0; }

.feedback-progress { margin-bottom: 34px; }

.feedback-progress__copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 11px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#feedback-progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 2px;
  border: 0;
  background: var(--line);
}

#feedback-progress::-webkit-progress-bar { background: var(--line); }
#feedback-progress::-webkit-progress-value { background: var(--text); transition: width 180ms ease; }
#feedback-progress::-moz-progress-bar { background: var(--text); }

#feedback-form fieldset {
  border: 0;
  min-width: 0;
}

#feedback-form fieldset[hidden] { display: none; }

#feedback-form legend,
.success-panel h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.step-intro {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 58ch;
}

.field-grid {
  display: grid;
  gap: 20px;
}

.field-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid--four { grid-template-columns: 0.75fr repeat(3, minmax(0, 1fr)); }

.field { margin-bottom: 28px; min-width: 0; }

.field label,
.field-label {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 9px;
}

.field .optional {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-left: 7px;
  text-transform: uppercase;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="file"],
.field select,
.field textarea,
.pricing-question input {
  appearance: none;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field textarea { min-height: 112px; resize: vertical; }

.field select {
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder { color: #706d66; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.choice-row label:has(input:focus-visible),
.consent-field label:has(input:focus-visible),
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.field[data-invalid="true"] input:not([type="radio"]):not([type="checkbox"]),
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--danger); }

.field-help { color: var(--faint); font-size: 0.82rem; margin: -3px 0 11px; }
.field-error { color: var(--danger); font-size: 0.82rem; min-height: 1.25em; margin-top: 7px; }

.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-row label {
  min-width: 92px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--field-bg);
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--text);
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.range-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.range-label output { color: var(--text); font-family: var(--mono); font-size: 0.82rem; }
.field input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--text); }
.range-ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 0.75rem; margin-top: -7px; }

.pricing-question {
  margin: 8px 0 30px;
  padding: 24px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-question > div:first-child { margin-bottom: 20px; }
.pricing-question > div:first-child p { color: var(--faint); font-size: 0.82rem; margin-top: 4px; }
.pricing-question .field { margin-bottom: 20px; }

.evidence-field input[type="file"] {
  cursor: pointer;
  padding: 9px;
}

.evidence-field input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 5px;
  background: var(--text);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  margin-right: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.evidence-list { list-style: none; margin-top: 10px; display: grid; gap: 6px; }
.evidence-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.82rem; }
.evidence-list span:last-child { color: var(--faint); white-space: nowrap; }

.privacy-notice {
  border-left: 1px solid var(--line-2);
  padding-left: 22px;
  margin: 38px 0 28px;
}

.privacy-notice h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 9px; }
.privacy-notice p { color: var(--muted); font-size: 0.82rem; line-height: 1.65; margin-bottom: 8px; }
.privacy-notice a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.consent-field { margin-bottom: 16px; }
.consent-field label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 7px 0;
  cursor: pointer;
  font-weight: 400;
}
.consent-field input { margin-top: 1px; }

.feedback-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 24px;
}

.form-actions #back-button { margin-right: auto; }
.form-actions .btn { min-height: 48px; }
.form-actions .btn[disabled] { cursor: wait; opacity: 0.55; transform: none; }

.submit-status { min-height: 1.5em; margin-top: 12px; color: var(--muted); font-size: 0.85rem; text-align: right; }

.error-summary {
  border-left: 2px solid var(--danger);
  margin-bottom: 30px;
  padding: 14px 18px;
  background: rgba(242, 164, 164, 0.06);
}

.error-summary h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; margin-bottom: 7px; }
.error-summary ul { padding-left: 18px; color: var(--danger); font-size: 0.84rem; }
.error-summary a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.success-panel { padding-top: 36px; }
.success-panel h2 { margin: 22px 0 16px; }
.success-panel > p { color: var(--muted); max-width: 52ch; margin-bottom: 16px; }
.success-panel .btn { margin-top: 14px; }
.success-reference { font-family: var(--mono); font-size: 0.76rem; overflow-wrap: anywhere; }

.noscript-notice {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.9rem;
}
.noscript-notice a { color: var(--text); text-decoration: underline; }

.feedback-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--faint); font-size: 0.8rem; }
.feedback-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.feedback-footer nav { display: flex; gap: 22px; }
.feedback-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .feedback-layout { grid-template-columns: 1fr; gap: 48px; }
  .feedback-intro { position: static; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 28px; }
  .feedback-product { margin: 14px 0 -24px; }
  .field-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .feedback-main { padding-top: 28px; }
  .feedback-layout { gap: 8px; }
  .feedback-intro {
    grid-template-columns: 1fr;
  }
  .feedback-intro h1 { font-size: clamp(3rem, 16vw, 4.4rem); margin: 16px 0; }
  .feedback-facts { grid-column: 1; grid-row: 5; margin: 0; }
  .feedback-facts div { grid-template-columns: 62px 1fr; gap: 7px; padding: 12px 0; }
  .feedback-facts dd { font-size: .8rem; }
  .feedback-progress { margin-bottom: 26px; }
  .feedback-product {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    margin: 4px 0 -18px;
    align-self: center;
  }
  .feedback-product model-viewer { width: 100%; height: 340px; }
  .field-grid--two,
  .field-grid--four { grid-template-columns: 1fr; gap: 0; }
  .feedback-progress__copy { align-items: flex-start; flex-direction: column; gap: 5px; }
  .form-actions { align-items: stretch; flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 130px; justify-content: center; }
  .form-actions #back-button { margin-right: 0; }
  .feedback-footer .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  #feedback-progress::-webkit-progress-value { transition: none; }
  .feedback-product model-viewer { transform: none; }
}
