/*
 * forms.kidsnightonbroadway.com
 * Standalone stylesheet; not part of the Toolbox theme system. Colors, the
 * Rubik typeface and the pill buttons follow www.kidsnightonbroadway.com.
 * Rubik is served from this site (fonts/, SIL Open Font License), so the page
 * still loads nothing from a third party.
 */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/rubik-latin.woff2") format("woff2");
}

:root {
  --pink: #da1b55;
  --pink-dark: #9a002f;
  --yellow: #f8dd2e;
  --ink: #1c1c1c;
  --bg: #f5f5f5;
  --card: #ffffff;
  --fg: var(--ink);
  --fg-muted: #616161;
  --line: #e0e0e0;
  --accent: var(--pink);
  --accent-hover: var(--pink-dark);
  --ok: #1e7d46;
  --ok-bg: #e6f4ec;
  --warn: #8a5300;
  --warn-bg: #fdf1dc;
  --error: #b3261e;
  --error-bg: #fbe9e7;
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}
body.busy { cursor: progress; }
body.busy button { pointer-events: none; opacity: 0.6; }

.site-header { background: #fff; text-align: center; padding: 20px 20px 16px; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 116px; width: auto; }
.strip { margin: 0; background: var(--yellow); color: var(--ink); text-align: center; padding: 14px 20px 12px; font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer { max-width: 720px; margin: 0 auto; padding: 8px 20px 40px; color: var(--fg-muted); font-size: 13px; text-align: center; }

.page { max-width: 720px; margin: 0 auto; padding: 28px 20px 24px; }
h1 { font-size: 32px; font-weight: 800; line-height: 1.15; margin: 0 0 14px; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--fg-muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 18px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2 { margin: 0 0 6px; }

.dates { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 14px 0 6px; }
.dates dt { color: var(--fg-muted); }
.dates dd { margin: 0; font-weight: 600; }

.badge { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: #ececec; color: var(--fg-muted); }
.badge.complete { background: var(--ok-bg); color: var(--ok); }
.badge.in_progress { background: var(--warn-bg); color: var(--warn); }

.notice { padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.error { background: var(--error-bg); color: var(--error); }
.closed { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 8px; }
.closed p:last-child { margin-bottom: 0; }

.answer { font-weight: 600; }
.answer.in { color: var(--ok); }

.field { display: block; margin: 14px 0; }
.label { display: block; font-weight: 600; margin: 0 0 4px; }
.due { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.due.past { color: var(--warn); }
.help, .help-text { color: var(--fg-muted); font-size: 14px; margin: 0 0 6px; }
.error { color: var(--error); font-size: 14px; margin: 4px 0 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }

input[type="text"], input[type="email"], input[type="url"], textarea, select {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:disabled, textarea:disabled, select:disabled { background: #f1f1f1; color: var(--fg-muted); }
input[type="radio"] { accent-color: var(--pink); }

.choices { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.choices.row { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
.choice { display: flex; align-items: baseline; gap: 8px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }

.btn { font: inherit; font-weight: 800; font-size: 13px; letter-spacing: 0.1em; line-height: 1; text-transform: uppercase; padding: 14px 22px 12px; border-radius: 30px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.link { border: 0; border-radius: 0; background: none; padding: 0; color: var(--accent); font-size: inherit; font-weight: 600; letter-spacing: 0; line-height: inherit; text-transform: none; text-decoration: underline; text-underline-offset: 2px; }
.btn.link:hover { background: none; color: var(--accent-hover); }

.delegate { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; font-size: 15px; }
.delegate summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.delegated { margin: 0 0 8px; }

.contact { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.contact p { margin: 0 0 4px; }
.contact-extra .field { margin: 8px 0; }

@media (max-width: 520px) {
  .logo img { height: 84px; }
  h1 { font-size: 26px; }
  .dates { grid-template-columns: 1fr; }
  .dates dd { margin-bottom: 6px; }
  .inline { flex-direction: column; }
}
