@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-main: #08111f;
  --bg-accent: #0c1a31;
  --panel-dark: rgba(10, 18, 32, 0.82);
  --panel-light: linear-gradient(180deg, #fffdf8 0%, #f8f2e5 100%);
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-light: rgba(15, 23, 42, 0.12);
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --muted-dark: #475569;
  --muted-light: #cbd5e1;
  --accent: #f5c542;
  --accent-strong: #e0a900;
  --success: #34d399;
  --danger: #fb7185;
  --shadow-dark: 0 30px 80px rgba(0, 0, 0, 0.32);
  --shadow-light: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-light);
  background:
    radial-gradient(circle at top left, rgba(245, 197, 66, 0.24), transparent 26%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 28%),
    linear-gradient(160deg, #06101d 0%, #091427 50%, #0b111d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 84%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 18px 56px;
}

.page-header,
.shell {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.shell {
  display: block;
  margin-top: 20px;
}

.page-header,
.summary-card {
  background: var(--panel-dark);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(16px);
}

.form-card {
  background: var(--panel-light);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-light);
}

.page-header,
.form-card {
  border-radius: var(--radius-xl);
}

.page-header {
  position: relative;
  overflow: hidden;
  padding: 32px;
}

.header-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-copy {
  min-width: 0;
}

.page-logo {
  display: block;
  width: min(168px, 42vw);
  max-width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.18));
}

.page-header::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.35), rgba(245, 197, 66, 0.02) 70%);
  filter: blur(2px);
  pointer-events: none;
}

.kicker {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}

h1,
.section h2,
.summary-title,
details.optional-block summary {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 4vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lead {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted-light);
}

.badge-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.summary-card {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
}

.summary-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #fff;
}

.summary-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-light);
  line-height: 1.65;
}

.summary-list li + li {
  margin-top: 6px;
}

.form-card {
  padding: 28px;
  color: var(--text-dark);
}

.section {
  margin-bottom: 26px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

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

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

.form-card .field label,
.form-card .checkbox label {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.field input,
.field select {
  min-height: 48px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(71, 85, 105, 0.55);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(245, 197, 66, 0.85);
  box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.16);
  background: #fff;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.help,
.footer-note {
  color: var(--muted-dark);
  font-size: 0.88rem;
  line-height: 1.65;
}

details.optional-block {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.6);
}

details.optional-block summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-dark);
}

details.optional-block summary::-webkit-details-marker {
  display: none;
}

details.optional-block summary::after {
  content: "▾";
  margin-left: 10px;
  color: var(--accent-strong);
}

details.optional-block[open] summary::after {
  content: "▴";
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 4px 0 0;
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.checkbox label {
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted-dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #f5c542 0%, #ffdf78 100%);
  color: #09111d;
  box-shadow: 0 18px 30px rgba(245, 197, 66, 0.24);
}

.button-secondary {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-dark);
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.button-secondary:hover {
  background: rgba(15, 23, 42, 0.08);
}

.success-banner,
.error-banner {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 24px;
  font-size: 0.98rem;
  line-height: 1.6;
  box-shadow: var(--shadow-dark);
}

.success-banner {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.error-banner {
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.28);
}

.error-banner strong,
.success-banner strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.error-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.error-list li + li {
  margin-top: 6px;
}

.footer-note {
  margin: 18px 0 0;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, 0.75) 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.75) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.feature-groups {
  display: grid;
  gap: 16px;
}

.feature-group {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.feature-group h3 {
  margin: 0 0 14px;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.feature-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.feature-label {
  font-weight: 700;
  color: var(--text-dark);
}

.choice-set {
  display: flex;
  gap: 10px;
}

.choice-set .radio-chip {
  flex: 1;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 62px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  user-select: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.radio-chip:hover {
  transform: translateY(-1px);
}

.radio-chip input {
  margin: 0;
  accent-color: var(--accent-strong);
}

.radio-chip span {
  font-size: 0.92rem;
  font-weight: 700;
}

.radio-chip input:checked + span {
  color: var(--accent-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .page {
    padding: 18px 12px 32px;
  }

  .page-header,
  .form-card {
    padding: 20px;
    border-radius: 24px;
  }

  .header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .page-logo {
    width: min(148px, 52vw);
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .feature-groups {
    gap: 12px;
  }

  .feature-group {
    padding: 16px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .choice-set {
    width: 100%;
  }

  .radio-chip {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }

  .radio-chip span {
    font-size: 0.95rem;
  }
}
