:root {
    --ink: #e7ebf3;
    --muted: #93a1b7;
    --line: #2a3446;
    --line-light: #1c2433;
    --accent: #3b82f6;
    --accent-light: rgba(59, 130, 246, 0.16);
    --bg: #05070a;
    --card: #0d1117;
    --input-bg: #10141d;
    --error: #f87171;
    --radius: 10px;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    /* Extra top padding clears the fixed logo added near the bottom of
       this file, so the card never overlaps it on any page. */
    padding: 112px 16px 40px;
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
  }

  .card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 12px 32px rgba(0,0,0,0.5);
    overflow: hidden;
  }

  .header {
    padding: 36px 40px 28px;
    border-bottom: 1px solid var(--line-light);
    border-top: 4px solid var(--accent);
    background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(59,130,246,0) 70%);
  }

  .header h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .header p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
  }

  form {
    padding: 32px 40px 40px;
  }

  fieldset {
    border: none;
    margin: 0 0 28px;
    padding: 0;
  }

  legend {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 16px;
    padding: 0;
  }

  .row {
    display: flex;
    gap: 16px;
  }

  .row .field { flex: 1; }

  .field {
    margin-bottom: 18px;
  }

  .field:last-child { margin-bottom: 0; }

  label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
  }

  label .req {
    color: var(--error);
    font-weight: 400;
    margin-left: 2px;
  }

  .hint {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 5px;
  }

  .hint-tight {
    margin-top: -2px;
    margin-bottom: 8px;
  }

  .hint-section {
    margin-top: -6px;
    margin-bottom: 16px;
  }

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

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: 100%;
    padding: 11px 13px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
  }

  textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
  }

  .repeat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  .repeat-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .repeat-row .repeat-input {
    flex: 1;
    min-width: 0;
  }

  .award-row-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  .repeat-remove-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--input-bg);
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: border-color 0.15s ease, color 0.15s ease;
  }

  .repeat-remove-btn:hover {
    border-color: var(--error);
    color: var(--error);
  }

  .repeat-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px dashed var(--accent);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .repeat-add-btn:hover {
    background: rgba(59, 130, 246, 0.24);
  }

  .address-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
  }

  .address-grid .field { margin-bottom: 12px; }

  .error-text {
    display: none;
    color: var(--error);
    font-size: 12.5px;
    margin-top: 5px;
  }

  .field.invalid input,
  .field.invalid textarea {
    border-color: var(--error);
  }

  .field.invalid .error-text {
    display: block;
  }

  .submit-row {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line-light);
  }

  button[type="submit"] {
    width: 100%;
    padding: 13px 20px;
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  button[type="submit"]:hover {
    background: #2563eb;
  }

  .submit-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 12px;
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13.5px;
    text-decoration: none;
    margin-bottom: 20px;
  }

  .back-link:hover { color: var(--accent); }

  .step-indicator {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin: 0 0 10px;
  }

  .success-banner {
    display: none;
    margin: 0 40px 24px;
    padding: 14px 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    border-radius: 8px;
    font-size: 14px;
  }

  .notice-banner {
    margin: 0 40px 28px;
    padding: 16px 18px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink);
  }

  .notice-banner p {
    margin: 0 0 8px;
    font-weight: 600;
  }

  .notice-banner ol {
    margin: 0;
    padding-left: 20px;
  }

  .notice-banner li {
    margin-bottom: 6px;
  }

  .notice-banner li:last-child {
    margin-bottom: 0;
  }

  .notice-banner a {
    color: #93c5fd;
  }

  .consent-text {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.6;
    margin: 0 0 14px;
  }

  .checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    cursor: pointer;
  }

  .checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
  }

  .field.invalid .checkbox-field input[type="checkbox"] {
    outline: 2px solid var(--error);
    outline-offset: 2px;
    border-radius: 3px;
  }

  @media (max-width: 520px) {
    body { padding-top: 80px; }
    form { padding: 24px 20px 32px; }
    .header { padding: 28px 20px 22px; }
    .row { flex-direction: column; gap: 0; }
    .address-grid { grid-template-columns: 1fr; }
    .award-row-inputs { grid-template-columns: 1fr; }
    .success-banner { margin: 0 20px 20px; }
    .notice-banner { margin: 0 20px 24px; }
  }

  /* ---- Site logo, injected on every page via body::before ---- */
  /* Added here (instead of editing every page's HTML) so it appears
     on every page that already links to this stylesheet, including
     any pages added later. Purely decorative -- pointer-events: none
     so it never blocks clicks on anything beneath it. */
  body {
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    top: 16px;
    right: 16px;
    box-sizing: border-box;
    width: 337px;
    height: 60px;
    padding: 10px 14px;
    background-color: #fff;
    background-image: url("/PBSFA/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-origin: content-box;
    background-clip: padding-box;
    border: 2px solid var(--accent);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1000;
  }

  @media (max-width: 520px) {
    body::before {
      top: 10px;
      left: 10px;
      width: 152px;
      height: 38px;
      padding: 6px 10px;
    }
  }
