:root {
  --bg: #0b1f1c;
  --bg-grad-1: #0d2925;
  --bg-grad-2: #06131a;
  --surface: #ffffff;
  --surface-muted: #f4f7f5;
  --ink: #0f1f1c;
  --ink-soft: #4b5d59;
  --ink-mute: #8a9b97;
  --border: #e3ebe7;
  --border-strong: #cfd9d4;
  --accent: #047857;
  --accent-hover: #065f46;
  --accent-soft: #ecfdf5;
  --accent-ink: #064e3b;
  --gold: #d4a017;
  --danger: #b42318;
  --shadow-lg: 0 30px 80px -20px rgba(4, 47, 35, 0.45);
  --shadow-sm: 0 1px 2px rgba(15, 31, 28, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(4, 120, 87, 0.25), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(212, 160, 23, 0.18), transparent 55%),
    linear-gradient(160deg, var(--bg-grad-1), var(--bg-grad-2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 24px;
}

.card {
  width: 100%;
  max-width: 1040px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.card__intro {
  padding: 56px 48px;
  background: linear-gradient(180deg, #0e2e29 0%, #0a221e 100%);
  color: #e7f1ee;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.card__intro::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18) 0%, transparent 70%);
  bottom: -120px;
  right: -120px;
  pointer-events: none;
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(212, 160, 23, 0.15);
  color: #f5d77d;
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card__intro h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 15.5px;
  line-height: 1.65;
  color: #b9cdc7;
  margin: 0;
}

.perks {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: #d4e2dd;
  line-height: 1.5;
}

.perks svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #6ee7b7;
  margin-top: 1px;
}

.form {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

label span {
  color: var(--accent);
  margin-left: 2px;
}

input, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  outline: none;
}

input::placeholder, textarea::placeholder {
  color: var(--ink-mute);
}

input:hover, textarea:hover {
  border-color: var(--border-strong);
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.12);
  background: #fbfffd;
}

input.invalid, textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.submit-btn {
  margin-top: 6px;
  appearance: none;
  border: none;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  color: #fff;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 24px -10px rgba(4, 120, 87, 0.6);
}

.submit-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 28px -10px rgba(4, 120, 87, 0.7);
}

.submit-btn:active {
  transform: translateY(1px);
}

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

.submit-btn__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.submit-btn:hover .submit-btn__icon {
  transform: translateX(3px);
}

.note {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 4px 0 0;
  text-align: center;
}

.success {
  grid-column: 1 / -1;
  padding: 72px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--surface);
}

.success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success__icon svg {
  width: 32px;
  height: 32px;
}

.success h2 {
  margin: 0;
  font-size: 24px;
  color: var(--accent-ink);
}

.success p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 420px;
  line-height: 1.6;
}

.footer {
  color: #b9cdc7;
  font-size: 13px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer a {
  color: #f5d77d;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .card {
    grid-template-columns: 1fr;
  }

  .card::before {
    inset: 0 0 auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
  }

  .card__intro {
    padding: 40px 28px 32px;
  }

  .card__intro h1 {
    font-size: 26px;
  }

  .form {
    padding: 32px 28px 40px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 24px 14px;
  }
}
