:root {
  color-scheme: light;
  --green: #0f8b4c;
  --green-dark: #096238;
  --ink: #17231d;
  --muted: #5f6f67;
  --line: #d9e4de;
  --surface: #ffffff;
  --soft: #eef7f2;
  --danger: #9f1d1d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 139, 76, 0.14), transparent 32rem),
    linear-gradient(180deg, #f7fbf8 0%, #e9f4ee 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page-shell {
  width: min(100%, 920px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 18px;
  display: grid;
  align-items: center;
}

.feedback-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 35, 29, 0.12);
  padding: clamp(18px, 4vw, 38px) clamp(24px, 5vw, 48px) clamp(24px, 5vw, 48px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0;
  font-size: 1.05rem;
}

.brand-logo {
  display: block;
  width: clamp(104px, 26vw, 140px);
  height: auto;
}

.intro {
  margin: 26px 0 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1;
}

.intro p:last-child {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

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

.question {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 750;
}

.question small {
  color: var(--muted);
  font-weight: 600;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  gap: 7px;
}

.scale label {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.scale input {
  position: absolute;
  opacity: 0;
}

.scale label:has(input:checked) {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.scale-caption {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  resize: vertical;
}

textarea:focus,
input[type="text"]:focus,
.scale label:has(input:focus-visible) {
  border-color: var(--green);
  outline: 3px solid rgba(15, 139, 76, 0.18);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.error {
  color: var(--danger);
}

.submit-button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.success-panel {
  position: absolute;
  z-index: 10;
  top: 58%;
  left: 50%;
  width: min(calc(100% - 40px), 360px);
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 139, 76, 0.24);
  border-radius: 8px;
  background: rgba(243, 250, 246, 0.98);
  padding: 22px;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 22px 60px rgba(23, 35, 29, 0.16);
  animation: successPanelIn 300ms ease-out both;
}

.success-panel strong {
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 850;
}

.success-panel span:last-child {
  font-size: 0.92rem;
  font-weight: 650;
}

.success-check {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 10px 28px rgba(15, 139, 76, 0.2);
  animation: successCheckIn 260ms cubic-bezier(0.2, 0.9, 0.2, 1.15) 80ms both;
}

.success-check svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.success-check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: successTick 360ms ease-out 220ms forwards;
}

@keyframes successPanelIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px)) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes successCheckIn {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes successTick {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 0;
  }

  .feedback-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .scale {
    grid-template-columns: repeat(5, 1fr);
  }
}
