:root {
  color-scheme: dark;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #eef6f8;
  background: #05090d;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #05090d; }
body { margin: 0; min-height: 100vh; background: #05090d; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 7, 11, .7), rgba(2, 8, 12, .92)),
    url("../assets/images/hero-desktop-smooth.webp") center / cover;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(93, 205, 235, .08) 1px, transparent 1px),
    linear-gradient(rgba(93, 205, 235, .05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(transparent, #000 40%, #000);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
}

.wordmark { font-size: 22px; letter-spacing: .3em; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-control { display: flex; align-items: center; gap: 8px; color: #91a6ad; font-size: 12px; }
.language-control select { width: auto; min-height: 36px; padding: 0 30px 0 10px; border-color: rgba(154, 210, 225, .16); background: rgba(7, 20, 27, .82); }
.back-link { color: #c8d9df; font-size: 13px; letter-spacing: .08em; text-decoration: none; }
.back-link:hover { color: #fff; }

.application-shell { width: min(1040px, calc(100% - 32px)); margin: 28px auto 70px; }
.intro { max-width: 720px; margin-bottom: 42px; }
.eyebrow, .section-heading p { margin: 0 0 12px; color: #73cce3; font-size: 11px; font-weight: 700; letter-spacing: .24em; }
.intro h1 { margin: 0 0 18px; font-size: clamp(36px, 6vw, 64px); font-weight: 400; line-height: 1.08; }
.intro > p:last-child { margin: 0; color: #b3c3c9; line-height: 1.8; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; padding: 0; list-style: none; background: rgba(141, 208, 226, .15); }
.steps li { padding: 18px 22px; color: #789099; background: rgba(5, 15, 21, .92); font-size: 13px; }
.steps li span { margin-right: 12px; color: #5ec8e4; font-size: 11px; }
.steps li.is-active { color: #fff; background: rgba(12, 35, 45, .96); }

#application-form { border: 1px solid rgba(153, 220, 238, .14); border-top: 0; background: rgba(4, 13, 19, .92); box-shadow: 0 32px 90px rgba(0, 0, 0, .35); }
.form-step { padding: clamp(28px, 5vw, 58px); }
.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
label, legend { color: #cbd9dd; font-size: 13px; line-height: 1.5; }
label { display: grid; gap: 9px; }
.full { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(154, 210, 225, .2);
  border-radius: 2px;
  color: #f3f8fa;
  background: rgba(9, 26, 34, .78);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
input, select { min-height: 48px; padding: 0 14px; }
textarea { padding: 13px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #65c7df; box-shadow: 0 0 0 3px rgba(65, 184, 215, .1); }
select option { color: #12202a; background: #f5fafb; }

.inline-options { display: flex; align-items: center; gap: 24px; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid rgba(154, 210, 225, .2); }
.inline-options legend { padding: 0 5px; }
.inline-options label, .consent { display: flex; align-items: center; gap: 8px; }
.inline-options input, .consent input, .answer-option input { width: 16px; min-height: 16px; margin: 0; accent-color: #58bfd8; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; }

.questionnaire-intro { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; color: #aebfc5; }
.questionnaire-intro p { margin: 0; }
.questionnaire-intro strong { color: #71cce3; white-space: nowrap; }
.question-list { display: grid; gap: 14px; }
.question-card { padding: 20px; border: 1px solid rgba(154, 210, 225, .14); background: rgba(10, 28, 36, .58); }
.question-card legend { width: 100%; margin-bottom: 14px; color: #789aa4; }
.answer-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.answer-option { position: relative; display: block; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-option span { display: flex; align-items: center; justify-content: center; min-height: 45px; padding: 8px; border: 1px solid rgba(154, 210, 225, .16); color: #cbdadd; background: rgba(3, 12, 17, .55); text-align: center; cursor: pointer; }
.answer-option input:checked + span { border-color: #61c9e2; color: #fff; background: rgba(34, 114, 137, .36); box-shadow: inset 0 0 18px rgba(62, 190, 222, .08); }
.analysis-field { margin-top: 28px; }
.consent { margin-top: 22px; color: #adbdc2; }

.step-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 36px; }
.step-actions--end { justify-content: flex-end; }
.primary-button, .secondary-button { min-height: 48px; padding: 0 24px; border-radius: 2px; cursor: pointer; }
.primary-button { border: 1px solid #70cee4; color: #031017; background: #70cee4; font-weight: 700; }
.secondary-button { border: 1px solid rgba(178, 215, 225, .28); color: #dce9ec; background: transparent; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.form-message { min-height: 24px; margin-top: 20px; color: #ffb3a9; }
.form-message.is-success { color: #83e4bd; }
footer { display: grid; gap: 8px; padding: 0 20px 34px; color: #6d858d; font-size: 11px; letter-spacing: .12em; text-align: center; }
footer a { color: inherit; letter-spacing: 0; text-decoration: none; }
footer a:hover { color: #b7c9cf; }

@media (max-width: 720px) {
  .site-header { padding: 22px 0; }
  .application-shell { margin-top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .answer-options { grid-template-columns: 1fr 1fr; }
  .questionnaire-intro, .step-actions { flex-direction: column; }
  .step-actions button { width: 100%; }
}

@media (max-width: 420px) {
  .site-header { width: calc(100% - 28px); }
  .wordmark { font-size: 18px; }
  .language-control span, .back-link { display: none; }
  .steps li { padding: 15px 12px; }
  .form-step { padding: 24px 18px; }
}
