/* =========================================
       XGLOBAL - RESPONSIVE DESIGN SYSTEM
    ========================================= */

    :root {
      --bg: #080b12;
      --surface: #101622;
      --surface-light: #171f2e;
      --border: rgba(255, 255, 255, 0.12);
      --text: #f5f7fb;
      --muted: #a0acbd;
      --accent: #8ee6c1;
      --accent-dark: #062b20;
      --danger: #ff8585;
      --radius: 18px;
      --max-width: 1080px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(
          ellipse at top right,
          rgba(83, 119, 166, 0.13),
          transparent 45%
        ),
        var(--bg);
      color: var(--text);
      font-family:
        Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

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

    button,
    a,
    input,
    select,
    textarea {
      -webkit-tap-highlight-color: transparent;
    }

    a {
      color: inherit;
    }

    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
      outline: 3px solid var(--accent);
      outline-offset: 3px;
    }

    .page-shell {
      width: min(100% - 40px, var(--max-width));
      margin-inline: auto;
    }

    /* HEADER */

    .site-header {
      padding: 24px 0;
      border-bottom: 1px solid var(--border);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      font-weight: 800;
      font-size: 21px;
      letter-spacing: -0.7px;
    }

    .brand-mark {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: var(--accent);
      color: #07120e;
      font-weight: 900;
    }

    .header-label {
      color: var(--muted);
      font-size: 13px;
    }

    /* HERO */

    .hero {
      padding: 68px 0 40px;
      text-align: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 18px;
      padding: 7px 13px;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 750;
      letter-spacing: 1.2px;
      text-transform: uppercase;
    }

    .eyebrow-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
    }

    h1 {
      max-width: 800px;
      margin: 0 auto 18px;
      font-size: clamp(36px, 6vw, 66px);
      line-height: 1.08;
      letter-spacing: -2.5px;
    }

    h1 span {
      color: var(--accent);
    }

    .hero-description {
      max-width: 650px;
      margin: 0 auto;
      color: var(--muted);
      font-size: 17px;
    }

    /* MAIN LAYOUT */

    main {
      padding-bottom: 72px;
    }

    .form-container {
      width: min(100%, 820px);
      margin: 0 auto;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: rgba(16, 22, 34, 0.94);
      box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
    }

    .form-top {
      padding: 26px 32px;
      border-bottom: 1px solid var(--border);
    }

    .step-heading {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 14px;
    }

    .step-heading strong {
      font-size: 14px;
    }

    .step-number {
      color: var(--muted);
      font-size: 13px;
    }

    .progress-track {
      height: 5px;
      overflow: hidden;
      border-radius: 20px;
      background: #293142;
    }

    .progress-bar {
      width: 50%;
      height: 100%;
      border-radius: inherit;
      background: var(--accent);
      transition: width 250ms ease;
    }

    .form-body {
      padding: 32px;
    }

    .step-title {
      margin: 0 0 8px;
      font-size: 27px;
      line-height: 1.25;
      letter-spacing: -0.6px;
    }

    .step-description {
      margin: 0 0 30px;
      color: var(--muted);
      font-size: 14px;
    }

    /* FORM FIELDS */

    .field {
      margin-bottom: 23px;
    }

    .field label,
    .field-label {
      display: block;
      margin-bottom: 9px;
      font-size: 13px;
      font-weight: 700;
    }

    .required {
      color: var(--accent);
    }

    .optional {
      color: var(--muted);
      font-size: 12px;
      font-weight: 400;
    }

    .field input,
    .field select,
    .field textarea {
      display: block;
      width: 100%;
      min-height: 49px;
      padding: 13px 15px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #0b101a;
      color: var(--text);
      transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
    }

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

    .field input::placeholder,
    .field textarea::placeholder {
      color: #718096;
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(142, 230, 193, 0.08);
      outline: none;
    }

    .field select {
      cursor: pointer;
    }

    .field select option {
      background: var(--surface);
      color: var(--text);
    }

    .field-hint {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .field-error {
      display: block;
      margin-top: 7px;
      color: var(--danger);
      font-size: 12px;
    }

    [hidden] {
      display: none !important;
    }

    /* TWO-COLUMN FIELDS */

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

    /* PROJECT CARDS */

    .project-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 28px;
    }

    .project-option {
      position: relative;
      min-width: 0;
    }

    .project-option input {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .project-card {
      display: flex;
      align-items: flex-start;
      gap: 13px;
      min-height: 125px;
      height: 100%;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 15px;
      background: #0c121d;
      cursor: pointer;
      transition:
        border-color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
    }

    .project-card:hover {
      border-color: rgba(142, 230, 193, 0.5);
      transform: translateY(-2px);
    }

    .project-option input:checked + .project-card {
      border-color: var(--accent);
      background: rgba(142, 230, 193, 0.07);
    }

    .project-option input:focus-visible + .project-card {
      outline: 3px solid var(--accent);
      outline-offset: 3px;
    }

    .project-icon {
      display: grid;
      place-items: center;
      flex: 0 0 40px;
      width: 40px;
      height: 40px;
      border-radius: 11px;
      background: var(--surface-light);
      font-size: 19px;
    }

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

    .project-copy strong {
      display: block;
      margin-bottom: 5px;
      font-size: 14px;
    }

    .project-copy span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    /* CONSENT */

    .consent-row {
      display: flex;
      align-items: flex-start;
      gap: 11px;
      margin: 24px 0;
    }

    .consent-row input {
      flex: 0 0 17px;
      width: 17px;
      height: 17px;
      margin-top: 4px;
      accent-color: var(--accent);
      cursor: pointer;
    }

    .consent-row label {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.7;
      cursor: pointer;
    }

    /* BUTTONS */

    .button-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-top: 30px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
    }

    .button {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 9px;
      min-height: 49px;
      padding: 12px 21px;
      border: 1px solid transparent;
      border-radius: 12px;
      font-weight: 750;
      font-size: 13px;
      text-decoration: none;
      cursor: pointer;
      transition:
        background 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
    }

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

    .button-primary {
      background: var(--accent);
      color: #07140f;
    }

    .button-primary:hover {
      background: #b2f3d7;
    }

    .button-secondary {
      border-color: var(--border);
      background: transparent;
      color: var(--text);
    }

    .button-secondary:hover {
      background: var(--surface-light);
    }

    .button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    .privacy-note {
      margin: 18px 0 0;
      color: var(--muted);
      font-size: 11px;
      text-align: center;
    }

    /* SUCCESS MESSAGE */

    .success-panel {
      padding: 36px 0;
      text-align: center;
    }

    .success-icon {
      display: grid;
      place-items: center;
      width: 66px;
      height: 66px;
      margin: 0 auto 22px;
      border-radius: 50%;
      background: rgba(142, 230, 193, 0.12);
      color: var(--accent);
      font-size: 29px;
    }

    .success-panel h2 {
      margin: 0 0 12px;
      font-size: 30px;
    }

    .success-panel p {
      max-width: 500px;
      margin: 0 auto 24px;
      color: var(--muted);
      font-size: 14px;
    }

    .fallback-message {
      margin-top: 22px !important;
      overflow-wrap: anywhere;
    }

    .fallback-message a {
      color: var(--accent);
    }

    /* FOOTER */

    .site-footer {
      padding: 26px 0;
      border-top: 1px solid var(--border);
      color: var(--muted);
      font-size: 12px;
      text-align: center;
    }

    /* ACCESSIBILITY */

    .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;
    }

    /* TABLETS */

    @media (max-width: 700px) {
      .page-shell {
        width: min(100% - 30px, var(--max-width));
      }

      .hero {
        padding: 50px 0 32px;
      }

      h1 {
        letter-spacing: -1.6px;
      }

      .hero-description {
        font-size: 15px;
      }

      .form-top {
        padding: 23px;
      }

      .form-body {
        padding: 25px;
      }
    }

    /* MOBILE */

    @media (max-width: 480px) {
      .page-shell {
        width: calc(100% - 22px);
      }

      .site-header {
        padding: 17px 0;
      }

      .brand {
        font-size: 18px;
      }

      .brand-mark {
        width: 34px;
        height: 34px;
      }

      .header-label {
        font-size: 11px;
        text-align: right;
      }

      .hero {
        padding: 39px 0 27px;
      }

      h1 {
        font-size: clamp(34px, 10vw, 44px);
      }

      .eyebrow {
        font-size: 10px;
      }

      .form-container {
        border-radius: 18px;
      }

      .form-top {
        padding: 19px;
      }

      .form-body {
        padding: 21px 17px;
      }

      .step-title {
        font-size: 23px;
      }

      .step-description {
        margin-bottom: 24px;
      }

      .form-grid,
      .project-grid {
        grid-template-columns: 1fr;
      }

      .project-card {
        min-height: 100px;
      }

      .button-row {
        align-items: stretch;
      }

      .button-row .button {
        flex: 1;
        padding-inline: 12px;
      }

      .success-panel h2 {
        font-size: 25px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }