@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --red: #ff1010;
  --red-dark: #d90909;
  --ink: #111111;
  --muted: #5f6b82;
  --line: #dfe5ef;
  --soft: #f7f9fc;
  --paper: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  box-shadow: none !important;
  text-shadow: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

:where(a, button, textarea, input):focus-visible {
  outline: 3px solid rgba(255, 16, 16, 0.22);
  outline-offset: 2px;
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 102px) 0 64px;
}

.feedback-hero {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 42px);
  text-align: center;
}

.feedback-kicker {
  margin-bottom: 22px;
  color: #52627d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.feedback-hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 6vw, 5.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.feedback-hero p {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  font-weight: 500;
  line-height: 1.6;
}

.feedback-card {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.feedback-form label:not(.feedback-file-picker) {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.feedback-form textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 18px 20px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
}

.feedback-form textarea::placeholder {
  color: rgba(17, 17, 17, 0.54);
}

.feedback-file-picker {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px 20px;
  border: 1px dashed rgba(17, 17, 17, 0.22);
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.feedback-file-picker:hover,
.feedback-file-picker:focus-within {
  border-color: rgba(255, 16, 16, 0.46);
  background: #ffffff;
}

.feedback-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feedback-file-picker span {
  color: var(--red-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feedback-file-picker strong {
  font-size: 1.18rem;
  font-weight: 900;
}

.feedback-file-picker small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.feedback-preview {
  display: grid;
  gap: 10px;
}

.feedback-preview img {
  max-width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feedback-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  font-weight: 800;
}

.feedback-status[data-tone="success"] {
  border-color: rgba(28, 142, 84, 0.24);
  color: #13683e;
  background: rgba(28, 142, 84, 0.08);
}

.feedback-status[data-tone="warn"] {
  border-color: rgba(255, 16, 16, 0.24);
  color: #9f0808;
  background: rgba(255, 16, 16, 0.08);
}

.feedback-submit {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.feedback-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.feedback-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

@media (max-width: 720px) {
  main {
    width: min(100% - 24px, 520px);
    padding: 46px 0 42px;
  }

  .feedback-kicker {
    margin-bottom: 16px;
    font-size: 0.68rem;
  }

  .feedback-hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.8rem);
  }

  .feedback-hero p {
    margin-top: 18px;
    font-size: 1rem;
  }

  .feedback-card {
    padding: 18px;
  }

  .feedback-form textarea {
    min-height: 170px;
    padding: 15px;
  }
}
