/* Green Penny finder result layout overrides. */
.gp-finder .gp-finder__header {
  background: linear-gradient(90deg, #026737 0%, #b1d235 100%) !important;
  color: #fff !important;
}

.gp-finder .gp-finder__header h2,
.gp-finder .gp-finder__header p,
.gp-finder .gp-finder__header .gp-finder__eyebrow {
  color: #fff !important;
}

.gp-finder .gp-finder__submit,
.gp-finder .gp-finder__book,
.gp-finder .gp-finder__acceptance--accepted {
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #b1d235 !important;
  color: #173117 !important;
  transition: background-color .16s ease, color .16s ease !important;
}

.gp-finder .gp-finder__acceptance--accepted {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 13px 20px !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.gp-finder .gp-finder__submit:hover,
.gp-finder .gp-finder__submit:focus,
.gp-finder .gp-finder__book:hover,
.gp-finder .gp-finder__book:focus,
.gp-finder .gp-finder__acceptance--accepted:hover {
  background: #026737 !important;
  color: #fff !important;
}

.gp-finder .gp-finder__council-result {
  border: 1px solid #d7e2d0 !important;
}

.gp-finder .gp-finder__location-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
}

.gp-finder .gp-finder__location {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 20px !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.gp-finder .gp-finder__location-details h4 {
  margin: 0 0 5px !important;
}

.gp-finder .gp-finder__location-details p {
  margin: 4px 0 !important;
}

.gp-finder .gp-finder__actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 0 !important;
}

.gp-finder .gp-finder__actions .gp-finder__maps {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  border: 2px solid #3f8600 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #3f8600 !important;
  padding: 12px 16px !important;
  min-height: 48px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.gp-finder .gp-finder__actions .gp-finder__maps,
.gp-finder .gp-finder__actions .gp-finder__book {
  font-size: 17px !important;
}

.gp-finder .gp-finder__actions .gp-finder__maps:hover,
.gp-finder .gp-finder__actions .gp-finder__maps:focus {
  background: #f3f8ef !important;
}

@media (max-width: 780px) {
  .gp-finder .gp-finder__location {
    grid-template-columns: 1fr !important;
  }

  .gp-finder .gp-finder__actions {
    justify-content: flex-start !important;
    flex-direction: column !important;
  }

  .gp-finder .gp-finder__maps,
  .gp-finder .gp-finder__book {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }
}

/* Candidate-facing council status and booking guidance. */
.gp-finder .gp-finder__acceptance-panel,
.gp-finder .gp-finder__requirements,
.gp-finder .gp-finder__other-services,
.gp-finder .gp-finder__candidate-document {
  border: 1px solid #d7e2d0 !important;
  border-left: 1px solid #d7e2d0 !important;
  border-radius: 10px !important;
  padding: 16px 18px !important;
  margin-top: 14px !important;
}

/* Candidate callback request shown after the nearest locations. */
.gp-finder .gp-finder__callback {
  box-sizing: border-box !important;
  margin: 24px 0 0 !important;
  padding: 22px !important;
  border: 1px solid #bcdcab !important;
  border-radius: 12px !important;
  background: #eef8e9 !important;
}

.gp-finder .gp-finder__callback-eyebrow {
  margin: 0 0 4px !important;
  color: #3f8600 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.gp-finder .gp-finder__callback h3 {
  margin: 0 0 8px !important;
  color: #173117 !important;
  font-size: 24px !important;
}

.gp-finder .gp-finder__callback > p:not(.gp-finder__callback-eyebrow) {
  margin: 0 0 18px !important;
}

.gp-finder .gp-finder__callback-form {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: end !important;
}

.gp-finder .gp-finder__callback-field label {
  display: block !important;
  margin: 0 0 6px !important;
  font-weight: 700 !important;
}

.gp-finder .gp-finder__callback-field input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid #9fb09a !important;
  border-radius: 9px !important;
  background: #fff !important;
  padding: 10px 13px !important;
  color: #1e271d !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
}

.gp-finder .gp-finder__callback-field input:focus {
  outline: 3px solid rgba(76, 214, 13, .25) !important;
  border-color: #3f8600 !important;
}

.gp-finder .gp-finder__callback-submit {
  grid-column: 1 / -1 !important;
  justify-self: start !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #3f8600 !important;
  color: #fff !important;
  padding: 13px 20px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.gp-finder .gp-finder__callback-submit:hover,
.gp-finder .gp-finder__callback-submit:focus {
  background: #326d00 !important;
}

.gp-finder .gp-finder__callback-submit:disabled {
  cursor: wait !important;
  opacity: .72 !important;
}

.gp-finder .gp-finder__callback-privacy,
.gp-finder .gp-finder__callback-message,
.gp-finder .gp-finder__callback-success {
  grid-column: 1 / -1 !important;
}

.gp-finder .gp-finder__callback-privacy {
  margin: -4px 0 0 !important;
  font-size: 13px !important;
}

.gp-finder .gp-finder__callback-message {
  color: #9b1c1c !important;
  font-weight: 700 !important;
}

.gp-finder .gp-finder__callback-success h4 {
  margin: 0 0 8px !important;
  color: #245d00 !important;
  font-size: 20px !important;
}

.gp-finder .gp-finder__callback-success p {
  margin: 0 0 8px !important;
}

.gp-finder .gp-finder__callback-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.gp-finder .gp-finder__acceptance-panel h4,
.gp-finder .gp-finder__requirements h4,
.gp-finder .gp-finder__other-services h4,
.gp-finder .gp-finder__candidate-document h4 {
  margin: 0 0 8px !important;
  color: #173117 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.gp-finder .gp-finder__acceptance-panel p,
.gp-finder .gp-finder__requirements p {
  margin: 0 !important;
  line-height: 1.55 !important;
}

.gp-finder .gp-finder__acceptance-panel--not-confirmed,
.gp-finder .gp-finder__requirements {
  background: #fff5d6 !important;
  border-color: #e8d79e !important;
}

.gp-finder .gp-finder__requirements {
  background: #fff !important;
  border: 2px solid #003f3b !important;
  color: #003f3b !important;
}

.gp-finder .gp-finder__requirements h4,
.gp-finder .gp-finder__requirements p,
.gp-finder .gp-finder__requirements li,
.gp-finder .gp-finder__requirements strong {
  color: #003f3b !important;
}

.gp-finder .gp-finder__acceptance-panel--not-accepted {
  background: #fdeaea !important;
  border-color: #edbcbc !important;
}

.gp-finder .gp-finder__requirements .gp-finder__restriction {
  margin-top: 8px !important;
}

.gp-finder .gp-finder__requirements .gp-finder__permitted-list {
  list-style: none !important;
  margin: 4px 0 !important;
  padding: 0 !important;
}

.gp-finder .gp-finder__requirements .gp-finder__permitted-list li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.55 !important;
}

.gp-finder .gp-finder__other-services {
  background: #eef8e9 !important;
  border-color: #bcdcab !important;
}

.gp-finder .gp-finder__service-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.gp-finder .gp-finder__service-link {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  border: 1px solid #78ad5c !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #2f7000 !important;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.gp-finder .gp-finder__service-link span,
.gp-finder .gp-finder__service-link small {
  display: block !important;
}

.gp-finder .gp-finder__service-link small {
  margin-top: 5px !important;
  color: #3f8600 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.gp-finder .gp-finder__service-link:hover,
.gp-finder .gp-finder__service-link:focus {
  background: #f7fbf4 !important;
}

.gp-finder .gp-finder__services-overview {
  display: inline-block !important;
  margin-top: 12px !important;
  color: #2f7000 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

.gp-finder .gp-finder__candidate-document {
  background: #eef8e9 !important;
  border: 1px solid #bcdcab !important;
}

.gp-finder .gp-finder__candidate-document p {
  margin: 0 0 13px !important;
  line-height: 1.55 !important;
}

.gp-finder .gp-finder__document-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #3f8600 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #3f8600 !important;
  padding: 11px 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.gp-finder .gp-finder__document-link:hover,
.gp-finder .gp-finder__document-link:focus {
  background: #f3f8ef !important;
}

.gp-finder .gp-finder__suggestions button.is-active,
.gp-finder .gp-finder__suggestions button[aria-selected="true"] {
  background: #eaf7e2 !important;
  box-shadow: none !important;
  outline: 2px solid #3f8600 !important;
  outline-offset: -2px !important;
}

/* Location-specific booking-page heading. */
.gp-finder__booking-heading {
  box-sizing: border-box;
  width: min(100%, 1100px);
  margin: 24px auto 18px;
  padding: 0 28px;
  font-family: Arial, sans-serif;
}

.gp-finder__booking-heading h1 {
  max-width: 720px;
  margin: 0;
  color: #003f3b;
  font-family: Arial, sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.gp-finder__booking-restriction {
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1044px);
  margin: 0 auto 22px;
  padding: 17px 19px;
  border: 2px solid #026737;
  border-radius: 9px;
  background: #fff;
  color: #026737;
  font-family: Arial, sans-serif;
}

.gp-finder__booking-restriction h2 {
  margin: 0 0 9px;
  color: #026737;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1.25;
}

.gp-finder__booking-restriction p {
  margin: 6px 0;
  color: #026737;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .gp-finder__booking-heading {
    margin-top: 18px;
    padding: 0 20px;
  }

  .gp-finder .gp-finder__callback-form {
    grid-template-columns: 1fr !important;
  }

  .gp-finder .gp-finder__callback-submit {
    width: 100% !important;
  }
}

/* Cleaner initial finder block: no empty white footer and subtler corners. */
.gp-finder {
  border-radius: 10px !important;
  box-shadow: none !important;
}

.gp-finder .gp-finder__header {
  border-radius: 10px 10px 0 0 !important;
}

.gp-finder .gp-finder__results:empty {
  display: none !important;
  padding: 0 !important;
}

.gp-finder:has(.gp-finder__results:empty) {
  background: var(--gp-soft) !important;
}

.gp-finder:has(.gp-finder__results:empty) .gp-finder__form {
  border-radius: 0 0 10px 10px !important;
}

/* Keep the primary search controls exactly the same height. */
.gp-finder input[type="text"],
.gp-finder .gp-finder__submit {
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
}

.gp-finder .gp-finder__submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.2 !important;
}

/* Align the no-council checkbox with its label and indent the group slightly. */
.gp-finder .gp-finder__unknown {
  align-items: center !important;
  margin-left: 12px !important;
  gap: 9px !important;
}

.gp-finder .gp-finder__unknown input[type="checkbox"] {
  flex: 0 0 auto !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
