/* Coverage + booking sit as one stack: suburb selector immediately above the form. */
body.page-home-st .stwf-book-stack {
  position: relative;
  z-index: 9;
}

body.page-home-st .stwf-cover {
  --hc-ink: #121213;
  --hc-lime: #c8db4f;
  --hc-card: #171718;
  position: relative;
  z-index: 1;
  background: transparent;
  color: #fff;
  scroll-margin-top: 96px;
}

body.page-home-st .stwf-cover > .container {
  position: relative;
  z-index: 1;
}

body.page-home-st .stwf-cover .hero-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
}

body.page-home-st .hero-cover__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 4px;
  color: var(--hc-lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.page-home-st .hero-cover__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hc-lime);
  box-shadow: 0 0 0 0 rgba(200, 219, 79, 0.7);
  animation: hero-cover-pulse 1.8s ease-out infinite;
}

@keyframes hero-cover-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 219, 79, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(200, 219, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 219, 79, 0); }
}

body.page-home-st .hero-cover__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body.page-home-st .hero-cover__form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #0d0d0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.page-home-st .hero-cover__field {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
}

body.page-home-st .hero-cover__pin {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--hc-lime);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

body.page-home-st .hero-cover__pin-ico,
body.page-home-st .hero-cover__pin svg {
  display: block;
  width: 18px;
  height: 18px;
}

body.page-home-st .hero-cover input {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 10px 0 40px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.28em !important;
  line-height: 46px !important;
  text-align: left;
  color-scheme: dark;
  box-shadow: none !important;
}

body.page-home-st .hero-cover input::placeholder {
  color: rgba(255, 255, 255, 0.32) !important;
  letter-spacing: 0.34em;
  opacity: 1;
}

body.page-home-st .hero-cover input:focus {
  outline: none;
}

body.page-home-st .hero-cover__form:focus-within {
  border-color: rgba(200, 219, 79, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(200, 219, 79, 0.28),
    0 0 0 3px rgba(200, 219, 79, 0.16);
}

body.page-home-st .hero-cover__form > button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 88px;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--hc-lime) !important;
  background-color: var(--hc-lime) !important;
  color: var(--hc-ink) !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
}

body.page-home-st .hero-cover__form > button:hover {
  filter: brightness(1.05);
}

body.page-home-st .hero-cover__status {
  min-height: 1.1em;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

body.page-home-st .hero-cover__status[data-tone="ok"] { color: var(--hc-lime); }
body.page-home-st .hero-cover__status[data-tone="empty"] { color: #f0c36a; }
body.page-home-st .hero-cover__status[data-tone="pick"] { color: #fff; }

body.page-home-st .hero-cover__results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
}

body.page-home-st .hero-cover__chip {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100%;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
  cursor: pointer;
  animation: hero-cover-in 0.24s ease;
}

body.page-home-st .hero-cover__chip:hover,
body.page-home-st .hero-cover__chip.is-picked {
  border-color: var(--hc-lime) !important;
  background: var(--hc-lime) !important;
  color: var(--hc-ink) !important;
}

body.page-home-st .hero-cover__chip-mark {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(200, 219, 79, 0.22);
  color: var(--hc-lime);
  font-size: 11px;
  line-height: 1;
}

body.page-home-st .hero-cover__chip.is-picked .hero-cover__chip-mark,
body.page-home-st .hero-cover__chip:hover .hero-cover__chip-mark {
  background: var(--hc-ink);
  color: var(--hc-lime);
}

@keyframes hero-cover-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Mobile: charcoal band, then the purple form stays its own section. */
@media (max-width: 599px) {
  body.page-home-st .stwf-book-stack {
    margin: 0;
    padding: 0;
  }

  body.page-home-st .stwf-book-stack::before {
    content: none;
    display: none;
  }

  body.page-home-st .stwf-cover {
    margin: 0;
    padding: 22px 0 20px;
    background: var(--hc-card);
    overflow: hidden;
  }

  body.page-home-st .hero-cover__form {
    max-width: 100%;
  }

  body.page-home-st .stwf-cover > .container {
    width: 100%;
    max-width: none;
    padding: 0 16px;
  }

  body.page-home-st .hero-cover input {
    font-size: 18px !important;
    letter-spacing: 0.24em !important;
  }
}

/* Tablet / desktop: both cards share the hero overlap; coverage sits on the form. */
@media (min-width: 600px) {
  body.page-home-st .stwf-book-stack {
    margin-top: calc(-1 * var(--hero-card-overlap, 200px));
    padding: 0 0 36px;
  }

  body.page-home-st .stwf-book-stack::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 72px;
    background: var(--st-match-behind, #d0d3d8);
    z-index: 0;
    pointer-events: none;
  }

  body.page-home-st .stwf-cover {
    margin: 0;
    padding: 0 0 10px;
  }

  body.page-home-st .stwf-cover::before {
    content: none;
    display: none;
  }

  body.page-home-st .stwf-cover > .container {
    width: min(100% - 48px, 560px);
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 20px 12px;
    border-radius: 16px;
    background: var(--hc-card);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  }

  body.page-home-st .stwf-book-stack .stwf-book.st-book-match {
    margin-top: 0 !important;
    padding: 0 !important;
    z-index: 1;
  }

  body.page-home-st .stwf-book-stack .stwf-book.st-book-match::before {
    content: none;
    display: none;
  }
}

@media (min-width: 861px) {
  body.page-home-st .stwf-book-stack {
    margin-top: -300px;
  }

  body.page-home-st .stwf-cover {
    padding-bottom: 12px;
  }
}

/* Chalk confirmation after a suburb chip is tapped. */
body.page-home-st .stwf-book.st-book-match {
  scroll-margin-top: 148px;
}

body.page-home-st .stwf-book.st-book-match .stwf-book__head.is-covered .stwf-book__title,
body.page-home-st .stwf-book.st-book-match .stwf-book__title[hidden] {
  display: none !important;
}

body.page-home-st .stwf-book.st-book-match .stwf-book__title-cover[hidden] {
  display: none !important;
}

body.page-home-st .stwf-book.st-book-match .stwf-book__title-cover {
  margin: 0 0 16px;
  color: #fff;
  font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 46px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  transform: rotate(-1.2deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: hero-cover-chalk 0.35s ease;
}

body.page-home-st .stwf-book.st-book-match .stwf-book__title-cover em {
  display: inline-block;
  margin-top: 0.08em;
  color: #c8db4f;
  font-style: normal;
  font-weight: 700;
  font-size: 1.12em;
  padding: 0 0.08em;
  background-image: linear-gradient(transparent 72%, rgba(200, 219, 79, 0.35) 72%);
}

@keyframes hero-cover-chalk {
  from { opacity: 0; transform: rotate(-1.4deg) translateY(8px); }
  to { opacity: 1; transform: rotate(-1.4deg) translateY(0); }
}

@media (max-width: 599px) {
  body.page-home-st .stwf-book.st-book-match .stwf-book__title-cover {
    font-size: clamp(30px, 8.4vw, 40px);
    margin-bottom: 12px;
  }
}
