:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f4f4f4;
  --surface: #ffffff;
  --ink: #080808;
  --muted: #565656;
  --line: #d7d7d7;
  --accent: #ff0b0b;
  --accent-strong: #cc0000;
  --danger: #b00000;
  --focus: #ff0b0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 11, 11, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.08), transparent 38%),
    var(--bg);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.intro {
  padding-top: 28px;
}

.brand-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 300px;
  margin-bottom: 26px;
}

.brand-strip img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 1;
}

.intro p:last-child {
  max-width: 42ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.form-panel {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-top: 6px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.full {
  grid-column: 1 / -1;
}

label,
legend {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input[type="radio"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
  flex: 0 0 18px;
}

input[type="file"] {
  padding: 9px 12px;
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 5px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  margin-right: 12px;
  min-height: 32px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 104px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 11, 11, 0.18);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.radio-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-group legend,
.radio-group .error {
  grid-column: 1 / -1;
}

.radio-card {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  background: #ffffff;
}

.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 11, 11, 0.06);
}

.error {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 650;
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  padding: 0 18px;
  transition: background 150ms ease, transform 150ms ease;
}

button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

button.secondary {
  background: #101010;
  color: #ffffff;
}

button.secondary:hover {
  background: #2a2a2a;
}

.result {
  display: none;
  border: 1px solid rgba(255, 11, 11, 0.32);
  border-radius: 6px;
  background: rgba(255, 11, 11, 0.06);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
  padding: 14px;
}

.result.show {
  display: block;
}

@media (max-width: 820px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .intro {
    padding-top: 0;
  }
}

@media (max-width: 580px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }

  .form-panel {
    padding: 18px;
  }

  form,
  .radio-group {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column-reverse;
  }

  button {
    width: 100%;
  }
}
