:root {
  --bg: #0f212e;
  --surface: #1a2c38;
  --input-bg: #0f212e;
  --border: #2f4553;
  --border-focus: #557086;
  --text: #ffffff;
  --muted: #b1bad2;
  --dim: #557086;
  --accent: #00e701;
  --accent-hover: #00c701;
  --danger: #ff5a6a;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page {
  width: 100%;
  max-width: 480px;
  padding-top: 12px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
  border: 1px solid rgba(47, 69, 83, 0.65);
}

.header {
  text-align: center;
  margin-bottom: 24px;
}

.brand-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
  user-select: none;
}

.brand-logo__img {
  display: block;
  width: min(200px, 58vw);
  height: auto;
}

.header h1 {
  font-size: clamp(22px, 5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.header p {
  font-size: 14px;
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.15s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.form-group input::placeholder {
  color: var(--dim);
}

.field-help {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
}

.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-option:has(input:checked) {
  border-color: var(--border-focus);
  background: rgba(85, 112, 134, 0.12);
}

.radio-option input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-submit:active:not(:disabled) {
  transform: scale(0.99);
}

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

.footer-text {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
  text-align: center;
}

.success-panel {
  text-align: center;
  padding: 8px 4px 4px;
}

.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(0, 231, 1, 0.12);
  color: var(--accent);
  font-size: 28px;
  line-height: 52px;
  font-weight: 700;
}

.success-panel h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.success-panel p {
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}

@media (min-width: 520px) {
  body {
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .card {
    padding: 32px 36px 28px;
  }
}
