/* Team 271 alumni form. Phone first. Colours from the hub style guide (Team 271 brand sheet), contrast checked:
   #272B2D on #FFDA29 10.42, white on #272B2D 14.29, #1B1E20 / #46444C / #7F1F26 / #007A91 on white all >= 5:1.
   Yellow is never text on white. Fonts self-hosted (SIL OFL, fonts/OFL.txt). */

@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/barlow-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/fonts/barlow-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/fonts/barlow-condensed-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap;
  src: url('/fonts/barlow-condensed-800-latin.woff2') format('woff2'); }

:root {
  --dark: #272B2D; --yellow: #FFDA29; --maroon: #7F1F26; --ink: #1B1E20; --muted: #46444C;
  --line: #E5E7EB; --edge: #8D9193; --bg: #F3F4F6; --soft: #FFF4BF; --link: #007A91;
  --head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.45 var(--body); }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--dark); }
:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255, 218, 41, .7); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--dark); padding: 10px 16px;
  font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header band with the yellow accent bar (brand sheet: never skip it on official headers). */
.band { background: var(--dark); color: #fff; border-bottom: 6px solid var(--yellow); }
.band-in { max-width: 760px; margin: 0 auto; padding: 18px 16px; display: flex; gap: 14px; align-items: center; }
.logo { width: 56px; height: 56px; flex: none; }
.eyebrow { margin: 0 0 2px; color: var(--yellow); font: 700 15px/1.2 var(--head); letter-spacing: .06em;
  text-transform: uppercase; }
h1 { margin: 0; font: 800 30px/1.05 var(--head); text-transform: uppercase; letter-spacing: .01em; }
h2 { margin: 0 0 10px; font: 800 24px/1.1 var(--head); text-transform: uppercase; color: var(--dark); }
h2 + p { margin-top: 0; }

.wrap { max-width: 760px; margin: 0 auto; padding: 16px 12px 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; margin: 0 0 16px; }
fieldset.card { min-width: 0; }
.card > legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font: 800 24px/1.1 var(--head);
  text-transform: uppercase; color: var(--dark); }
.card > legend + * { clear: both; }
.num { display: inline-block; min-width: 1.4em; padding: 0 .3em; margin-right: 6px; background: var(--yellow);
  color: var(--dark); border-radius: 6px; text-align: center; }
.opt, .hint { font: 400 16px/1.3 var(--body); text-transform: none; color: var(--muted); }
.hint { display: block; margin-top: 2px; }
.req { font-weight: 400; color: var(--muted); }

.facts { padding-left: 1.1em; margin: 10px 0; }
.facts li { margin: 0 0 8px; }
.note { background: var(--soft); border-left: 5px solid var(--yellow); padding: 10px 12px; border-radius: 0 8px 8px 0; }
.help { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.ref strong { font: 800 26px/1.2 var(--head); letter-spacing: .06em; }

fieldset.sub { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
fieldset.sub > legend { padding: 0; margin: 0 0 6px; font-weight: 700; }
.field { margin: 0 0 14px; }
.field:last-child { margin-bottom: 0; }
label { display: block; font-weight: 700; margin: 0 0 4px; }
input[type=text], input[type=email], select, textarea {
  display: block; width: 100%; min-height: 46px; padding: 10px 12px; font: 400 17px/1.3 var(--body); color: var(--ink);
  background: #fff; border: 1px solid var(--edge); border-radius: 8px; }
textarea { min-height: 96px; resize: vertical; field-sizing: content; overflow-wrap: break-word; }
#quote { min-height: 120px; }
.field > label + .help { margin: 0 0 6px; }
select { appearance: auto; }
[aria-invalid=true] { border: 2px solid var(--maroon); }
.err { margin: 4px 0 0; color: var(--maroon); font-weight: 700; font-size: 15px; }
.err:empty { display: none; }

.checks { display: grid; gap: 2px; margin: 0 0 10px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 8px 4px; margin: 0;
  border-radius: 8px; cursor: pointer; }
.checks label:hover { background: var(--bg); }
.checks input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--dark); }
.perm { border: 1px solid var(--line); }
.perms .checks { gap: 8px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .field { margin-bottom: 0; }
.row2.wide { grid-template-columns: 1fr; margin-top: 14px; }
.money { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.money input { max-width: 14em; }

.fs-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.fs-row:first-child { border-top: 0; padding-top: 0; }
.fs-row .field { margin-bottom: 8px; }
.fs-row .err { grid-column: 1 / -1; }

.btn, .btn-secondary { font: 800 20px/1 var(--head); text-transform: uppercase; letter-spacing: .03em; border-radius: 10px;
  cursor: pointer; padding: 14px 24px; }
.btn { display: block; width: 100%; background: var(--yellow); color: var(--dark); border: 2px solid var(--dark); margin-top: 14px; }
.btn:hover:not(:disabled) { background: #E6C425; }
.btn:disabled { background: var(--line); color: var(--muted); border-color: var(--edge); cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--dark); border: 2px solid var(--dark); font-size: 17px; padding: 10px 16px; }
.status { margin: 10px 0 0; font-weight: 700; }
.form-errors { background: #fff; border: 2px solid var(--maroon); border-radius: 10px; padding: 12px 16px; margin: 0 0 16px;
  color: var(--maroon); font-weight: 700; }
.form-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.cf-turnstile { min-height: 65px; }

/* Spam trap: out of sight and out of the tab order. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { max-width: 760px; margin: 0 auto; padding: 4px 16px 28px; color: var(--muted); font-size: 15px; }

@media (min-width: 600px) {
  .band-in { padding: 22px 20px; }
  .logo { width: 72px; height: 72px; }
  h1 { font-size: 40px; }
  .wrap { padding: 22px 20px 8px; }
  .card { padding: 24px; }
  .row2.wide { grid-template-columns: 1fr 1fr; }
  .fs-row { grid-template-columns: 2fr 1fr; }
  .checks.two, .checks { grid-template-columns: 1fr 1fr; }
  .perms .checks { grid-template-columns: 1fr; }
  .btn { display: inline-block; width: auto; min-width: 16em; }
}
.senior-perm { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }

/* Staying in FIRST (AF3): one tick per row, its follow-up question under it (form.js hides it until ticked). */
.first-item { margin: 0 0 6px; }
.checks.one { grid-template-columns: 1fr !important; margin: 0; }
.follow { margin: 0 0 10px 36px; }
.follow.wide { margin-left: 0; }
.follow textarea, #first_other { min-height: 64px; }
input.short { max-width: 6em; }
