/* BoligKlar — venteliste-formular + modal (forside m.fl.) */
/* Delt på tværs af hele sitet (forside, guides, beregnere, resultat-sider).
   @import gør stylesheetet selvforsynende med koncept-tokens (--bkc-*), så farver
   og fonts virker uanset om siden ellers linker concept-tokens.css. */
@import url('/css/concept-tokens.css');

.bk-lw-signup {
  max-width: 520px;
}

.bk-lw-signup__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bk-lw-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--bkc-border);
  border-radius: 12px;
  background: var(--bkc-card);
  font-family: var(--bkc-font-sans);
  font-size: 16px;
  color: var(--bkc-ink);
  box-sizing: border-box;
  transition: border-color 140ms, box-shadow 140ms;
  touch-action: manipulation;
}

.bk-lw-input--email {
  flex: 1.3;
}

.bk-lw-input:focus {
  outline: none;
  border-color: var(--bkc-green);
  box-shadow: 0 0 0 3px var(--bkc-green-soft);
}

.bk-lw-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  min-height: 44px;
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
}

.bk-lw-consent__input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--bkc-green);
  cursor: pointer;
}

.bk-lw-consent__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--bkc-ink-soft);
}

.bk-lw-consent__text a {
  color: var(--bkc-green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bk-lw-consent__text a:hover {
  color: var(--bkc-green-dark);
}

.bk-lw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  height: auto;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--bkc-green);
  color: var(--bkc-ink);
  font-family: var(--bkc-font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 220ms, transform 140ms;
  touch-action: manipulation;
}

.bk-lw-btn:hover {
  background: var(--bkc-green-dark);
  color: var(--bkc-ink);
}

.bk-lw-btn:active {
  transform: translateY(1px);
}

.bk-lw-btn--block {
  width: 100%;
}

.bk-lw-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.bk-lw-signup__submit-gap {
  margin-top: 10px;
}

.bk-lw-signup__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bkc-ink-mute);
}

.bk-lw-signup__note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.bk-lw-signup__error {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkc-terracotta);
  margin-top: 9px;
}

.bk-lw-signup__success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--bkc-green-soft);
  border: 1px solid var(--bkc-green-soft);
  border-radius: 16px;
}

.bk-lw-signup__success-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bkc-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bk-lw-signup__success-title {
  font-family: var(--bkc-font-display);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--bkc-ink);
  margin: 0;
}

.bk-lw-signup__success-text {
  font-size: 14px;
  color: var(--bkc-ink-soft);
  line-height: 1.5;
  margin: 3px 0 0;
}

.bk-lw-signup__success-body {
  min-width: 0;
}

.bk-lw-signup__success-tip {
  font-size: 14px;
  color: var(--bkc-ink-soft);
  line-height: 1.55;
  margin: 14px 0 0;
}

.bk-lw-signup__success-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--bkc-green);
  background: var(--bkc-card);
  color: var(--bkc-green-dark);
  font-family: var(--bkc-font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.bk-lw-signup__success-cta:hover {
  background: var(--bkc-green-soft);
  color: var(--bkc-green-dark);
}

[data-launch-form-wrap][data-state="success"] [data-launch-form-panel] {
  display: none;
}

[data-launch-form-wrap][data-state="success"] .bk-lw-signup__success {
  display: flex;
}

[data-launch-form-wrap][data-state="error"] .bk-lw-signup__error {
  display: block;
}

.bk-hero-signup {
  margin-bottom: 22px;
}

.bk-hero-actions--secondary {
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .bk-lw-signup__row {
    flex-direction: column;
  }

  .bk-lw-input,
  .bk-lw-input--email {
    width: 100%;
    flex: none;
  }

  .bk-lw-signup__success {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
  }

  .bk-lw-signup__success-title {
    font-size: 19px;
  }
}

@media (min-width: 641px) {
  .bk-lw-input {
    min-width: 140px;
  }

  .bk-lw-input--email {
    min-width: 160px;
  }
}

/* Modal */
body.bk-lw-modal-open {
  overflow: hidden;
}

.bk-lw-modal[hidden] {
  display: none !important;
}

.bk-lw-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.bk-lw-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 24, 0.52);
}

.bk-lw-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: var(--bkc-card);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-sizing: border-box;
}

.bk-lw-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 99px;
  background: var(--bkc-light-section);
  color: var(--bkc-grey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms, color 140ms;
  touch-action: manipulation;
}

@media (max-width: 640px) {
  .bk-lw-modal__dialog {
    padding: 24px 18px 20px;
  }

  .bk-lw-modal__lead {
    font-size: 15px;
    line-height: 1.55;
  }
}

.bk-lw-modal__close:hover {
  background: var(--bkc-green-soft);
  color: var(--bkc-ink);
}

.bk-lw-modal__title {
  font-family: var(--bkc-font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--bkc-ink);
  margin: 0 36px 8px 0;
}

.bk-lw-modal__lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bkc-ink-soft);
  margin: 0 0 20px;
}

.bk-lw-modal .bk-lw-signup {
  max-width: none;
}

/* Inline venteliste (beregner-landingssider) */
.bk-wl-inline {
  margin: 0 0 20px;
}

.bk-wl-inline__inner {
  padding: 20px 18px;
  border: 1.5px solid var(--bkc-green);
  border-radius: 16px;
  background: var(--bkc-card);
}

.bk-wl-inline__title {
  margin: 0 0 8px;
  font-family: var(--bkc-font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bkc-ink);
}

.bk-wl-inline__body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bkc-ink-soft);
}

.bk-wl-inline__body-p {
  margin: 0 0 10px;
}

.bk-wl-inline__body-p:last-child {
  margin-bottom: 0;
}

.bk-wl-inline__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 641px) {
  .bk-wl-inline__form {
    flex-direction: row;
    align-items: stretch;
  }

  .bk-wl-inline__fields {
    flex-direction: row;
  }
}

.bk-wl-inline__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 12px 14px;
  border: 1px solid var(--bkc-border);
  border-radius: 12px;
  font-family: var(--bkc-font-sans);
  font-size: 16px;
  line-height: 1.3;
  color: var(--bkc-ink);
  box-sizing: border-box;
  touch-action: manipulation;
}

.bk-wl-inline__input:focus {
  outline: none;
  border-color: var(--bkc-green);
  box-shadow: 0 0 0 3px var(--bkc-green-soft);
}

.bk-wl-inline__btn {
  min-height: 48px;
  height: auto;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: var(--bkc-green);
  color: var(--bkc-card);
  font-family: var(--bkc-font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  touch-action: manipulation;
}

.bk-wl-inline__btn:hover {
  background: var(--bkc-green-dark);
}

.bk-wl-inline__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.bk-wl-inline__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--bkc-ink-mute);
}

.bk-wl-inline__error {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkc-terracotta);
}

.bk-wl-inline__success {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--bkc-green-soft);
  font-size: 14px;
  font-weight: 500;
  color: var(--bkc-ink);
}

[data-wl-form-wrap][data-state="success"] [data-wl-form-panel] {
  display: none;
}

[data-wl-form-wrap][data-state="success"] .bk-wl-inline__success {
  display: block !important;
}

.bk-wl-inline__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bk-wl-inline__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bkc-grey);
  cursor: pointer;
  touch-action: manipulation;
}

.bk-wl-inline__consent-text a {
  color: var(--bkc-green);
}

.bk-wl-inline__sparring {
  margin: 12px 0 0;
  font-size: 12px;
}

.bk-wl-inline__sparring-link {
  color: var(--bkc-green);
  font-weight: 500;
  text-decoration: none;
}

.bk-wl-inline__sparring-link:hover {
  text-decoration: underline;
}

.bk-wl-inline__eyebrow {
  margin: 0 0 8px;
  font-family: var(--bkc-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bkc-green);
}

/* Stacked layout: felter → samtykke → knap (resultatsider + mobil) */
.bk-wl-inline--stacked .bk-wl-inline__form {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.bk-wl-inline--stacked .bk-wl-inline__fields {
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 520px) {
  .bk-wl-inline--stacked .bk-wl-inline__fields {
    flex-direction: row;
    gap: 8px;
  }
}

.bk-wl-inline--stacked .bk-wl-inline__consent {
  margin: 0;
  align-items: flex-start;
}

.bk-wl-inline--stacked .bk-wl-inline__btn {
  width: 100%;
  min-height: 48px;
}

.bk-wl-inline--stacked .bk-wl-inline__note {
  margin-top: 4px;
  text-align: center;
}

.bk-wl-inline--stacked .bk-wl-inline__sparring {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Udbetalingstjek: landing-stripe over chat */
.bk-udb-page-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.bk-udb-page-wrap #udbetalingstjek {
  flex: 1;
  min-height: 0;
}

.bk-wl-inline--udbetaling {
  flex-shrink: 0;
  margin: 12px 16px 0;
}

@media (max-width: 1024px) {
  .bk-wl-inline--udbetaling {
    display: none;
  }
}
