/* Holiday camps page. Builds on editorial.css and trial-registration.css. */

/* Left column: facts and prices on the dark background */
.hc-facts { margin-top: 30px; }
.hc-prices { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.hc-prices[hidden] { display: none; }
.hc-price {
  display: grid;
  min-width: 104px;
  padding: 14px 16px 12px;
  border-radius: 8px;
  background: var(--ed-red);
  color: #fff;
  text-align: center;
}
.hc-price strong { font-family: var(--ed-head); font-size: 40px; line-height: .95; }
.hc-price span { margin-top: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.pp-page main .hc-contact { margin: 34px 0 0; max-width: 40ch; color: var(--ed-muted); font-size: 14px; line-height: 1.7; }
.hc-contact a { color: var(--ed-paper); }

/* Card states */
.hc-loading { display: grid; justify-items: center; gap: 14px; padding: 40px 0; color: var(--ed-ink-muted); }
.hc-loading[hidden], .hc-empty[hidden], .hc-notice[hidden] { display: none; }
.hc-spinner { width: 28px; height: 28px; border: 3px solid var(--ed-ink-line); border-top-color: var(--ed-red); border-radius: 50%; animation: hc-spin .8s linear infinite; }
@keyframes hc-spin { to { transform: rotate(360deg); } }
.pp-page main .hc-empty p { color: var(--ed-ink-muted); line-height: 1.6; }
.hc-empty a { color: var(--ed-ink); }

.hc-notice {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(12, 12, 13, .05);
  color: var(--ed-ink);
  font-size: 15px;
  line-height: 1.55;
}
.hc-notice--error { background: rgba(236, 32, 41, .08); color: #a3121a; }

/* Day picker */
.pp-page main .ct-card .hc-card-head { margin-bottom: 4px; }
.hc-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.hc-day {
  position: relative;
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: 16px 16px 14px;
  border: 1.5px solid var(--ed-ink-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ed-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.hc-day:hover:not([disabled]) { border-color: var(--ed-ink); }
.hc-day:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(236, 32, 41, .3); }
.hc-day[aria-pressed="true"] { border-color: var(--ed-ink); background: var(--ed-ink); color: var(--ed-paper); }
.hc-day[disabled] { cursor: not-allowed; opacity: .5; background: rgba(12, 12, 13, .03); }
.hc-day-weekday { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.hc-day-date { font-family: var(--ed-head); font-size: 30px; line-height: 1; text-transform: uppercase; }
.hc-day-time { margin-top: 4px; font-size: 14px; }
.hc-day-places { margin-top: 8px; font-size: 12px; color: #1f7a4d; }
.hc-day.is-low .hc-day-places { color: #b8620b; }
.hc-day.is-full .hc-day-places { color: #a3121a; }
.hc-day[aria-pressed="true"] .hc-day-places { color: rgba(231, 230, 226, .8); }
.hc-day-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ed-ink-line);
  border-radius: 50%;
}
.hc-day[aria-pressed="true"] .hc-day-check { border-color: var(--ed-red); background: var(--ed-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }

.ct-card .hc-days-error { margin-top: 10px; }
.ct-card .contact-form.days-invalid .hc-days-error { display: block; }
.contact-form.days-invalid .hc-day:not([disabled]) { border-color: var(--ed-red); }

.hc-total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 18px 0 34px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(12, 12, 13, .04);
}
.hc-total-hint { color: var(--ed-ink-muted); font-size: 14px; }
.hc-total-days { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ed-ink-muted); }
.hc-total-price { font-family: var(--ed-head); font-size: 40px; line-height: 1; color: var(--ed-ink); }
.hc-total-saving { padding: 3px 10px; border-radius: 100px; background: var(--ed-red); color: #fff; font-size: 12px; }

.pp-page main .hc-secure { margin: 12px 0 0; color: var(--ed-ink-muted); font-size: 13px; }
.ct-card textarea { resize: vertical; }

@media (max-width: 767px) {
  .hc-days { grid-template-columns: 1fr 1fr; }
  .hc-day-date { font-size: 26px; }
  .hc-price strong { font-size: 34px; }
}

/* Payment choice */
.ct-card .hc-pay { margin: 30px 0 0; }
.ct-card .hc-pay[hidden], .hc-pay-note[hidden], .hc-secure[hidden] { display: none; }
.pp-page main .hc-pay-note { margin: 28px 0 0; padding: 12px 14px; border-left: 3px solid var(--ed-red); background: rgba(12, 12, 13, .04); color: var(--ed-ink); font-size: 14px; }
.ct-card .hc-pay + .hc-pay-note[hidden] + .form-consent,
.ct-card .hc-pay-note + .form-consent { margin-top: 26px; }
.pp-page main .hc-contact + .hc-contact { margin-top: 12px; }

/* Formula Condensed has no £ glyph, so browsers fall back to a thin one.
   Give the symbol a heavy condensed face that does have it. Scoped to the
   price boxes so their label styles (small uppercase spans) do not apply. */
.gbp,
.hc-price .gbp,
.hc-total-price .gbp {
  display: inline;
  margin: 0 .02em 0 0;
  opacity: 1;
  font-family: "HelveticaNeue-CondensedBlack", "Helvetica Neue Condensed Black", "Helvetica Neue", "Roboto Condensed", "Arial Narrow", Impact, "Arial Black", sans-serif;
  font-size: .92em;
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: 0;
  line-height: 0;
  text-transform: none;
  vertical-align: baseline;
}
