/* Kundens start direkt i hero, isolerad från företagssidan. */
#hero.hero-landing--guided {
  height: auto;
  min-height: 0;
  padding: 28px 20px 36px;
}
#hero.hero-landing--guided .hero-actions {
  width: 100%;
  height: auto;
  max-height: none;
}
#hero.hero-landing--guided .hero-logo-wrap {
  width: 112px;
  max-width: 112px;
  margin-bottom: 16px;
}
#hero.hero-landing--guided .landing-intent--glass {
  width: min(100%, 940px);
  margin: 22px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
#hero .landing-intent--glass .landing-intent__inner {
  display: block;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px;
  background: rgba(19,31,45,.84);
  box-shadow: 0 16px 48px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.12);
  color: white;
}
@supports (backdrop-filter: blur(18px)) {
  #hero .landing-intent--glass .landing-intent__inner {
    background: rgba(19,31,45,.64);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}
#hero .landing-intent--glass .landing-intent__intro::before,
#hero .landing-intent--glass label > span::before { display: none; }
#hero .landing-intent--glass .landing-intent__eyebrow {
  color: #c4ddce;
  margin: 0 0 6px;
}
#hero .landing-intent--glass h2 {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 750;
  line-height: 1.2;
  margin: 0;
  text-shadow: none;
}
#hero .landing-intent--glass .landing-intent__intro > p:last-child {
  color: #e1e7eb;
  margin: 8px 0 18px;
  max-width: none;
  font-size: 14px;
  line-height: 1.5;
}
#hero .landing-intent--glass .landing-intent__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#hero .landing-intent--glass .landing-intent__wide { grid-column: 1 / -1; }
#hero .landing-intent--glass label { display: grid; gap: 6px; color: #f1f5f3; font-size: 13px; }
#hero .landing-intent--glass input,
#hero .landing-intent--glass select {
  background: rgba(255,255,255,.96);
  color: #172b23;
  min-height: 48px;
  font-size: 16px;
  border-radius: 11px;
  box-sizing: border-box;
  /* Tailwind preflight sets padding:0 — text was flush to the field edge. */
  padding: 0 16px;
}
#hero .landing-intent--glass select {
  padding-right: 2.5rem;
}
#hero .landing-intent--glass input::placeholder { color: #66736e; }
#hero .landing-intent--glass button {
  grid-column: 1 / -1;
  grid-row: auto;
  background: #d8eadf;
  color: #143728;
  min-height: 48px;
  box-shadow: none;
}
#hero .landing-intent--glass button:hover { background: #eef7f1; }
#hero .landing-intent--glass .landing-intent__privacy {
  color: #dde5e8;
  text-align: center;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
#hero .landing-intent--glass .landing-intent__inner { overflow: visible; }
.landing-municipality-field { position: relative; }
.landing-municipality-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #173c2c;
  border: 1px solid #cbd7d0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  padding: 4px;
  text-shadow: none;
}
.landing-municipality-list[hidden] { display: none; }
.landing-municipality-list [role="option"] {
  padding: 11px 12px;
  min-height: 44px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
}
.landing-municipality-list [role="option"]:hover,
.landing-municipality-list [aria-selected="true"] { background: #e5efe8; }
.landing-municipality-error {
  margin: 6px 0 0;
  color: #fecaca;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.landing-municipality-error[hidden] { display: none; }
#hero .landing-intent--glass input[aria-invalid="true"] {
  box-shadow: 0 0 0 2px #fca5a5;
}
@media (max-width: 640px) {
  #hero.hero-landing--guided { padding: 18px 12px 24px; }
  #hero.hero-landing--guided .hero-logo-wrap { width: 80px; max-width: 80px; margin-bottom: 12px; }
  #hero .landing-intent--glass .landing-intent__inner { padding: 18px; border-radius: 18px; }
  #hero .landing-intent--glass .landing-intent__form { grid-template-columns: 1fr; }
  #hero .landing-intent--glass .landing-intent__wide { grid-column: 1; }
}

/*
  Mobile first-viewport: index.css still treats #hero as a desktop-centered band
  (justify-content:center, padding 0 !important) and the global
  `section { padding: 3rem 1rem !important }` hits .landing-intent.
  Keep desktop (≥768) unchanged. Beat those rules only on small screens.
*/
@media (max-width: 767px) {
  #hero.hero-landing.hero-landing--guided {
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
    height: auto;
    padding: 10px 16px 18px !important;
  }
  #hero.hero-landing.hero-landing--guided > .max-w-4xl,
  #hero.hero-landing.hero-landing--guided .hero-actions {
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
  }
  #hero.hero-landing.hero-landing--guided .hero-logo-wrap {
    width: 56px;
    max-width: 56px;
    margin: 0 auto 8px;
  }
  #hero.hero-landing.hero-landing--guided .hero-lead {
    margin-bottom: 0 !important;
    padding: 0 4px;
  }
  #hero.hero-landing.hero-landing--guided .hero-lead h1 {
    white-space: normal;
    width: auto;
    max-width: 22ch;
    font-size: clamp(1.35rem, 6.4vw, 1.7rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
  }
  #hero.hero-landing.hero-landing--guided .hero-lead .hero-lead-sub,
  #hero.hero-landing.hero-landing--guided .hero-lead p {
    margin-top: 0.4rem;
    font-size: clamp(0.98rem, 3.6vw, 1.12rem);
    line-height: 1.35;
    max-width: 28rem;
  }
  #hero.hero-landing--guided .landing-intent.landing-intent--glass,
  #hero .landing-intent.landing-intent--glass {
    width: 100%;
    max-width: none;
    margin: 12px 0 0;
    padding: 0 !important;
  }
  #hero .landing-intent--glass .landing-intent__inner {
    padding: 14px 16px 16px;
    border-radius: 16px;
  }
  #hero .landing-intent--glass .landing-intent__eyebrow {
    margin: 0 0 4px;
  }
  #hero .landing-intent--glass h2,
  #hero .landing-intent--glass #customer-intent-heading {
    font-size: clamp(1.15rem, 5.2vw, 1.35rem) !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }
  #hero .landing-intent--glass .landing-intent__intro > p:last-child {
    margin: 6px 0 12px;
    font-size: 14px;
  }
  #hero .landing-intent--glass .landing-intent__form {
    gap: 10px;
  }
  #hero .landing-intent--glass input,
  #hero .landing-intent--glass select,
  #hero .landing-intent--glass button {
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) and (max-height: 520px),
       (max-width: 960px) and (max-height: 500px) {
  #hero.hero-landing.hero-landing--guided {
    justify-content: flex-start;
    padding: 6px 16px 12px !important;
  }
  #hero.hero-landing.hero-landing--guided .hero-logo-wrap {
    width: 44px;
    max-width: 44px;
    margin-bottom: 4px;
  }
  #hero .landing-intent.landing-intent--glass {
    padding: 0 !important;
    margin-top: 8px;
  }
  #hero .landing-intent--glass .landing-intent__intro > p:last-child {
    margin-bottom: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #hero .landing-intent--glass button { transition: none; transform: none; }
}
