/* Postcode Gate - full-width orange band that qualifies the visitor before the
   booking form. Sits between the dark hero and the cream form.

   Colour note: white text on Tiger orange is only 3.21:1, which fails WCAG AA
   for body copy, so this band uses near-black ink throughout (5.84:1) and a
   dark Check button. Do not switch the text back to white. */

.postcode-gate {
  background: var(--color-primary);
  background-image: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22), transparent 45%);
}

/* Banner: full-bleed band, used on pages without the booking form. */
.postcode-gate--banner {
  border-bottom: 4px solid var(--color-dark);
  padding-block: var(--space-4) var(--space-4);
}

.postcode-gate--banner .postcode-gate__form { max-width: 46rem; }

/* Block: a contained card at the top of the booking form column, so it reads
   as part of the form rather than a second page header. */
.postcode-gate--block {
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(18, 18, 20, 0.22);
  padding: 1rem 1.1rem 0.95rem;
  margin-bottom: 1rem;
}

/* Condensed inside the form column - it is a step on the way to booking, not
   the page's headline, so it does not need banner-sized type. */
.postcode-gate--block .postcode-gate__heading {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  margin-bottom: 0.1rem;
}

.postcode-gate--block .postcode-gate__subtext {
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.postcode-gate--block .postcode-gate__input {
  padding: 0.7rem 0.85rem;
  font-size: 1.05rem;
}

.postcode-gate--block .postcode-gate__input::placeholder { font-size: 0.92rem; }

.postcode-gate--block .postcode-gate__submit {
  padding-block: 0.7rem;
  padding-inline: 1.35rem;
  font-size: 0.92rem;
}

.postcode-gate--block .postcode-gate__result {
  margin-top: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.postcode-gate--block .postcode-gate__areas { margin-top: 0.65rem; }

.postcode-gate__heading {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.375rem, 3.2vw, 1.75rem);
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.postcode-gate__subtext {
  margin: 0 0 var(--space-2);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3d1400;
}

.postcode-gate__row {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.postcode-gate__input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.9375rem 1.125rem;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-heading);
  background: #fff;
  border: 3px solid transparent;
  border-radius: var(--radius);
}

.postcode-gate__input::placeholder {
  text-transform: none;
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-placeholder);
}

.postcode-gate__input:focus {
  border-color: var(--color-dark);
  outline: none;
}

/* The global .btn--primary is orange, which would vanish on this band. */
.postcode-gate .postcode-gate__submit {
  flex: none;
  padding-inline: 1.75rem;
  font-size: 1rem;
  background: var(--color-dark);
  color: #fff;
}

.postcode-gate .postcode-gate__submit:hover,
.postcode-gate .postcode-gate__submit:focus-visible {
  background: #000;
}

.postcode-gate__result {
  display: none;
  max-width: 34rem;
  margin: 0.875rem 0 0;
  padding: 0.75rem 0.9375rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

.postcode-gate__result.is-covered {
  display: block;
  background: #e9f7ee;
  color: #14663a;
  border-left: 4px solid var(--color-green);
}

.postcode-gate__result.is-not-covered {
  display: block;
  background: #fff;
  color: #8a4708;
  border-left: 4px solid #8a4708;
}

/* ---------- area chips ---------- */
.postcode-gate__areas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: var(--space-2);
}

.postcode-gate__chips {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Kept neutral grey rather than tinted, so they read as a quiet secondary
   list against the orange rather than competing with it. */
.postcode-gate__chip {
  font-size: 0.75rem;
  background: var(--color-border-light);
  border: 1px solid var(--color-border);
  border-radius: 99px;
}

.postcode-gate__chip a,
.postcode-gate__chip span {
  display: block;
  padding: 0.1875rem 0.625rem;
  color: var(--color-text);
  text-decoration: none;
}

/* Chips are plain text (not links), so no hover state. */\n/* Collapsed state is applied by the script, so with JavaScript off the whole
   list simply shows and the toggle stays hidden. */
.postcode-gate__chips.is-collapsed .postcode-gate__chip--extra { display: none; }

.postcode-gate__more {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-dark);
  border: 1px solid var(--color-dark);
  border-radius: 99px;
  padding: 0.1875rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.postcode-gate__more:hover {
  background: #fff;
  color: var(--color-dark);
}

.postcode-gate__more:focus-visible {
  outline: 3px solid var(--color-dark);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .postcode-gate { padding-block: var(--space-3); }
  .postcode-gate__submit { width: 100%; }
}

@media (max-width: 459.98px) {
  .postcode-gate__input { font-size: 1.0625rem; padding: 0.8125rem 0.9375rem; }
}