:root {
  --bg-top: #0f1a24;
  --bg-bottom: #1a2d3a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #e8eef3;
  --text-muted: #9bb0c0;
  --accent: #3ecf8e;
  --accent-hover: #2fb87a;
  --danger: #ff6b6b;
  --focus: #5ecfff;
  --radius: 12px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max-w: 40rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(62, 207, 142, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(94, 207, 255, 0.08), transparent),
    linear-gradient(165deg, var(--bg-top), var(--bg-bottom));
}

.page {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.status {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.info {
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.info h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.info-text {
  margin: 0;
}

.info-text p {
  margin: 0 0 1rem;
}

.info-text p:last-child {
  margin-bottom: 0;
}

.feedback h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feedback > p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.fieldset legend {
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0;
}

.choice {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.choice label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice label:hover {
  border-color: rgba(62, 207, 142, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.choice input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 1.1rem;
  height: 1.1rem;
}

.choice input:focus-visible + span,
.choice label:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.choice label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(62, 207, 142, 0.1);
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.field .hint {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

textarea {
  width: 100%;
  min-height: 7rem;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  resize: vertical;
  transition: border-color 0.15s ease;
}

textarea::placeholder {
  color: rgba(155, 176, 192, 0.7);
}

textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(94, 207, 255, 0.2);
}

.char-count {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.char-count.is-near-limit {
  color: #e8c070;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

button[type="submit"] {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  color: #0a1612;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

button[type="submit"]:hover:not(:disabled) {
  background: var(--accent-hover);
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.alert[hidden] {
  display: none;
}

.alert--error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
}

.alert--success {
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.35);
  color: #9aecc4;
}

.success-panel {
  padding: 1.5rem 0;
  border-top: 1px solid var(--surface-border);
}

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

.success-panel h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.success-panel p {
  margin: 0;
  color: var(--text-muted);
}

.footer {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .page {
    padding: 2rem 0 3rem;
  }

  button[type="submit"] {
    width: 100%;
  }
}

.form[hidden] {
  display: none;
}
