/* Feedback is a separate surface. Its styles never depend on the app or contact page. */
.feedback-page {
  --feedback-accent: #285c4d;
  --feedback-ink: #243b34;
  --feedback-muted: #59665d;
  --feedback-line: #d9dfd7;
  line-height: 1.55;
}
.feedback-page .site-header { max-width: 1180px; }
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(36px, 6vw, 88px);
  max-width: 1180px;
  padding-top: 52px;
  padding-bottom: 64px;
}
.feedback-intro { position: sticky; top: 32px; }
.feedback-intro .eyebrow { margin: 0 0 16px; font-size: 11px; letter-spacing: .1em; }
.feedback-intro h1 {
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.045em;
  margin: 0 0 20px;
  font-weight: 600;
}
.feedback-lead { color: var(--feedback-muted); font-size: 16px; line-height: 1.7; margin: 0; }
.feedback-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 22px; font-size: 12px; color: var(--feedback-muted); }
.feedback-meta span { display: inline-block; white-space: nowrap; background: #e9eee5; border-radius: 5px; padding: 4px 8px; }

.feedback-stages { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; counter-reset: stages; }
.feedback-stages li { counter-increment: stages; display: flex; align-items: center; gap: 12px; color: var(--feedback-muted); font-size: 13px; line-height: 1.4; }
.feedback-stages li::before { content: counter(stages); display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid #cad4ca; border-radius: 50%; font-size: 12px; font-weight: 600; background: transparent; }
.feedback-stages li[aria-current="step"] { color: var(--feedback-accent); font-weight: 600; }
.feedback-stages li[aria-current="step"]::before { background: var(--feedback-accent); border-color: var(--feedback-accent); color: #fff; }
.feedback-stages li[data-complete="true"]::before { background: #e5ede4; border-color: #e5ede4; color: var(--feedback-accent); }
.feedback-sidebar-note { color: var(--feedback-muted); font-size: 12px; line-height: 1.65; margin: 28px 0 0; max-width: 260px; }
.feedback-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--feedback-line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 6px 28px #243b3405;
}
.feedback-progress { margin: 0 0 24px; }
.feedback-progress p { color: var(--feedback-accent); font-size: 12px; font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; }
.feedback-progress progress { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 5px; border: 0; border-radius: 4px; overflow: hidden; background: #e9eee7; accent-color: var(--feedback-accent); }
.feedback-progress progress::-webkit-progress-bar { background: #e9eee7; border-radius: 4px; }
.feedback-progress progress::-webkit-progress-value { background: var(--feedback-accent); border-radius: 4px; }
.feedback-progress progress::-moz-progress-bar { background: var(--feedback-accent); border-radius: 4px; }
#required-hint { font-size: 12px; line-height: 1.65; color: var(--feedback-muted); margin: 0 0 24px; padding-bottom: 22px; border-bottom: 1px solid #e9eee7; }
.feedback-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.feedback-step > legend { padding: 0; font-size: 25px; line-height: 1.22; letter-spacing: -.035em; font-weight: 600; max-width: 100%; }
.feedback-step > legend:focus { outline: none; }
.feedback-step-intro { color: var(--feedback-muted); font-size: 14px; line-height: 1.6; margin: 10px 0 28px; }
.feedback-field { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.feedback-field:last-child { margin-bottom: 0; }
.feedback-field > legend, .feedback-field > label { display: block; padding: 0; margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 1.5; width: 100%; }
.feedback-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feedback-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 12px;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid #dce2d9;
  border-radius: 10px;
  cursor: pointer;
  color: var(--feedback-ink);
  background: #fafbf8;
  font-size: 14px;
  line-height: 1.45;
}
.feedback-option:hover { background: #f0f4ed; border-color: #a8bbaa; }
.feedback-option:has(input:checked) { border-color: var(--feedback-accent); box-shadow: inset 0 0 0 1px var(--feedback-accent); background: #edf4ed; }
.feedback-option:has(input:focus-visible) { outline: 3px solid #a77526; outline-offset: 3px; }
.feedback-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--feedback-accent); flex: 0 0 18px; cursor: inherit; }
.feedback-option input:focus-visible { outline: none; }
.feedback-option span { flex: 1; min-width: 0; }
.feedback-flow { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #e9eee7; }
.feedback-flow:last-child { padding-bottom: 0; border-bottom: 0; }
.flow-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow-choices .feedback-option { font-size: 13px; min-height: 50px; padding: 12px; }

.feedback-field textarea { width: 100%; min-height: 124px; border: 1px solid #bfcbbd; border-radius: 10px; padding: 13px 14px; resize: vertical; background: #fff; color: var(--feedback-ink); font: inherit; font-size: 14px; line-height: 1.6; }
.feedback-field textarea:focus-visible { outline: 3px solid #a77526; outline-offset: 3px; }
.feedback-hint, .feedback-optional { color: var(--feedback-muted); font-weight: 400; font-size: 12px; line-height: 1.6; }
.feedback-hint { margin: -4px 0 12px; }
.feedback-error { color: #922e21; margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.feedback-field:has([aria-invalid="true"]) .feedback-option { border-color: #b75a46; }
.feedback-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; border-top: 1px solid #e9eee7; padding-top: 24px; }
.feedback-button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 26px; border: 1px solid var(--feedback-accent); border-radius: 10px; background: var(--feedback-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.feedback-button:hover { background: #1e483c; }
.feedback-button.secondary { background: #f3f6f0; color: var(--feedback-ink); border-color: #dce2d9; }
.feedback-button.secondary:hover { background: #e9eee5; }
#next, #send { margin-left: auto; min-width: 160px; }
.feedback-button:focus-visible, .feedback-clear:focus-visible, .feedback-summary summary:focus-visible { outline: 3px solid #a77526; outline-offset: 3px; }
.feedback-button:disabled { opacity: .6; cursor: wait; }
.feedback-save { color: var(--feedback-muted); font-size: 11px; line-height: 1.5; margin: 18px 0 0; }
.feedback-clear { display: inline-block; background: none; padding: 8px 0 0; border: 0; color: var(--feedback-muted); font: inherit; font-size: 11px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.feedback-status { margin: 24px 0 0; padding: 16px; border: 1px solid #becfba; border-radius: 10px; background: #edf4e9; font-size: 13px; line-height: 1.6; }
.feedback-status[data-error="true"] { background: #fff4ee; color: #842c20; border-color: #c47d66; }
.feedback-summary { margin-top: 28px; border: 1px solid #dce2d9; border-radius: 10px; padding: 14px 16px; background: #fafbf8; font-size: 13px; }
.feedback-summary summary { min-height: 28px; font-weight: 600; cursor: pointer; }
.feedback-summary pre { white-space: pre-wrap; font: inherit; line-height: 1.7; font-size: 12px; }
.feedback-summary p { font-size: 12px; color: var(--feedback-muted); }
.feedback-privacy { grid-column: 2; margin-top: 28px; color: var(--feedback-muted); font-size: 12px; line-height: 1.75; }
.feedback-privacy h2 { color: var(--feedback-ink); font-size: 14px; line-height: 1.4; margin: 0 0 10px; letter-spacing: 0; }
.feedback-privacy p { margin: 0 0 12px; }
.feedback-footer { grid-column: 2; margin: 12px 0 0; color: var(--feedback-muted); font-size: 12px; line-height: 1.65; }
.feedback-trap, .feedback-page [hidden] { display: none !important; }
#feedback-success h2 { font-size: 28px; line-height: 1.2; margin: 0 0 20px; }
#feedback-success p { font-size: 14px; line-height: 1.7; color: var(--feedback-muted); }
#feedback-success > a { display: inline-block; margin-top: 16px; color: var(--feedback-accent); font-size: 14px; font-weight: 600; }
@media (max-width: 860px) {
  .feedback-layout { grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); column-gap: 28px; padding-top: 32px; }
  .feedback-card { padding: 24px; }
}
@media (max-width: 680px) {
  .feedback-layout { display: block; padding-top: 28px; padding-bottom: 36px; }
  .feedback-intro { position: static; }
  .feedback-intro .eyebrow { font-size: 10px; margin-bottom: 10px; }
  .feedback-intro h1 { font-size: 32px; line-height: 1.1; margin-bottom: 14px; }
  .feedback-intro h1 br { display: none; }
  .feedback-lead { font-size: 14px; line-height: 1.6; max-width: 480px; }
  .feedback-meta { font-size: 11px; margin-top: 16px; gap: 6px 10px; }

  .feedback-stages, .feedback-sidebar-note { display: none; }
  .feedback-card { margin-top: 24px; border-radius: 16px; padding: 22px 18px; }
  .feedback-progress { margin-bottom: 20px; }
  .feedback-progress p { font-size: 12px; }
  #required-hint { font-size: 12px; padding-bottom: 18px; margin-bottom: 20px; }
  .feedback-step > legend { font-size: 23px; }
  .feedback-step-intro { font-size: 13px; margin-bottom: 24px; }
  .feedback-field > legend, .feedback-field > label { font-size: 15px; }
  .feedback-choices { grid-template-columns: 1fr; }
  .feedback-option { min-height: 52px; font-size: 14px; padding: 13px 14px; }
  .flow-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  .flow-choices .feedback-option { min-height: 54px; font-size: 13px; gap: 8px; }
  .feedback-field textarea { font-size: 16px; }
  .feedback-actions { margin-top: 26px; padding-top: 20px; }
  .feedback-button { min-height: 50px; padding: 12px 20px; }
  #next, #send { min-width: 0; flex: 1; }
  .feedback-button.secondary { flex: 0 0 92px; }
  .feedback-privacy { margin-top: 26px; padding: 0 4px; }
  .feedback-footer { margin-top: 20px; padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) { .feedback-page, .feedback-page * { scroll-behavior: auto !important; } }
