/* TU house style (torah-umesorah-design skill), institutional register,
   in the Diverse Learners Initiative palette: DLI navy anchor, gold as the one
   accent (used only on navy or as a fill under navy type — never as text on
   white). Structure matches the Sponsor-a-Rebbi and CONV26 registration sites. */

:root { color-scheme: light;
  --navy: #132E41;            /* anchor — the DLI logo's own ground */
  --navy-2: #0B1F2E;          /* footer / pressed */
  --accent: #F9C437;          /* the single accent: DLI gold */
  --accent-2: #E5B02A;        /* hover on gold fills */
  --pale: #B9C9D6;            /* tints, hairlines, lede on navy */
  --ground: #EDF1F4;          /* page ground */
  --tint: #F4F7F9;            /* soft panel fill on white cards */
  --ink: #14213A;
  --ink-soft: #4A5A70;
  --line: #D3DCE3;
  --field-border: #8798A8;
  --error: #B3261E;
  --error-bg: #FDECEA;
  --radius: 12px;
  --font: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-variant-numeric: lining-nums; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--font); }
.wrap { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
a { color: var(--navy); }

.test-banner {
  background: var(--error); color: #fff; text-align: center;
  font-weight: 700; letter-spacing: .05em; padding: .4rem;
}
/* test-mode only: auto-fill buttons, as the old form had */
.test-tools { display: inline-flex; gap: .5rem; margin-left: 1rem; vertical-align: middle; flex-wrap: wrap; }
.test-tools button {
  font: 600 .78rem var(--font); letter-spacing: .04em; text-transform: none;
  color: var(--error); background: #fff; border: none; border-radius: 999px; padding: .2rem .7rem; cursor: pointer;
}
.test-tools button:hover { background: #FDECEA; }

/* ---- header: navy cover, DLI lockup + TU primary logo, thin-caps title ---- */
.site-header {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: 1.2rem 0 2rem; border-bottom: 3px solid var(--accent);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.dli-logo { height: 7.8rem; width: auto; display: block; margin: -.6rem 0 -.4rem -1.4rem; }
.tu-logo { height: 2.6rem; width: auto; display: block; opacity: .95; }
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 600; color: var(--pale); margin: 0 0 .5rem;
}
/* thin caps, one accent phrase, hairline rule beneath */
.site-header h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem); line-height: 1.02;
  font-weight: 300; letter-spacing: .06em; text-transform: uppercase;
  margin: 0 0 .7rem; padding-bottom: .6rem; border-bottom: 1px solid var(--accent);
}
.site-header h1 .accent { color: var(--accent); font-weight: 700; letter-spacing: .02em; }
.subtitle {
  margin: 0 0 .9rem; text-transform: uppercase; letter-spacing: .12em;
  font-size: .9rem; font-weight: 600; color: #fff;
}
.lede { max-width: 34rem; margin: 0; color: var(--pale); font-size: 1.05rem; }
.lede strong { color: #fff; font-weight: 600; }
.header-mark {
  position: absolute; right: -2rem; bottom: -3rem; width: 16rem; opacity: .07; pointer-events: none;
}
@media (max-width: 700px) { .header-mark { display: none; } }

main { padding: 1.5rem 0 3rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-top: 1.25rem;
}
/* navy bar section headers: white letterspaced caps, gold step badge with navy numeral */
.card h2 {
  display: flex; align-items: center; gap: .7rem;
  background: var(--navy); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem .8rem; border-radius: 6px; line-height: 1.3; margin: 0 0 1.1rem;
}
.step {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent); color: var(--navy); font-size: .82rem; font-weight: 800; letter-spacing: 0;
}
.card h3, .inline-h3 {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 .7rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line);
}
.hint { margin: -0.4rem 0 1rem; color: var(--ink-soft); font-size: .95rem; }
.inline-h3.mt { margin-top: 1.4rem; }

/* ---- "course includes": the one number in the piece is shown, not stated ---- */
.includes {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem 2rem; align-items: center;
  margin-top: -2.4rem; position: relative; padding: 1.25rem 1.5rem;
}
.includes-stat { display: flex; align-items: center; gap: .7rem; }
.stat-figure { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.stat-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.25; }
.includes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.includes-list li {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--pale); border-radius: 999px; padding: .28rem .75rem; color: var(--navy);
}
.includes-price { text-align: right; border-left: 1px solid var(--line); padding-left: 1.5rem; }
.price-figure { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.price-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: .2rem; }
.price-note { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }
.welcome { margin: 1.25rem 0 0; color: var(--ink); }

/* price line inside the payment card */
.price-line { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin: 0 0 1.1rem; }
.price-line .price-figure { display: inline; font-size: 2rem; }
.price-line .price-label { display: inline; margin: 0; }

/* form grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.field.span2 { grid-column: span 2; }
.field label, .field-label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .25rem; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: .55rem .7rem; font: inherit; color: var(--ink);
  border: 1px solid var(--field-border); border-radius: 6px; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(249,196,55,.45);
}
.name-row { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 1rem; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.two-up label, .trainee-row label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .25rem; color: var(--navy); }
.two-up input, .trainee-row input {
  width: 100%; padding: .55rem .7rem; font: inherit; border: 1px solid var(--field-border); border-radius: 6px;
}
.trainee-row { display: grid; grid-template-columns: 1fr 160px; gap: 1rem; margin-bottom: .8rem; }

/* radio / checkbox rows */
.choice-row { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.choice-stack { display: grid; gap: .45rem; }
.choice { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 500; }
.choice input { accent-color: var(--navy); width: 1.05rem; height: 1.05rem; margin: 0; }

/* contained sub-panels: flat tint, nothing under the copy */
.subpanel {
  background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; margin-top: .25rem;
}
.subpanel p { margin: 0 0 .7rem; font-size: .95rem; }
.subpanel p:last-child { margin-bottom: 0; }
.note { font-weight: 600; color: var(--navy); margin: .25rem 0 1rem; }
.cohort-note {
  margin-top: 1.1rem; padding: .9rem 1.1rem; border-radius: 8px;
  background: var(--tint); border-left: 4px solid var(--accent); color: var(--ink);
}
#contactFields { margin: 1rem 0 .5rem; }
#cardBlock { margin-top: 1.25rem; }
.secure-note { color: var(--ink-soft); font-size: .85rem; margin: 1rem 0 0; }
#hostedCardForm, #hostedCardForm iframe { height: 106px !important; }

.agree-card { padding: 1rem 1.5rem; }
.agree { align-items: flex-start; font-weight: 600; color: var(--navy); }
.agree input { margin-top: .2rem; }

.form-error {
  margin-top: 1rem; padding: .8rem 1rem; border-radius: 8px;
  background: var(--error-bg); color: var(--error); border: 1px solid #F2B8B5; font-weight: 600;
}

/* gold CTA with navy type, as on the flyer */
.submit-btn {
  display: block; width: 100%; margin-top: 1.25rem; padding: 1rem;
  font: 800 1.05rem var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); background: var(--accent);
  border: none; border-radius: var(--radius); cursor: pointer;
}
.submit-btn:hover { background: var(--accent-2); }
.submit-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.submit-btn:disabled { opacity: .6; cursor: wait; }
.submit-total { font-weight: 600; text-transform: none; letter-spacing: 0; }

/* confirmation */
.confirmation { text-align: center; }
.confirmation h2 { justify-content: center; }
.conf-number { font-size: 1.15rem; }
.conf-number strong { color: var(--navy); font-weight: 800; letter-spacing: .04em; }

/* footer: book mark above the contact block */
.site-footer {
  background: var(--navy-2); color: var(--pale); text-align: center;
  padding: 1.5rem 0 1.6rem; font-size: .85rem; line-height: 1.8;
}
.footer-mark { height: 2rem; width: auto; display: block; margin: 0 auto .6rem; opacity: .9; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .includes { grid-template-columns: 1fr; margin-top: 1.25rem; text-align: left; }
  .includes-price { text-align: left; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .field.span2 { grid-column: span 1; }
  .name-row { grid-template-columns: 1fr 1fr; }
  .name-row div:first-child { grid-column: span 2; max-width: 170px; }
  .trainee-row { grid-template-columns: 1fr; }
  .dli-logo { height: 4.8rem; margin-left: -.8rem; }
  .tu-logo { height: 2.1rem; }
}
