:root {
  color-scheme: dark;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f7f9;
  background: #03070d;
  --page: #03070d;
  --surface: #09111c;
  --surface-soft: #0d1623;
  --text: #f7f7f9;
  --muted: #aab2bf;
  --line: rgba(197, 215, 235, 0.18);
  --blue: #63bff4;
  --purple: #b973ef;
  --danger: #ff9b9b;
  --success: #79e1bd;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 8%, rgba(46, 104, 170, 0.18), transparent 31%),
    var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 28px;
}

.page-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: transparent;
  background: linear-gradient(90deg, #78d6f5 0%, #b973ef 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: 18px;
  font-weight: 800;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-nav a,
.page-footer a {
  color: #d8dce3;
  text-decoration: none;
  font-size: 14px;
}

.page-nav a:hover,
.page-nav a:focus-visible,
.page-footer a:hover,
.page-footer a:focus-visible {
  color: #ffffff;
}

.page-main {
  padding: 76px 0 96px;
}

.page-hero {
  max-width: 760px;
  margin-bottom: 38px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 700;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-hero > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(13, 23, 37, 0.98), rgba(7, 13, 22, 0.98));
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.32);
}

.form-panel {
  padding: 36px;
}

.form-intro {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

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

.field {
  min-width: 0;
}

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

.field label,
.captcha-label {
  display: block;
  margin-bottom: 9px;
  color: #eef2f7;
  font-size: 14px;
  font-weight: 650;
}

.required {
  color: #93d5ff;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(190, 209, 232, 0.22);
  border-radius: 12px;
  color: var(--text);
  background: rgba(4, 9, 16, 0.82);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: #717b8a;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(190, 209, 232, 0.4);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #69c5f6;
  background: rgba(7, 14, 24, 0.98);
  box-shadow: 0 0 0 3px rgba(99, 191, 244, 0.16);
}

.field-hint,
.form-note {
  margin: 8px 0 0;
  color: #8f99a8;
  font-size: 12px;
  line-height: 1.55;
}

.captcha-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: end;
  padding: 20px;
  border: 1px solid rgba(114, 183, 251, 0.18);
  border-radius: 16px;
  background: rgba(52, 117, 180, 0.07);
}

.captcha-question {
  margin: 0;
  color: #eef7ff;
  font-size: 18px;
  font-weight: 700;
}

.captcha-refresh {
  display: inline-block;
  margin-top: 10px;
  color: #89d2fb;
  font-size: 12px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
}

.submit-button {
  min-height: 50px;
  min-width: 170px;
  border: 1px solid rgba(131, 207, 251, 0.62);
  border-radius: 13px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #2f8dd9, #8159e8);
  box-shadow: 0 12px 30px rgba(45, 111, 189, 0.25);
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, filter 160ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.notice {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  line-height: 1.55;
}

.notice--success {
  color: #d9fff1;
  border: 1px solid rgba(121, 225, 189, 0.35);
  background: rgba(52, 148, 113, 0.13);
}

.notice--error {
  color: #ffe4e4;
  border: 1px solid rgba(255, 155, 155, 0.35);
  background: rgba(172, 65, 76, 0.14);
}

.notice ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

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

.privacy-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 30px;
}

.privacy-card--wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.privacy-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.privacy-card p,
.privacy-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.privacy-card ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: auto;
  padding-top: 22px;
}

.card-links a,
.text-link {
  color: #8fd7ff;
  font-weight: 650;
  text-decoration: none;
}

.card-links a:hover,
.card-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.updated {
  margin: 28px 0 0;
  color: #7f8997;
  font-size: 12px;
}

.page-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f99a8;
  font-size: 12px;
}

.page-footer nav {
  display: flex;
  gap: 24px;
}

:focus-visible {
  outline: 2px solid #78c7fa;
  outline-offset: 4px;
}

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

  .page-header {
    min-height: 70px;
    gap: 16px;
  }

  .page-nav {
    gap: 16px;
  }

  .page-nav a {
    font-size: 13px;
  }

  .page-main {
    padding: 54px 0 70px;
  }

  .page-hero h1 {
    font-size: 46px;
  }

  .page-hero > p:last-child {
    font-size: 16px;
  }

  .form-panel {
    padding: 24px 18px;
    border-radius: 19px;
  }

  .field-grid,
  .privacy-grid,
  .captcha-box {
    grid-template-columns: 1fr;
  }

  .privacy-card,
  .privacy-card--wide {
    grid-column: auto;
  }

  .form-actions,
  .page-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }

  .page-footer {
    justify-content: center;
    padding: 30px 0;
  }
}
