:root {
      --bg: #090e1a;
      --bg-2: #0d1525;
      --card: rgba(16, 24, 44, .94);
      --accent: #4dffc3;
      --accent-2: #7c6bff;
      --text: #ccd6f6;
      --strong: #edf4ff;
      --dim: #98a3bd;
      --border: rgba(77, 255, 195, .15);
      --border-strong: rgba(77, 255, 195, .38);
      --danger: #ff8a9a;
      --mono: 'JetBrains Mono', monospace;
      --sans: 'Inter', system-ui, sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      min-height: 100vh;
      margin: 0;
      color: var(--text);
      background:
        radial-gradient(circle at 90% 5%, rgba(77, 255, 195, .08), transparent 28rem),
        radial-gradient(circle at 5% 85%, rgba(124, 107, 255, .08), transparent 30rem),
        var(--bg);
      font-family: var(--sans);
      line-height: 1.65;
    }

    body::after {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background-image: linear-gradient(rgba(77,255,195,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(77,255,195,.022) 1px, transparent 1px);
      background-size: 56px 56px;
    }

    a { color: inherit; }
    button, input, select, textarea { font: inherit; }
    .wrap { width: min(100% - 2rem, 860px); margin-inline: auto; }

    header {
      position: sticky;
      top: 0;
      z-index: 10;
      border-bottom: 1px solid var(--border);
      background: rgba(9, 14, 26, .82);
      backdrop-filter: blur(18px);
    }

    nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
    .logo { color: var(--accent); font-family: var(--mono); font-size: .95rem; text-decoration: none; }
    .logo span { color: var(--dim); }
    .back { color: var(--dim); font-family: var(--mono); font-size: .76rem; text-decoration: none; }
    .back:hover { color: var(--accent); }

    main { padding: clamp(3.2rem, 8vw, 6rem) 0 5rem; }
    .eyebrow { color: var(--accent); font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
    h1 { max-width: 760px; margin: .65rem 0 1rem; color: var(--strong); font-size: clamp(2rem, 7vw, 4.1rem); line-height: 1.08; letter-spacing: -.04em; }
    .intro { max-width: 740px; margin: 0; color: var(--dim); font-size: clamp(.98rem, 2vw, 1.08rem); }

    .meta {
      display: flex;
      flex-wrap: wrap;
      gap: .65rem;
      margin: 1.5rem 0 2.5rem;
    }
    .pill { border: 1px solid var(--border); border-radius: 999px; padding: .35rem .7rem; color: var(--dim); font-family: var(--mono); font-size: .7rem; background: rgba(77,255,195,.035); }

    .progress-shell { position: sticky; top: 68px; z-index: 9; padding: .7rem 0; background: rgba(9,14,26,.9); }
    .progress-info { display: flex; justify-content: space-between; margin-bottom: .35rem; color: var(--dim); font-family: var(--mono); font-size: .68rem; }
    .progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
    .progress-bar { width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s ease; }

    form { display: grid; gap: 1.25rem; }
    fieldset {
      margin: 0;
      padding: clamp(1.15rem, 4vw, 2rem);
      border: 1px solid var(--border);
      border-radius: 16px;
      background: linear-gradient(180deg, var(--card), rgba(13,21,37,.9));
      box-shadow: 0 20px 55px rgba(0,0,0,.2);
    }
    legend { padding: 0 .45rem; color: var(--strong); font-size: 1.05rem; font-weight: 800; }
    .section-number { display: block; margin-bottom: .15rem; color: var(--accent); font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
    .question { margin: 1.35rem 0 0; }
    .question:first-of-type { margin-top: .65rem; }
    .question-title { display: block; margin-bottom: .55rem; color: var(--strong); font-weight: 600; }
    .hint { display: block; margin: -.25rem 0 .55rem; color: var(--dim); font-size: .78rem; }
    .required { color: var(--danger); }

    select, input[type="text"], input[type="email"], input[type="tel"], textarea {
      width: 100%;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 9px;
      outline: none;
      padding: .78rem .85rem;
      color: var(--strong);
      background: rgba(9,14,26,.72);
      transition: border-color .2s, box-shadow .2s;
    }
    select:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(77,255,195,.08);
    }
    select option { color: #111827; background: white; }
    textarea { min-height: 110px; resize: vertical; }

    .choices { display: grid; gap: .5rem; }
    .choices.columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .choice {
      display: flex;
      align-items: flex-start;
      gap: .65rem;
      padding: .65rem .72rem;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 9px;
      color: var(--dim);
      cursor: pointer;
      background: rgba(9,14,26,.34);
      transition: border-color .2s, background .2s, color .2s;
    }
    .choice:hover, .choice:has(input:checked) { border-color: var(--border-strong); color: var(--strong); background: rgba(77,255,195,.055); }
    input[type="radio"], input[type="checkbox"] { width: 1rem; height: 1rem; margin: .23rem 0 0; accent-color: var(--accent); flex: 0 0 auto; }

    .rating-list { display: grid; gap: .85rem; }
    .rating-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 1rem; }
    .rating-row > span { color: var(--dim); font-size: .9rem; }
    .rating-options { display: flex; gap: .3rem; }
    .rating-options label { cursor: pointer; }
    .rating-options input { position: absolute; opacity: 0; pointer-events: none; }
    .rating-options span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: var(--dim); font-family: var(--mono); font-size: .72rem; }
    .rating-options input:checked + span { border-color: var(--accent); color: #061018; background: var(--accent); font-weight: 700; }

    .privacy { color: var(--dim); font-size: .78rem; }
    .submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .35rem; }
    .submit-row p { margin: 0; color: var(--dim); font-size: .76rem; }
    button[type="submit"] { min-height: 48px; border: 1.5px solid var(--accent); border-radius: 10px; padding: .75rem 1.3rem; color: #061018; background: var(--accent); font-family: var(--mono); font-size: .78rem; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s; }
    button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(77,255,195,.15); }

    footer { padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--border); color: var(--dim); text-align: center; font-family: var(--mono); font-size: .7rem; }
    footer a { color: var(--accent); text-decoration: none; }

    @media (max-width: 650px) {
      .choices.columns { grid-template-columns: 1fr; }
      .rating-row { grid-template-columns: 1fr; gap: .45rem; }
      .rating-options { justify-content: space-between; }
      .rating-options label { flex: 1; }
      .rating-options span { width: 100%; }
      .submit-row { align-items: stretch; flex-direction: column; }
      button[type="submit"] { width: 100%; }
    }
