/* /play/ only: the band booking request. Field look comes from forms.css (.wpf);
   the date picker borrows the Live Music calendar's look (black box, yellow
   month, chevrons, road line). */

/* Title band */
.page-play .play-head { padding-top: 60px; padding-bottom: 50px; }
.page-play .play-head__title {
  margin: 0 0 .3em;
  color: var(--c-yellow);
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.page-play .play-head__lead { max-width: 40em; margin: 0 0 .6em; font-size: 1.1em; }
.page-play .play-head__alt { max-width: 40em; margin: 0; }
.page-play .play-head a { color: #fff; }
.page-play .play-head a:hover { color: var(--c-yellow); }

/* The form on a white card in the yellow band */
.page-play .play-body { padding-top: 50px; padding-bottom: 70px; }
.page-play .play-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.2em 2.4em 2.4em;
  background: #fff;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .18);
}
.page-play .play-form__title,
.page-play .play-thanks__title {
  margin: 0 0 .2em;
  font-family: var(--f-head);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
}
.page-play .play-form__note { margin: 0 0 .4em; font-size: .8em; color: #595959; }
.page-play .play-thanks { padding: 1em 0; text-align: center; }
.page-play .play-thanks:focus { outline: none; }
.page-play .play-thanks[hidden], .page-play .play-form[hidden] { display: none; }

/* two columns from tablet up */
.page-play .play-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 24px; }
@media (min-width: 768px) {
  .page-play .play-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-play .play-input--half { max-width: calc(50% - 12px); }
}
.page-play .play-links__desc { margin: -4px 0 6px; }
.page-play .play-sub { padding: 8px 0; min-width: 0; }
.page-play .play-sub__label { margin-bottom: 6px; font-weight: 500; }
.page-play .play-choices { gap: 10px 26px; }

/* Honeypot: off screen, never seen or reached by people */
.page-play .play-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Date picker ---------- */
.page-play .play-cal {
  --c-focus: var(--c-yellow);
  position: relative;
  max-width: 440px;
  margin: 10px 10px 0 0;
  padding: 1em 1em 1.6em;
  background: #000;
  color: #fff;
  font-family: var(--f-head);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .18);
}
.page-play .play-cal::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: .55em;
  height: 4px;
  background: linear-gradient(90deg, transparent 0 21%, var(--c-yellow) 21% 79%, transparent 79%) 0 0 / 38px 100% round;
}
.page-play .play-cal__noscript { margin: 0; }
.page-play .play-cal__bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: .5em;
  margin-bottom: .5em;
}
.page-play .play-cal__nav--prev { grid-column: 1; grid-row: 1; }
.page-play .play-cal__month { grid-column: 2; grid-row: 1; }
.page-play .play-cal__nav--next { grid-column: 3; grid-row: 1; }
.page-play .play-cal__month {
  margin: 0;
  color: var(--c-yellow);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}
.page-play .play-cal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-yellow);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.page-play .play-cal__nav[hidden] { display: none; }
.page-play .play-cal__arrow { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: square; stroke-linejoin: miter; }
.page-play .play-cal__nav:hover,
.page-play .play-cal__nav:focus-visible { background: var(--c-yellow); color: #000; }
.page-play .play-cal__nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.page-play .play-cal__grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 2px;
  table-layout: fixed;
  font-size: 1em;
  line-height: 1;
}
.page-play .play-cal__grid th {
  padding: 0 0 .4em;
  color: #fff;
  font-size: .8em;
  font-weight: 700;
  text-align: center;
}
.page-play .play-cal__grid td { padding: 1px; text-align: center; vertical-align: middle; }
.page-play .play-cal__day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 2px 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1em;
  font-weight: 500;
  line-height: 1;
}
.page-play button.play-cal__day { cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.page-play .play-cal__day.is-past { color: #8c8c8c; }
.page-play .play-cal__num { display: block; font-size: 1em; }
.page-play .play-cal__booked {
  display: block;
  margin-top: 3px;
  font-size: max(10px, .55em);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
/* booked: a dotted yellow frame, and the word under the number */
.page-play .play-cal__day.is-booked { border: 2px dotted var(--c-yellow); color: var(--c-yellow); }
/* today: a white underline under the number */
.page-play .play-cal__day.is-today .play-cal__num { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* chosen: filled yellow */
.page-play .play-cal__day.is-chosen { background: var(--c-yellow); border: 2px solid var(--c-yellow); color: #000; font-weight: 700; }
.page-play button.play-cal__day:hover { background: #fff; border-color: #fff; color: #000; }
.page-play button.play-cal__day:focus-visible { outline: 3px solid #fff; outline-offset: 2px; z-index: 1; }

.page-play .play-cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: .35em 1.1em;
  margin: .7em 0 0;
  padding: 0;
  list-style: none;
  color: #fff;
  font-size: .8em;
  font-weight: 500;
  line-height: 1.3;
}
.page-play .play-cal__legend li { display: flex; align-items: center; gap: .45em; }
.page-play .play-cal__swatch { display: inline-block; flex: none; width: 1.1em; height: 1.1em; border-radius: 3px; }
.page-play .play-cal__swatch.is-chosen { background: var(--c-yellow); }
.page-play .play-cal__swatch.is-booked { border: 2px dotted var(--c-yellow); }

/* Chosen dates as chips */
.page-play .play-chosen { margin-top: 18px; }
.page-play .play-chosen[hidden] { display: none; }
.page-play .play-chosen__title { margin: 0 0 8px; font-weight: 700; color: var(--wpf-label); }
.page-play .play-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.page-play .play-chips li { margin: 0; }
.page-play .play-chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  padding: .3em .5em .3em .9em;
  border: 2px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--f-head);
  font-size: .95em;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.page-play .play-chip__x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--c-yellow);
  color: #000;
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
}
.page-play .play-chip:hover { background: #fff; color: #000; }

/* Send */
.page-play .play-submit { min-width: 10em; }
.page-play .play-submit:disabled { opacity: .7; cursor: progress; }
.page-play .play-notice a { display: inline; }
.page-play .play-notice a::before { content: none; }

@media (max-width: 767px) {
  .page-play .play-head { padding-top: 40px; padding-bottom: 36px; }
  .page-play .play-body { padding-top: 28px; padding-bottom: 44px; }
  .page-play .play-card { padding: 1.4em 1.1em 1.6em; box-shadow: 6px 6px 0 rgba(0, 0, 0, .18); margin-right: 6px; }
  .page-play .play-cal { max-width: none; margin-right: 0; padding: .8em .5em 1.6em; box-shadow: none; }
}
@media (max-width: 420px) {
  .page-play .play-card { margin-left: -12px; margin-right: -6px; }
  .page-play .play-cal { margin-left: -.6em; margin-right: -.6em; }
  .page-play .play-cal__day { min-height: 44px; }
  .page-play .play-cal__booked { letter-spacing: 0; }
}

/* High contrast: chosen and booked days stay distinct without colour */
html.a11y-contrast .page-play .play-cal__day.is-chosen { border: 3px solid #ff0 !important; text-decoration: underline !important; }
html.a11y-contrast .page-play .play-cal__day.is-booked { border: 2px dotted #fff !important; }
html.a11y-contrast .page-play .play-card,
html.a11y-contrast .page-play .play-chip { border: 2px solid #fff !important; }
