/*
  HERO mini calculator (global)
  - Scoped to .hero-section to avoid breaking the existing layout
  - Mobile-first adjustments included
*/

.hero-section { margin: 0; }
.hero-section .content-section-wrap { padding: 0; }

.hero-section .hero-banner { margin: 0; }

.hero-section .banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

/* Make sure the picture/img behaves as a full-bleed background */
.hero-section .banner picture,
.hero-section .banner source,
.hero-section .banner img {
  display: block;
}

.hero-section .banner img {
  width: 100%;
  height: clamp(420px, 55vh, 560px);
  object-fit: cover;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.12) 100%);
}

.hero-section .hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.hero-section .hero-copy {
  color: #fff;
  max-width: 680px;
}

.hero-section .hero-title {
  margin: 0 0 8px 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
}

.hero-section .hero-sub {
  margin: 0 0 14px 0;
  font-size: 16px;
  opacity: .95;
}

.hero-section .hero-points {
  margin: 0;
  padding-left: 18px;
}

.hero-section .hero-points li {
  margin: 6px 0;
  font-size: 15px;
}

.hero-section .hero-mini {
  width: 360px;
  flex: 0 0 auto;
}

.hero-section .hero-mini-card {
  background: rgba(255,255,255,.96);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.hero-section .hero-mini-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.hero-section .hero-mini-grid .field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #333;
}

.hero-section .hero-mini-grid input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.25);
  outline: none;
  font-size: 16px;
}

.hero-section .hero-mini-grid input.is-error {
  border-color: rgba(220, 53, 69, .85);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .15);
}

.hero-section .hero-mini-actions {
  margin-top: 10px;
}

.hero-section .hero-mini-actions .btn {
  width: 100%;
  border-radius: 999px;
}

.hero-section .hero-mini-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(0,0,0,.65);
  line-height: 1.35;
}

/* Tablet and below */
@media (max-width: 992px) {
  .hero-section .banner { border-radius: 14px; }

  .hero-section .banner img {
    height: clamp(520px, 70vh, 720px);
  }

  .hero-section .hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.18) 100%);
  }

  .hero-section .hero-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 0;
  }

  .hero-section .hero-copy {
    max-width: none;
    text-align: center;
  }

  .hero-section .hero-points {
    display: inline-block;
    text-align: left;
  }

  .hero-section .hero-mini {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  .hero-section .hero-title {
    font-size: 30px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-section .banner img {
    height: clamp(540px, 78vh, 760px);
  }

  .hero-section .hero-title { font-size: 24px; }
  .hero-section .hero-sub { font-size: 14px; }
  .hero-section .hero-points li { font-size: 14px; }

  .hero-section .hero-mini-card {
    padding: 14px;
    border-radius: 16px;
  }
}



/* Ensure hero copy is white even if theme overrides */
.hero-section .hero-copy,
.hero-section .hero-copy * {
  color: #fff;
}
.hero-section .hero-copy a { color: #fff; text-decoration: underline; }
