/* ── Reset & Base ─────────────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --teal:    #00B0B9;
      --teal-dk: #0099a0;
      --navy:    #25306D;
      --dark:    #222628;
      --bg:      #F7F7F7;
      --text:    #27333A;
      --muted:   #3C3C3C;
      --border:  #D8D8D8;
    }

    html { font-size: 16px; }

    body {
      font-family: 'Manrope', sans-serif;
      font-weight: 300;
      color: var(--text);
      background: #fff;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ── Header ───────────────────────────────────────────────────────────── */
    .site-header {
      background: #fff;
      border-bottom: 3px solid var(--teal);
      padding: 0 48px;
      height: 80px;
      display: flex;
      align-items: center;
    }

    .site-header img {
      max-height: 52px;
      width: auto;
    }

    .site-header .brand-fallback {
      font-size: 22px;
      font-weight: 700;
      color: var(--navy);
      letter-spacing: -0.02em;
    }

    /* ── Main ─────────────────────────────────────────────────────────────── */
    main {
      flex: 1;
      max-width: 760px;
      width: 100%;
      margin: 0 auto;
      padding: 56px 24px 80px;
    }

    .page-title {
      font-size: 32px;
      font-weight: 700;
      color: var(--navy);
      line-height: 1.2;
      margin-bottom: 8px;
    }

    .page-subtitle {
      font-size: 16px;
      color: var(--muted);
      margin-bottom: 40px;
      font-weight: 300;
    }

    /* ── Card ─────────────────────────────────────────────────────────────── */
    .card {
      background: var(--bg);
      padding: 36px 40px;
      margin-bottom: 24px;
    }

    .card-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--navy);
      padding-bottom: 14px;
      border-bottom: 2px solid var(--teal);
      margin-bottom: 28px;
    }

    /* ── Form ─────────────────────────────────────────────────────────────── */
    .form-group { margin-bottom: 20px; }

    .form-label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      color: var(--navy);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 7px;
    }

    .form-control {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid var(--border);
      border-radius: 0;
      background: #fff;
      font-family: 'Manrope', sans-serif;
      font-size: 15px;
      font-weight: 400;
      color: var(--text);
      outline: none;
      transition: border-color 0.15s;
      -webkit-appearance: none;
    }

    .form-control:focus { border-color: var(--teal); }

    .row-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    /* ── Buttons ──────────────────────────────────────────────────────────── */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 13px 30px;
      font-family: 'Manrope', sans-serif;
      font-size: 15px;
      font-weight: 600;
      border: 2px solid transparent;
      border-radius: 0;
      cursor: pointer;
      transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
      text-decoration: none;
    }

    .btn-primary {
      background: var(--teal);
      color: #fff;
      border-color: var(--teal);
    }
    .btn-primary:hover:not(:disabled) { background: var(--teal-dk); border-color: var(--teal-dk); }
    .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

    .btn-outline {
      background: transparent;
      color: var(--navy);
      border-color: var(--navy);
    }
    .btn-outline:hover { background: var(--navy); color: #fff; }

    .btn-group {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 4px;
    }

    /* ── Alerts ───────────────────────────────────────────────────────────── */
    .alert {
      padding: 16px 20px;
      margin-bottom: 24px;
      font-size: 15px;
      line-height: 1.5;
    }
    .alert-info    { background: #e7f7f8; border-left: 4px solid var(--teal); color: var(--navy); }
    .alert-warning { background: #fff8e1; border-left: 4px solid #F0A500; color: #4a3000; }
    .alert-success { background: #e8f5e9; border-left: 4px solid #43A047; color: #1b5e20; }
    .alert-error   { background: #ffebee; border-left: 4px solid #E53935; color: #7f0000; }

    /* ── Spinner ──────────────────────────────────────────────────────────── */
    .spinner-wrap { text-align: center; padding: 64px 0; }
    .spinner {
      display: inline-block;
      width: 36px;
      height: 36px;
      border: 3px solid #e0e0e0;
      border-top-color: var(--teal);
      border-radius: 50%;
      animation: spin 0.75s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── Mailing list grid ────────────────────────────────────────────────── */
    .ml-help {
      font-size: 14px;
      color: #666;
      margin-bottom: 20px;
      line-height: 1.5;
    }

    .ml-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .ml-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 18px;
      background: #fff;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      user-select: none;
    }

    .ml-item:hover { border-color: var(--teal); }

    .ml-item.is-checked {
      border-color: var(--teal);
      background: #f0fbfc;
    }

    .ml-checkbox {
      flex-shrink: 0;
      width: 22px;
      height: 22px;
      border: 2px solid #bbb;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, border-color 0.15s;
    }

    .ml-item.is-checked .ml-checkbox {
      background: var(--teal);
      border-color: var(--teal);
    }

    .ml-checkmark {
      display: none;
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      line-height: 1;
    }

    .ml-item.is-checked .ml-checkmark { display: block; }

    .ml-info { min-width: 0; }

    .ml-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--navy);
      line-height: 1.3;
      word-break: break-word;
    }

    .ml-desc2 {
      font-size: 12px;
      color: #888;
      margin-top: 2px;
      word-break: break-word;
    }

    .ml-empty {
      grid-column: 1 / -1;
      font-size: 14px;
      color: #888;
      padding: 12px 0;
    }

    /* ── Success step ─────────────────────────────────────────────────────── */
    .success-icon {
      font-size: 48px;
      display: block;
      margin-bottom: 16px;
    }

    .success-title {
      font-size: 24px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 8px;
    }

    .success-body {
      font-size: 16px;
      color: var(--muted);
      margin-bottom: 28px;
    }

    /* ── Footer ───────────────────────────────────────────────────────────── */
    .site-footer {
      background: var(--dark);
      color: #fff;
      text-align: center;
      padding: 22px 24px;
      font-size: 13px;
      font-weight: 300;
      margin-top: auto;
    }

    /* ── Utility ──────────────────────────────────────────────────────────── */
    .hidden { display: none !important; }

    /* ── Responsive ───────────────────────────────────────────────────────── */
    @media (max-width: 640px) {
      .site-header { padding: 0 20px; }
      main { padding: 36px 16px 60px; }
      .card { padding: 24px 20px; }
      .page-title { font-size: 26px; }
      .row-2 { grid-template-columns: 1fr; }
      .ml-grid { grid-template-columns: 1fr; }
    }
