/* Sacred Heart College — application intake
   Restrained institutional identity: parchment paper, ink text, a single
   maroon accent, serif display headings. The numbered section chips are the
   signature device — the form is a genuine ordered sequence, so numbering
   carries real meaning rather than decoration. */

:root {
  --paper:   #f7f4ef;
  --card:    #ffffff;
  --ink:     #1c1a17;
  --ink-soft:#5b554d;
  --line:    #e2dcd2;
  --maroon:  #7a1f2b;   /* single accent */
  --maroon-d:#5e1621;
  --gold:    #a98b53;
  --error:   #b3261e;
  --ok:      #2f6b3a;
  --radius:  10px;
  --shadow:  0 1px 2px rgba(28,26,23,.05), 0 8px 24px rgba(28,26,23,.05);
  --serif:   Georgia, 'Times New Roman', serif;
  --sans:    system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
.wrap { width: min(980px, 92vw); margin-inline: auto; }

/* ---- masthead ---------------------------------------------------------- */
.masthead {
  background: var(--maroon);
  color: #f6ece6;
  padding: 2.4rem 0 2rem;
  border-bottom: 4px solid var(--gold);
}
.masthead .eyebrow {
  margin: 0 0 .3rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  color: #e7c9b7;
}
.masthead h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  margin: 0 0 .6rem;
  letter-spacing: .01em;
}
.masthead .lede { margin: 0; max-width: 62ch; color: #f0ded3; }
.masthead .lede strong { color: #fff; }

/* ---- cards / sections -------------------------------------------------- */
main { padding: 2rem 0 4rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.7rem;
  margin-bottom: 1.4rem;
}
.card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.card h2 .num {
  display: inline-grid;
  place-items: center;
  width: 1.8rem; height: 1.8rem;
  background: var(--maroon);
  color: #fff;
  border-radius: 50%;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  flex: none;
}
.card h2 .opt { font-family: var(--sans); font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.section-note { margin: -.4rem 0 1rem; color: var(--ink-soft); font-size: .88rem; }

/* ---- fields ------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.3rem;
}
.fld { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.fld-wide { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 600; color: var(--ink); }
label abbr { color: var(--maroon); text-decoration: none; }
.input, .input-file {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .65rem;
  width: 100%;
}
textarea.input { resize: vertical; }
.input:focus, .input-file:focus, .check input:focus {
  outline: 2px solid var(--maroon);
  outline-offset: 1px;
  border-color: var(--maroon);
}
.input.is-invalid { border-color: var(--error); background: #fdf5f4; }
.hint { font-size: .74rem; color: var(--ink-soft); }
.field-error { color: var(--error); font-size: .76rem; }

/* ---- declaration + checkbox ------------------------------------------- */
.declare { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.declare p { font-size: .86rem; color: var(--ink-soft); }
.check {
  display: flex; align-items: flex-start; gap: .55rem;
  font-weight: 600; font-size: .9rem; cursor: pointer;
}
.check.is-invalid { color: var(--error); }
.check input { margin-top: .18rem; }

/* ---- submit bar -------------------------------------------------------- */
.submit-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.submit-bar p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .9rem; }

.btn {
  display: inline-block;
  font: inherit; font-weight: 600;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .7rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-d); }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.02rem; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }

/* ---- alerts ------------------------------------------------------------ */
.alert { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.alert-error { background: #fdecea; border: 1px solid #f3c6c1; color: var(--error); }
.alert-error ul { margin: .5rem 0 0; padding-left: 1.1rem; }

/* ---- honeypot ---------------------------------------------------------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer ------------------------------------------------------------ */
.foot { padding: 1.5rem 0 3rem; color: var(--ink-soft); font-size: .8rem; }

/* ---- redirect / status pages ------------------------------------------ */
.redirect-page { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
.redirect-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--maroon);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem; max-width: 520px; text-align: center;
}
.redirect-card h1 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 .8rem; }
.redirect-card .muted { color: var(--ink-soft); font-size: .85rem; }
.redirect-card.status-done   { border-top-color: var(--ok); }
.redirect-card.status-failed { border-top-color: var(--error); }
.redirect-card .btn { margin-top: 1rem; }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
