/* ============================================================
   HACKATHON REGISTRATION + MLH requirements
   Own file on purpose: it sits on top of the existing layers and
   does not touch anyone else's stylesheet.
   ============================================================ */

/* ---------- MLH trust badge ----------
   The badge itself is MLH's official embed (fixed, top right). We only
   leave room for it in the nav so it never sits on top of a button. */
@media (min-width: 921px){
  .nav{ padding-right: max(var(--pad), 170px); }
}
@media (max-width: 700px){
  .nav-set.right .cta-sm,
  .nav-set.right .nav-main{ display: none; }   /* the hero carries "Become a partner" */
}

/* ---------- section shell ---------- */
.register{
  position: relative; overflow: hidden;
  padding: clamp(3.5rem,8vh,6rem) var(--pad);
  border-top: 1px solid var(--rule);
  background: var(--lift);
}
.register > *:not(.aura){ position: relative; z-index: 2; }
/* centred like the Partners section */
.register{ text-align: center; }
.register > .tag{ display: inline-flex; }
.register .display{ max-width: 18ch; margin-left: auto; margin-right: auto; }
.register .lede{ max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- the "no free overnight stay" notice ---------- */
.stay-notice{
  display: flex; gap: 1rem; align-items: flex-start; text-align: left;
  margin: 2.2rem auto 0; padding: 1.15rem 1.4rem;
  max-width: 62rem;
  border: 2px solid #ff3d9a; border-radius: 14px;
  background: rgba(255,61,154,.10);
  color: #fff;
}
.stay-notice-ico{
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #ff3d9a; color: #fff; font-weight: 700; font-size: 1.25rem; line-height: 1;
}
.stay-notice h3{
  margin: 0 0 .25rem; font-family: var(--display); font-weight: 700;
  font-size: clamp(1rem,1.9vw,1.3rem); letter-spacing: .02em; text-transform: uppercase;
}
.stay-notice p{ margin: 0; font-weight: 500; font-size: 1rem; line-height: 1.5; color: #fff; }
.stay-inline{
  margin: 1.4rem 0 0; text-align: left; font-weight: 600; font-size: .95rem; color: #ff6fb5;
}

/* ---------- form ---------- */
.reg-form{
  margin: 2.4rem auto 0; max-width: 62rem;
  padding: clamp(1.4rem,3vw,2.4rem);
  border: 1px solid var(--rule); border-radius: 18px;
  background: var(--panel);
  text-align: left;
}
.reg-grid{
  display: grid; gap: 1.2rem 1.4rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.reg-field{ display: flex; flex-direction: column; gap: .45rem; min-width: 0; position: relative; }
.reg-field.wide{ grid-column: 1 / -1; }
.reg-field label{
  font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.reg-field label b{ color: var(--primary); font-weight: 700; }
.reg-field input,
.reg-field select{
  width: 100%; padding: .85rem 1rem;
  font: 400 1rem/1.3 var(--font); color: var(--tertiary);
  background: rgba(122,108,255,.06);
  border: 1px solid rgba(122,108,255,.28); border-radius: 10px;
  transition: border-color .25s ease, background .25s ease;
  appearance: none; -webkit-appearance: none;
}
.reg-field select{
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.reg-field select option{ background: #0C0A16; color: #ECEBF5; }
.reg-field input:focus,
.reg-field select:focus{ outline: none; border-color: var(--primary); background: rgba(122,108,255,.12); }
.reg-field input.bad,
.reg-field select.bad{ border-color: #ff3d9a; }
.reg-hint{ margin: 0; font-size: .8rem; color: var(--muted); }
.reg-err{ margin: 0; min-height: 0; font-size: .8rem; color: #ff6fb5; }

/* school suggestions */
.school-list{
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  margin: .25rem 0 0; padding: .3rem; list-style: none;
  max-height: 15rem; overflow-y: auto;
  background: #0C0A16; border: 1px solid rgba(122,108,255,.4); border-radius: 10px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.8);
}
.school-list[hidden]{ display: none; }
.school-list li{ padding: .55rem .75rem; border-radius: 7px; cursor: pointer; font-size: .95rem; color: var(--tertiary); }
.school-list li[aria-selected="true"],
.school-list li:hover{ background: rgba(122,108,255,.22); }
.school-list li.empty{ cursor: default; color: var(--muted); }

/* MLH disclaimer + checkboxes */
.mlh-block{ margin: 1.8rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.mlh-disclaimer{ margin: 0 0 1.1rem; font-size: .85rem; color: var(--muted); line-height: 1.55; }
.mlh-check{
  display: grid; grid-template-columns: 1.4rem 1fr; gap: .85rem; align-items: start;
  margin: 0 0 .95rem; font-size: .92rem; line-height: 1.55; color: var(--tertiary); font-weight: 300;
}
.mlh-check input{
  width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--primary); cursor: pointer;
}
.mlh-check a{ color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mlh-check a:hover{ color: var(--primary); }
.mlh-check .opt{ color: var(--muted); font-size: .8rem; }

.reg-actions{ margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; text-align: left; }
.reg-status{ margin: 0; font-size: .95rem; color: var(--tertiary); }
.reg-status.is-err{ color: #ff6fb5; }
.reg-status.is-ok{ color: #8be0a4; }

@media (max-width: 700px){
  .reg-grid{ grid-template-columns: 1fr; }
  .stay-notice{ padding: 1rem 1.05rem; }
}

/* ---------- footer links ---------- */
footer .foot-links{ display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
footer .foot-links a{ color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease; }
footer .foot-links a:hover{ color: #fff; border-bottom-color: var(--primary); }

/* balanced line breaks: no single orphan word on the last line of centred paragraphs */
.lede{ text-wrap: balance; }
