/* The application form in the website's own look: Season Serif headings,
   Roobert text, Ignite yellow as the accent, square corners. Everything is
   scoped to .idt-apply so the theme's Bootstrap styles don't leak in or out.
   Adapted from ignite-tlv-apply/public/styles.css. */

.idt-apply {
  --grey: #A7A9AC;
  --yellow: #FFEB6C;
  --amber: #FFCA2C;
  --ink: #2B2E34;
  --slate: #525252;
  --white: #FFFFFF;
  --paper: #F3F3F4;
  --rule: #C9CACC;
  --error: #B3261E;
  --display: SeasonSerif, "Season Serif", "Palatino Linotype", Georgia, serif;
  --text: Roobert, "Trebuchet MS", Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.5 var(--text);
}
.idt-apply * { box-sizing: border-box; }
.idt-apply [hidden] { display: none !important; }
.idt-apply h1, .idt-apply h2, .idt-apply h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; color: var(--ink); }
.idt-apply a { color: var(--ink); text-underline-offset: 3px; }
.idt-apply :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }

.idt-apply .wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

.idt-apply .label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.idt-apply .label::before { content: ''; display: block; width: 32px; height: 6px; background: var(--yellow); margin-bottom: 10px; }
.idt-apply .on-dark .label { color: var(--white); }

.idt-apply .hero { background: var(--grey); padding: clamp(40px, 6vw, 72px) 0 48px; }
.idt-apply .hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 18ch; }
.idt-apply .hero p.lead { font-size: 20px; max-width: 50ch; margin: 18px 0 0; }

.idt-apply .dates { background: var(--ink); color: var(--white); padding: 28px 0; }
.idt-apply .dates ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 24px; }
.idt-apply .dates li span { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.idt-apply .dates li b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--yellow); margin-top: 4px; }
.idt-apply .dates .closes { margin: 20px 0 0; color: var(--white); }
.idt-apply .dates .closes b { color: var(--yellow); }

.idt-apply form { padding: 8px 0 64px; }
.idt-apply fieldset { border: 0; margin: 0; padding: 40px 0 8px; border-bottom: 1px solid var(--rule); min-width: 0; }
.idt-apply fieldset:last-of-type { border-bottom: 0; }
.idt-apply legend { padding: 0; width: 100%; float: none; font-size: inherit; margin: 0; }
.idt-apply legend h2 { font-size: 34px; }
.idt-apply .intro { margin: 8px 0 20px; max-width: 60ch; }

.idt-apply .field { margin: 0 0 22px; }
.idt-apply .field > label, .idt-apply .field > .q { display: block; font-weight: 700; margin-bottom: 6px; }
.idt-apply .req { font-weight: 400; font-size: 14px; }
.idt-apply .hint { display: block; font-size: 15px; margin: -2px 0 8px; color: var(--slate); font-weight: 400; }
.idt-apply .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .idt-apply .row { grid-template-columns: 1fr; } }

.idt-apply input[type=text], .idt-apply input[type=email], .idt-apply input[type=tel], .idt-apply input[type=url],
.idt-apply input[type=number], .idt-apply select, .idt-apply textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--ink); border-radius: 0; padding: 11px 12px; min-height: 48px;
}
.idt-apply textarea { min-height: 96px; resize: vertical; }
.idt-apply select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.idt-apply .count { display: block; text-align: right; font-size: 13px; color: var(--slate); margin-top: 4px; font-variant-numeric: tabular-nums; }
.idt-apply .count.over { color: var(--error); }

.idt-apply .choices { display: grid; gap: 8px; }
.idt-apply .choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule); background: var(--white); cursor: pointer; font-weight: 400; margin: 0; }
.idt-apply .choice:hover { border-color: var(--ink); }
.idt-apply .choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.idt-apply .choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 6px 0 0 var(--yellow); }
.idt-apply .choice small { display: block; font-size: 14px; color: var(--slate); }

.idt-apply .programmes .choice { padding: 18px; }
.idt-apply .programmes .choice b { font-family: var(--display); font-weight: 400; font-size: 24px; display: block; margin-bottom: 4px; }

.idt-apply .founder { border: 1px solid var(--rule); padding: 20px 18px 4px; margin-bottom: 16px; background: var(--paper); }
.idt-apply .founder-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.idt-apply .founder-head h3 { font-size: 22px; }

.idt-apply button { font: inherit; border-radius: 0; cursor: pointer; }
.idt-apply .btn { background: var(--yellow); color: #000; border: 0; font-weight: 700; padding: 14px 28px; min-height: 52px; font-size: 18px; }
.idt-apply .btn:hover { background: var(--amber); }
.idt-apply .btn:disabled { opacity: .6; cursor: wait; }
.idt-apply .btn-line { background: var(--white); color: var(--ink); border: 1px solid var(--ink); padding: 10px 18px; min-height: 44px; font-weight: 700; }
.idt-apply .btn-line:hover { background: var(--paper); }
.idt-apply .link-btn { background: none; border: 0; padding: 0; text-decoration: underline; font-size: 15px; color: var(--ink); }

.idt-apply .deck-upload { margin-bottom: 14px; }
.idt-apply .deck-status { font-size: 15px; margin-top: 8px; }
.idt-apply .deck-status.ok::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--ink); margin-right: 8px; }

.idt-apply .notice { background: var(--paper); border-left: 6px solid var(--yellow); padding: 14px 16px; margin: 0 0 20px; font-size: 15px; }
.idt-apply .closed-note { margin: 28px 0 0; font-size: 16px; }

.idt-apply .invalid input, .idt-apply .invalid select, .idt-apply .invalid textarea, .idt-apply .invalid .choice { border-color: var(--error); }
.idt-apply .err { display: block; color: var(--error); font-size: 15px; margin-top: 6px; }
.idt-apply .summary { border: 2px solid var(--error); padding: 14px 16px; margin: 24px 0 0; background: var(--white); }
.idt-apply .summary ul { margin: 8px 0 0; padding-left: 20px; }

.idt-apply .submit-row { padding-top: 32px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.idt-apply .done { padding: 64px 0 96px; }
.idt-apply .done h2 { font-size: 44px; margin-bottom: 16px; }
.idt-apply .done p { max-width: 56ch; }

.idt-apply .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.idt-apply .ft { margin-top: 28px; }
@media (max-width: 640px) { .idt-apply .ft { margin-top: 0; } }
