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

:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #252a24;
  background: #f6f5f0;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 36px 22px 48px;
}

main {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #e7e6de;
  border-radius: 12px;
  background: #fffefa;
  box-shadow: 0 4px 18px rgba(43, 49, 36, .035);
}

.back-link {
  color: #286849;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.eyebrow {
  margin: 28px 0 7px;
  color: #286849;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -1px;
}

.feedback-intro {
  margin: 12px 0 30px;
  color: #73786e;
  font-size: 14px;
  line-height: 1.7;
}

.feedback-section {
  padding-top: 22px;
  border-top: 1px solid #efeee8;
}

.feedback-section h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

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

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe2d9;
  border-radius: 8px;
  background: #fff;
  color: #343b32;
  font: 13px/1.6 "Segoe UI", Arial, sans-serif;
}

input {
  min-height: 44px;
  margin-bottom: 8px;
}

textarea {
  min-height: 150px;
  margin-bottom: 8px;
  resize: vertical;
}

textarea::placeholder {
  color: #92968e;
}

.feedback-submit {
  justify-self: start;
  padding: 11px 20px;
  border: 0;
  border-radius: 7px;
  background: #286849;
  color: #fff;
  font: 600 13px "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.feedback-submit:hover {
  background: #20543a;
}

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

.feedback-note {
  margin: 3px 0 0;
  color: #7c8177;
  font-size: 12px;
  line-height: 1.6;
}

.feedback-toast {
  margin: 6px 0 0;
  padding: 12px 14px;
  border: 1px solid #bd3737;
  border-radius: 8px;
  background: #fff0f0;
  color: #a32121;
  font-size: 12px;
  line-height: 1.5;
}

.feedback-toast.is-success {
  border-color: #83ab87;
  background: #f0f8f1;
  color: #20543a;
}

.feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

[hidden] {
  display: none !important;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #83ab87;
  outline-offset: 3px;
}

@media (max-width: 620px) {
  body {
    padding: 20px 14px 32px;
  }

  main {
    padding: 22px 18px;
  }
}
