:root {
  color-scheme: light;
  --paper: #f7f3ec;
  --surface: #ffffff;
  --ink: #1a1816;
  --muted: #665f58;
  --quiet: #8a8178;
  --border: #d8cec2;
  --border-soft: #e9e1d8;
  --oxblood: #7a2935;
  --oxblood-hover: #64202b;
  --atlantic: #2d5068;
  --gold: #b08a45;
  --success: #3f6848;
  --danger: #a12832;
  --font-editorial: "Newsreader", Georgia, serif;
  --font-control: "Funnel Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-control);
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--atlantic);
  text-underline-offset: 0.18em;
}

.feedback-header,
.feedback-footer {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px clamp(20px, 5vw, 64px);
}

.feedback-header {
  justify-content: space-between;
}

.feedback-header > p {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.feedback-brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.feedback-brand span {
  align-items: center;
  background: var(--oxblood);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.feedback-brand strong {
  font-family: var(--font-editorial);
  font-size: 1.4rem;
}

.feedback-main {
  display: grid;
  gap: clamp(36px, 7vw, 92px);
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  margin: 40px auto 72px;
  max-width: 1120px;
  padding: 0 clamp(20px, 5vw, 64px);
}

.feedback-intro {
  padding-top: 36px;
}

.feedback-kicker {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--font-editorial);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  margin: 0;
  max-width: 760px;
}

.feedback-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 28px 0 0;
  max-width: 590px;
}

.feedback-guidance {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
}

.feedback-guidance h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.feedback-guidance ul {
  color: var(--muted);
  margin: 0;
  padding-left: 1.2rem;
}

.feedback-guidance > p {
  color: var(--quiet);
  font-size: 0.88rem;
  margin: 20px 0 0;
}

.feedback-surface {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(26, 24, 22, 0.08);
  min-height: 640px;
  padding: clamp(24px, 5vw, 48px);
}

.feedback-form {
  display: grid;
  gap: 26px;
}

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

.feedback-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.feedback-field label,
.feedback-field legend {
  font-size: 0.9rem;
  font-weight: 700;
}

.feedback-field label span {
  color: var(--quiet);
  font-weight: 500;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 13px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
  width: 100%;
}

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

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  border-color: var(--atlantic);
  box-shadow: 0 0 0 3px rgba(45, 80, 104, 0.16);
  outline: none;
}

.feedback-categories {
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.feedback-categories legend {
  margin-bottom: 8px;
}

.feedback-categories label {
  align-items: center;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  font-weight: 500;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
}

.feedback-categories label:has(input:checked) {
  background: #dce8ec;
  border-color: var(--atlantic);
}

.feedback-categories input {
  accent-color: var(--oxblood);
  height: 18px;
  margin: 0;
  width: 18px;
}

.feedback-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.7fr 1.3fr;
}

.feedback-hint,
.feedback-privacy,
.feedback-status {
  color: var(--quiet);
  font-size: 0.82rem;
  margin: 0;
}

.feedback-hint {
  text-align: right;
}

.feedback-row .feedback-hint {
  text-align: left;
}

.feedback-trap {
  height: 0;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.feedback-submit,
.feedback-secondary {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  min-height: 50px;
  padding: 13px 20px;
}

.feedback-submit {
  background: var(--oxblood);
  color: white;
}

.feedback-submit:hover {
  background: var(--oxblood-hover);
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.feedback-status.is-error {
  color: var(--danger);
}

.feedback-success {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 540px;
}

.feedback-success[hidden] {
  display: none;
}

.feedback-success__mark {
  align-items: center;
  background: #dde5d7;
  border-radius: 999px;
  color: var(--success);
  display: flex;
  font-size: 1.4rem;
  font-weight: 700;
  height: 52px;
  justify-content: center;
  margin-bottom: 32px;
  width: 52px;
}

.feedback-success h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 14px;
}

.feedback-success > p:not(.feedback-kicker) {
  color: var(--muted);
  margin: 0 0 30px;
}

.feedback-secondary {
  background: var(--paper);
  color: var(--ink);
}

.feedback-footer {
  border-top: 1px solid var(--border-soft);
  color: var(--quiet);
  font-size: 0.82rem;
  gap: 24px;
}

.feedback-footer p {
  margin-right: auto;
}

@media (max-width: 820px) {
  .feedback-main {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .feedback-intro {
    padding-top: 10px;
  }

  .feedback-guidance {
    margin-top: 30px;
  }
}

@media (max-width: 540px) {
  .feedback-header {
    padding-bottom: 12px;
  }

  .feedback-header > p {
    font-size: 0.65rem;
  }

  .feedback-main {
    margin-bottom: 40px;
  }

  .feedback-surface {
    border-radius: 9px;
    margin-inline: -8px;
    padding: 24px 18px;
  }

  .feedback-row,
  .feedback-categories {
    grid-template-columns: 1fr;
  }

  .feedback-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
