/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 62px - 60px); /* screen minus navbar and footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #fff;
  /* No overflow: hidden here - the address suggestions dropdown must be able to extend below the hero */
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .08) 0 2px, transparent 3px) 0 0 / 60px 60px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .06) 0 1.5px, transparent 2.5px) 0 0 / 45px 45px,
    linear-gradient(135deg, var(--theme-navy) 0%, var(--theme-navy-2) 55%, #2b4a86 100%);
}

/* Soft red/white stripes in the bottom corner - a 420px circle whose visible part
   (it sits 120px past the corner) is cut out with clip-path, so nothing spills outside the hero */
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 300px;
  height: 300px;
  clip-path: circle(210px at 210px 210px);
  background: repeating-linear-gradient(-45deg, rgba(230, 57, 70, .35) 0 18px, rgba(255, 255, 255, .06) 18px 36px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: .35rem .9rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .75rem;
}

.hero-title span {
  color: #ff8a93;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 2rem;
}

.hero-search {
  background: #fff;
  border-radius: 1rem;
  padding: .5rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .3);
}

.hero-search .form-control {
  border: 0;
  font-size: 1.1rem;
  padding: .9rem 1rem;
}

.hero-search .form-control:focus {
  box-shadow: none;
}

.hero-search .btn {
  border-radius: .75rem !important;
  padding: .75rem 1.5rem;
  font-weight: 600;
}

/* Nearby polling stations shown after picking an address */
.hero-search {
  position: relative;
}

.nearby-stations {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  color: #212529;
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .3);
  text-align: left;
}

.nearby-title {
  font-weight: 700;
  margin-bottom: .5rem;
}

.nearby-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-top: 1px solid #e9ecef;
}

.nearby-name {
  font-weight: 600;
}

.nearby-address {
  font-size: .85rem;
  color: #6c757d;
}

.nearby-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nearby-more {
  display: inline-block;
  margin-top: .5rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .nearby-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .nearby-actions {
    justify-content: flex-start;
  }
}

.hero-location-link {
  color: #fff;
  opacity: .9;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-location-link:hover {
  opacity: 1;
  color: #fff;
  text-decoration: underline;
}

.hero-location-link .location-pin {
  font-size: 2.2rem;
  vertical-align: middle;
}

/* ---------- Service cards ---------- */
.services {
  padding: 2.5rem 0 4rem;
}

.quick-panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 1.25rem;
}

.quick-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111;
  margin-bottom: .5rem;
}

.quick-subtitle {
  color: #6c6f75;
  margin-bottom: 1.25rem;
}

.quick-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem .75rem;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 1rem;
  color: #111;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  color: #111;
  border-color: var(--theme-red);
  box-shadow: 0 .5rem 1.25rem rgba(20, 33, 61, .1);
  transform: translateY(-2px);
}

.quick-icon {
  width: 28px;
  height: 28px;
  margin-bottom: .75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-name {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .35rem;
}

.quick-desc {
  color: #6c6f75;
  font-size: .95rem;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  .hero-search .input-group {
    flex-direction: column;
  }

  .hero-search .input-group > * {
    width: 100% !important;
  }
}

.hero-tagline {
  font-size: clamp(1.1rem, 3.2vw, 2rem);
  font-weight: 700;
  color: #ff8a93;
  white-space: nowrap;
  margin-bottom: 1.5rem;
}

.hero-tagline span {
  color: #fff;
}
