  :root {
    --navy: #101B2E;
    --gold: #B8942F;
    --gold-dark: #9a7b26;
    --ink: #1c2431;
    --muted: #5a6472;
    --line: #d4d9e0;
    --error: #b3261e;
    --bg: #f4f5f7;
    --field-radius: 8px;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }

  .wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px 64px;
  }

  header.masthead {
    background: var(--navy);
    color: #fff;
    padding: 24px 16px;
    text-align: center;
  }
  header.masthead .inner { max-width: 640px; margin: 0 auto; }
  header.masthead h1 { margin: 0; font-size: 22px; letter-spacing: .3px; }
  header.masthead .logo { height: 52px; width: auto; max-width: 280px; margin: 0 auto; display: block; }
  header.masthead p { margin: 6px 0 0; color: #c9d0da; font-size: 15px; }
  header.masthead .rule {
    height: 3px; width: 56px; background: var(--gold);
    margin: 14px auto 0; border-radius: 2px;
  }

  .intro {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
    font-size: 15px;
    color: var(--muted);
  }

  fieldset {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    margin: 0 0 20px;
    padding: 16px;
  }
  legend {
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  legend .step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: var(--gold);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex: 0 0 auto;
  }
  .section-help {
    color: var(--muted);
    font-size: 14px;
    margin: 4px 0 14px;
  }

  .field { margin-bottom: 16px; }
  .field:last-child { margin-bottom: 0; }
  label.lbl {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
  }
  .req { color: var(--gold-dark); }
  .help {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin: -2px 0 6px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    width: 100%;
    font-size: 16px; /* prevents iOS zoom on focus */
    font-family: inherit;
    color: var(--ink);
    padding: 12px 12px;
    border: 1px solid var(--line);
    border-radius: var(--field-radius);
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
  }
  textarea { min-height: 96px; resize: vertical; }
  input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,148,47,.18);
  }
  input.invalid, textarea.invalid, select.invalid,
  .choice-group.invalid {
    border-color: var(--error);
  }

  .err-msg {
    color: var(--error);
    font-size: 13px;
    margin-top: 6px;
    display: none;
  }
  .err-msg.show { display: block; }

  /* Radio / checkbox groups with large tap targets. */
  .choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--field-radius);
    margin-bottom: 10px;
    cursor: pointer;
  }
  .choice:last-child { margin-bottom: 0; }
  .choice input { margin: 2px 0 0; width: 22px; height: 22px; flex: 0 0 auto; }
  .choice .choice-body { flex: 1 1 auto; }
  .choice .choice-title { font-weight: 600; }
  .choice .choice-price { color: var(--muted); font-weight: 600; }
  .choice.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(184,148,47,.15);
    background: #fffdf6;
  }
  .inline-radios { display: flex; gap: 10px; flex-wrap: wrap; }
  .inline-radios .choice { flex: 1 1 140px; margin-bottom: 0; }

  .note-box {
    background: #fff7e2;
    border: 1px solid #e6d29a;
    border-radius: var(--field-radius);
    padding: 12px 14px;
    font-size: 14px;
    color: #6b5714;
    margin-top: 12px;
  }
  .aside {
    font-size: 14px;
    color: var(--muted);
    margin-top: 12px;
  }
  .aside a, .note-box a { color: var(--gold-dark); }

  .certify.choice { background: #f7f9fc; }

  button.submit {
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: var(--gold);
    border: none;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    margin-top: 4px;
  }
  button.submit:hover { background: var(--gold-dark); }
  button.submit:disabled { opacity: .6; cursor: default; }

  .global-error {
    display: none;
    background: #fdecea;
    border: 1px solid #f3b7b2;
    color: var(--error);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 15px;
  }
  .global-error.show { display: block; }

  /* Honeypot: visually and programmatically hidden from real users. */
  .hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
  }

  /* Confirmation screen. */
  #confirmation { display: none; }
  #confirmation.show { display: block; }
  .confirm-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
    border-radius: 10px;
    padding: 24px 20px;
    margin-top: 20px;
    text-align: center;
  }
  .confirm-card h2 { color: var(--navy); margin: 0 0 8px; }
  .confirm-card .timeline { font-size: 16px; margin: 12px 0; }
  .student-doc {
    display: none;
    text-align: left;
    margin-top: 16px;
  }
  .student-doc.show { display: block; }
