/* The song request pages (songs/index.php and songs/thanks.php). Loaded after the main site's styles.css
   and santa.css and the Santa page's public.css, which supply the header, footer, banner, fonts, the
   gold buttons (.s-btn) and the search suggestions (.s-suggest). Everything new starts with "q-". */

#santa-songs [hidden] { display: none !important; }
#santa-songs .content-section { scroll-margin-top: 72px; }
#santa-songs .content-section h2 {
  font-family: var(--s-heading); color: var(--s-ink); font-size: 1.5rem; font-size: clamp(1.25rem, 3.6vw, 1.8rem);
}
#santa-songs .content-wrapper { max-width: 860px; }
.q-needs-js { display: none; }
.q-js .q-needs-js { display: block; }
.q-js .q-plain { display: none; }

/* ---- the top: a dark panel with snow, hung with fairy lights ---- */
#santa-songs .q-top { padding: 30px 20px 10px; background: #fff; }
.q-hero {
  background: linear-gradient(rgba(29, 29, 26, 0.62), rgba(29, 29, 26, 0.62)), #1d1d1a url("../img/header-snow.svg") center top / 480px 96px repeat; color: #fff; border-radius: 14px 14px 0 0;
  padding: 28px 28px 26px; border-bottom: 6px solid var(--s-gold); text-align: left;
}
#santa-songs .q-hero h2 { color: #fff; text-align: left; margin-bottom: 10px; font-size: clamp(1.4rem, 4.6vw, 2.1rem); line-height: 1.15; }
.q-hero p { font-size: 1.06rem !important; margin-bottom: 14px !important; color: #f4f1ea; }
.q-hero a { color: var(--s-gold); }
.q-hero-small { font-size: 0.95rem !important; margin-bottom: 0 !important; color: #d9d5cb !important; }
.q-lights { height: 18px; background: url("../img/header-lights.svg") left top / 240px 18px repeat-x; }
.q-steps { list-style: none; display: flex; flex-wrap: wrap; margin: 4px -6px 14px; padding: 0; }
.q-steps li {
  display: flex; align-items: center; margin: 0 6px 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); font-weight: 700;
}
.q-steps span, .q-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--s-red); color: #fff; font-family: var(--s-heading); font-size: 0.95rem; margin-right: 10px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.q-num { width: 38px; height: 38px; font-size: 1.1rem; vertical-align: middle; margin-right: 12px; }
.q-steps li:nth-child(2) span { background: var(--s-green); }
.q-steps li:nth-child(3) span { background: var(--s-gold); color: var(--s-ink); }

/* ---- the three steps ---- */
#santa-songs .q-step { padding-top: 34px; padding-bottom: 34px; }
#santa-songs .q-step h2 { text-align: left; margin-bottom: 14px; }
#santa-songs .q-step .section-intro { text-align: left; margin: 0 0 14px; max-width: none; }
#q-song .q-num { background: var(--s-green); }
#q-give .q-num { background: var(--s-gold); color: var(--s-ink); }
#santa-songs #q-road { z-index: 20; }            /* its list of suggestions hangs down over the next section */

.q-combo { position: relative; max-width: 620px; }
#q-road-q, #q-song-q, #q-road-select, #q-other {
  width: 100%; font-size: 1.1rem; padding: 13px 14px; border: 2px solid var(--s-line); border-radius: 8px; background: #fff; color: var(--s-ink);
  -webkit-appearance: none; appearance: none; font-family: inherit;
}
#q-road-select { max-width: 620px; background-image: linear-gradient(45deg, transparent 50%, #55554f 50%), linear-gradient(135deg, #55554f 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.q-plain label { display: block; font-weight: 700; margin-bottom: 6px; text-align: left; }
#q-road-q:focus-visible, #q-song-q:focus-visible, #q-road-select:focus-visible, #q-other:focus-visible, .q-song input:focus-visible,
.q-listen:focus-visible, .q-amount input:focus-visible + span, .q-agree input:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 2px; }

.q-roadinfo { max-width: 620px; margin-top: 14px; }
.q-roadcard {
  background: #fff; border: 1px solid var(--s-line); border-left: 8px solid var(--s-red); border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(29, 29, 26, 0.06); text-align: left;
}
.q-roadcard h3 { font-family: var(--s-heading); font-size: 1.15rem; color: var(--s-ink); margin-bottom: 6px; }
.q-roadcard p { font-size: 1rem !important; margin-bottom: 10px !important; }
.q-roadcard .q-when { font-size: 1.08rem !important; }
.q-roadcard > :last-child { margin-bottom: 0 !important; }
.q-gone { background: #fbe6e3; border-radius: 8px; padding: 10px 12px; }
.q-chart-title { font-weight: 700; margin: 14px 0 6px !important; }
.q-chart { list-style: none; counter-reset: q; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--s-line); }
.q-chart li { counter-increment: q; display: flex; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid var(--s-line); }
.q-chart li::before {
  content: counter(q); flex: none; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--s-paper);
  font-weight: 700; font-size: 0.85rem; text-align: center; line-height: 26px; color: var(--s-ink);
}
.q-chart li:first-child::before { background: var(--s-gold); }
.q-chart strong { flex: 1; min-width: 0; }
.q-chart span { flex: none; margin-left: 10px; color: var(--s-soft); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.q-tip, .q-first { color: var(--s-soft); font-size: 0.95rem !important; }
.q-miss { max-width: 620px; margin-top: 14px; font-size: 0.95rem !important; color: var(--s-soft); text-align: left; }

/* ---- the songs ---- */
.q-filter { max-width: 620px; margin-bottom: 12px; }
.q-songs {
  list-style: none; margin: 0; padding: 0; background: #fff; border: 2px solid var(--s-line); border-radius: 12px; max-height: 460px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; text-align: left;
}
/* A heading in the list of songs ("Christmas Classics"). It stays at the top of the box while its songs scroll under it. */
.q-cat {
  position: sticky; top: 0; z-index: 1; padding: 7px 14px; background: var(--s-paper); border-bottom: 1px solid var(--s-line);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s-soft);
}
.q-song { display: flex; align-items: stretch; border-bottom: 1px solid var(--s-line); }
.q-song:last-child { border-bottom: 0; }
.q-song label { flex: 1; min-width: 0; display: flex; align-items: center; padding: 11px 8px 11px 14px; cursor: pointer; margin: 0; }
.q-song input { flex: none; width: 22px; height: 22px; margin: 0 12px 0 0; accent-color: var(--s-red); }
.q-song-words { flex: 1; min-width: 0; }
.q-song-words strong { display: block; font-size: 1.02rem; line-height: 1.25; color: var(--s-ink); }
.q-song-words span { display: block; font-size: 0.88rem; color: var(--s-soft); }
.q-song.is-picked { background: #fff3dc; box-shadow: inset 6px 0 0 var(--s-gold); }
.q-song:hover { background: var(--s-paper); }
.q-song.is-picked:hover { background: #ffeecb; }
.q-badge {
  flex: none; margin-left: 8px; background: var(--s-green); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 0.8rem; font-weight: 700;
  white-space: nowrap;
}
.q-listen {
  flex: none; display: flex; align-items: center; padding: 0 14px; color: var(--s-red); font-weight: 700; font-size: 0.9rem; text-decoration: none;
  border-left: 1px solid var(--s-line); white-space: nowrap;
}
.q-listen i { margin-right: 6px; font-size: 0.8rem; }
.q-listen:hover { background: #fbe6e3; }
.q-none { color: var(--s-soft); text-align: left; margin-top: 10px; }

/* ---- "Song not listed?": a suggestion to the organiser ---- */
/* closed, it is one small line under the songs; it opens into a box when clicked */
.q-suggest { margin-top: 8px; text-align: left; }
.q-suggest summary { cursor: pointer; font-size: 0.88rem; color: var(--s-soft); text-decoration: underline; list-style: none; display: inline-block; }
.q-suggest summary::-webkit-details-marker { display: none; }
.q-suggest summary:hover { color: var(--s-red); }
.q-suggest[open] { border: 1px dashed #b9b5aa; border-radius: 10px; padding: 10px 14px; background: #fff; margin-top: 12px; }
.q-suggest[open] summary { font-weight: 700; color: var(--s-red); text-decoration: none; font-size: 0.95rem; }
.q-suggest-body { padding-top: 8px; max-width: 460px; }
.q-suggest p { font-size: 0.95rem !important; color: var(--s-soft); margin-bottom: 8px !important; }
.q-suggest label { display: block; font-weight: 700; font-size: 0.95rem; margin: 8px 0 4px; }
.q-suggest input[type="text"] { width: 100%; font-size: 1.05rem; padding: 10px 12px; border: 2px solid var(--s-line); border-radius: 8px; font-family: inherit; }
.q-suggest-go { display: flex; flex-wrap: wrap; align-items: center; margin: 12px 0 2px !important; }
.q-suggest-go span { margin-left: 12px; color: var(--s-ink); font-weight: 700; }
.q-box.is-chosen .q-suggest { display: none; }

/* ---- the Scrooge option: a request for silence, under the songs ---- */
.q-or { font-weight: 700; font-size: 1.05rem !important; color: var(--s-ink); text-align: left; margin: 22px 0 8px !important; }
.q-song.q-scrooge {
  background: linear-gradient(rgba(29, 29, 26, 0.62), rgba(29, 29, 26, 0.62)), #1d1d1a url("../img/header-snow.svg") center top / 480px 96px repeat; color: #fff; border: 0; border-radius: 12px;
  border-left: 8px solid var(--s-green); text-align: left;
}
.q-scrooge label { padding: 16px 16px 16px 14px; }
.q-scrooge input { accent-color: var(--s-gold); }
.q-scrooge-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 12px;
  border-radius: 50%; background: var(--s-green); color: #fff; font-size: 1rem; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.q-scrooge .q-song-words strong { color: #fff; font-size: 1.1rem; }
.q-scrooge .q-song-words span { color: #e4e0d6; font-size: 0.94rem; line-height: 1.45; margin-top: 4px; }
.q-song.q-scrooge:hover { background-color: #2b2b27; }
.q-song.q-scrooge.is-picked, .q-song.q-scrooge.is-picked:hover { background-color: #1d1d1a; border-left-color: var(--s-gold); box-shadow: 0 0 0 3px var(--s-gold); }
.q-scrooge.is-picked .q-scrooge-icon { background: var(--s-gold); color: var(--s-ink); }
.q-scrooge .q-badge { background: var(--s-gold); color: var(--s-ink); }
.q-chart .q-hush i { color: var(--s-green); margin-right: 4px; font-size: 0.9em; }

/* ---- the donation ---- */
#santa-songs #q-give .content-wrapper > * { text-align: left; }
.q-amounts { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; }
.q-amounts legend { font-weight: 700; margin-bottom: 10px; padding: 0; font-size: 1.05rem; }
.q-amount { position: relative; margin: 0 10px 10px 0; cursor: pointer; }
.q-amount input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.q-amount span {
  display: block; min-width: 76px; text-align: center; padding: 13px 16px; border: 2px solid var(--s-line); border-radius: 10px; background: #fff;
  font-weight: 700; font-size: 1.15rem; color: var(--s-ink);
}
.q-amount input:checked + span { background: var(--s-ink); border-color: var(--s-ink); color: #fff; box-shadow: inset 0 -4px 0 var(--s-gold); }
.q-other { display: block; flex-basis: 100%; max-width: 260px; margin-bottom: 10px; }
.q-js .q-other { display: none; }
.q-js .q-amounts.is-other .q-other { display: block; }
.q-other label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.q-pound { display: flex; align-items: center; font-weight: 700; font-size: 1.2rem; }
.q-pound input { margin-left: 8px; }
.q-vote { color: var(--s-soft); font-size: 0.95rem !important; margin-bottom: 18px !important; }

.q-summary {
  background: #1d1d1a; color: #fff; border-radius: 12px; padding: 16px 18px; border-left: 8px solid var(--s-gold); margin-bottom: 16px;
}
.q-summary p { margin-bottom: 8px !important; font-size: 1.05rem !important; }
.q-summary p:last-child { margin-bottom: 0 !important; }
.q-message { color: #d9d5cb; font-size: 0.92rem !important; }
.q-message strong { display: inline-block; margin-top: 4px; color: #fff; font-size: 1.08rem; background: rgba(255, 255, 255, 0.1); border-radius: 6px; padding: 6px 10px; }

.q-public { background: #fdecea; border: 2px solid #c0392b; border-left: 10px solid #c0392b; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.q-public h3 { font-family: "Open Sans", sans-serif; text-transform: none; letter-spacing: 0; font-size: 1.15rem; font-weight: 800; color: #8f2318; margin-bottom: 6px; }
.q-public h3 i { margin-right: 6px; }
.q-public p { margin: 0 0 6px !important; font-size: 0.98rem !important; color: #3a1410; }
.q-public p:last-child { margin-bottom: 0 !important; }
.q-public .q-public-big { font-size: 1.08rem !important; }

.q-agree { display: flex; align-items: flex-start; cursor: pointer; margin: 0 0 18px; font-weight: 400; }
.q-agree input { flex: none; width: 24px; height: 24px; margin: 2px 12px 0 0; accent-color: var(--s-green); }
.q-agree span { font-size: 1rem; line-height: 1.5; }
.q-go { margin-bottom: 10px !important; }
.q-btn { font-size: 1.15rem; padding: 16px 26px; width: 100%; max-width: 420px; }
.q-btn i { margin-left: 8px; }
.q-btn[disabled] { background: #d8d5cc; border-color: #d8d5cc; color: #77756d; cursor: not-allowed; }
.q-after, .q-closed { color: var(--s-soft); font-size: 0.95rem !important; }
.q-problem { background: #fbe6e3; border-left: 6px solid var(--s-red); border-radius: 8px; padding: 10px 14px; font-weight: 700; color: #8f2318; margin-bottom: 14px !important; }

/* ---- the small print ---- */
#santa-songs .q-terms { background: var(--s-paper); }
#santa-songs .q-terms h2 { text-align: left; }
.q-termlist { text-align: left; margin: 0 0 16px; padding-left: 1.4em; }
.q-termlist li { margin-bottom: 12px; line-height: 1.55; font-size: 1rem; color: #33332e; padding-left: 4px; }
.q-termlist li::marker { font-weight: 700; color: var(--s-red); }
.q-termfoot { font-size: 0.9rem !important; color: var(--s-soft); text-align: left !important; }

/* ---- the thank-you page ---- */
.q-thanks { max-width: 620px; margin: 0 auto; text-align: left; }
.q-thanks .q-hero { border-radius: 14px 14px 0 0; }
.q-thanks-body { background: #fff; border: 1px solid var(--s-line); border-top: 0; border-radius: 0 0 14px 14px; padding: 22px 24px; }
.q-thanks-body p { font-size: 1.02rem !important; margin-bottom: 12px !important; }
.q-thanks-body .s-actions { margin-top: 18px !important; }
.q-ticket { background: var(--s-paper); border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; border-left: 6px solid var(--s-green); }
.q-ticket strong { display: block; font-size: 1.15rem; }
.q-ticket-pending { border-left-color: var(--s-gold, #c9962b); }
.q-confirmed { display: flex; align-items: center; gap: 10px; background: #e7f4ec; border: 1px solid #b6d9c1; color: #17603a; border-radius: 10px;
  padding: 10px 14px; font-weight: 700; font-size: 1.08rem !important; margin: 0 0 14px !important; }
.q-confirmed i { font-size: 1.3rem; }
.q-confirmed.q-pending { background: #fdf3dc; border-color: #f1d49a; color: #7a5200; }
.q-thanks-body .q-when { font-size: 1.05rem !important; }
.q-ticket span { color: var(--s-soft); }

/* ---- the same form in the "donate for a song" box of the main Santa page (songs/form.php) ---- */
.s-sheet #santa-songs .content-section { padding: 6px 0 14px; background: none; }
.s-sheet #santa-songs .content-wrapper { max-width: none; }
.s-sheet #santa-songs .q-step h2 { font-size: 1.12rem; margin-bottom: 10px; }
.s-sheet #santa-songs .q-step .section-intro { font-size: 0.98rem; margin-bottom: 10px; }
.s-sheet .q-num { width: 30px; height: 30px; font-size: 0.95rem; margin-right: 10px; }
.s-sheet .q-combo, .s-sheet .q-roadinfo, .s-sheet .q-miss, .s-sheet .q-filter { max-width: none; }
.s-sheet .q-songs { max-height: 292px; }
.s-sheet .q-go, .s-sheet .q-after { display: none; }      /* the box has its own button, always in view at its foot */
.s-sheet .q-roadcard { padding: 14px 16px; }
.s-sheet .q-public, .s-sheet .q-summary { padding: 12px 14px; }
/* once a song is picked, the list folds away to that one song */
.q-box.is-chosen .q-songs { max-height: none; overflow: visible; }
.q-box.is-chosen .q-songs .q-song:not(.is-picked), .q-box.is-chosen .q-songs .q-cat, .q-box.is-chosen .q-filter, .q-box.is-chosen .q-or,
.q-box.is-chosen .q-scrooge:not(.is-picked), .q-box.is-chosen #q-song .section-intro, .q-box.is-chosen #q-song-none,
.q-box.is-chosen.is-hush .q-songs { display: none; }
.q-change { margin: 10px 0 0 !important; text-align: left; }

/* ---- the invitation on the main Santa page (now .s-song in public.css; kept for an older copy of the page) ---- */
.q-invite {
  max-width: 900px; margin: 0 auto; background: linear-gradient(rgba(29, 29, 26, 0.62), rgba(29, 29, 26, 0.62)), #1d1d1a url("../img/header-snow.svg") center top / 480px 96px repeat; color: #fff;
  border-radius: 14px; border-left: 8px solid var(--s-red); padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; text-align: left;
}
.q-invite > div { flex: 1 1 320px; min-width: 0; margin: 0 20px 6px 0; }
#santa-app .q-invite h2, .q-invite h2 { color: #fff; text-align: left; font-size: clamp(1.15rem, 3.4vw, 1.5rem); margin-bottom: 6px; }
.q-invite p { margin: 0 !important; color: #e9e6df; font-size: 1rem !important; }
.q-invite .s-btn { flex: none; margin: 8px 0; }

@media (max-width: 600px) {
  #santa-songs .content-section { padding-left: 14px; padding-right: 14px; }
  #santa-songs .q-top { padding: 18px 12px 6px; }
  .q-hero { padding: 20px 18px; }
  .q-song label { padding-left: 10px; }
  .q-scrooge label { padding: 14px 12px 14px 10px; }
  .q-scrooge-icon { width: 34px; height: 34px; margin-right: 10px; }
  .q-listen { padding: 0 10px; }
  .q-listen span { display: none; }
  .q-amount span { min-width: 64px; padding: 12px 10px; }
  .q-btn { max-width: none; }
  .q-invite { padding: 18px; }
}
