/* Kompf Newsletter — påmeldings-skjema */
.kompf-nl {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(3, 52, 89, 0.05);
  max-width: 600px;
  margin-block: 2rem;
}
.kompf-nl__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.kompf-nl__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(244, 161, 0, 0.12);
  color: #C58000;
  border-radius: 50%;
  font-size: 18px;
}
.kompf-nl__heading {
  margin: 0;
  font-size: 20px;
  color: #033459;
}
.kompf-nl__intro {
  margin: 0 0 1rem;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}
.kompf-nl__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.kompf-nl__label {
  flex: 1 1 200px;
  min-width: 0;
}
.kompf-nl__form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: #033459;
}
.kompf-nl__form input[type="email"]:focus {
  outline: none;
  border-color: #F4A100;
  box-shadow: 0 0 0 3px rgba(244, 161, 0, 0.18);
}
.kompf-nl__submit {
  background: #F4A100;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  flex: 0 0 auto;
}
.kompf-nl__submit:hover:not(:disabled) {
  background: #C58000;
  transform: translateY(-1px);
}
.kompf-nl__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.kompf-nl__feedback {
  flex: 1 0 100%;
  margin: 0.5rem 0 0;
  font-size: 13px;
  min-height: 1.4em;
}
.kompf-nl__feedback.is-success { color: #047857; }
.kompf-nl__feedback.is-error   { color: #b91c1c; }

/* === Footer-variant: kompakt, mørk bakgrunn === */
.kompf-nl--footer.kompf-nl {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
  padding: 1rem 1.1rem 1.1rem;
  margin: 1.25rem 0 0;
  max-width: none;
}
.kompf-nl--footer .kompf-nl__head {
  margin-bottom: 0.35rem;
}
.kompf-nl--footer .kompf-nl__icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  background: rgba(244, 161, 0, 0.22);
}
.kompf-nl--footer .kompf-nl__heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}
.kompf-nl--footer .kompf-nl__intro {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.kompf-nl--footer .kompf-nl__form input[type="email"] {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
  font-size: 14px;
  padding: 0.6rem 0.8rem;
}
.kompf-nl--footer .kompf-nl__submit {
  padding: 0.6rem 1rem;
  font-size: 13px;
}
.kompf-nl--footer .kompf-nl__feedback {
  color: rgba(255, 255, 255, 0.85);
}
.kompf-nl--footer .kompf-nl__feedback.is-success { color: #6ee7b7; }
.kompf-nl--footer .kompf-nl__feedback.is-error   { color: #fca5a5; }

/* Status-melding på toppen av siden etter confirm/unsub */
.kompf-nl-status {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #033459;
  color: #fff;
  padding: 0.85rem 2.5rem 0.85rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(3, 52, 89, 0.25);
  font-size: 14px;
  z-index: 99999;
  max-width: calc(100vw - 2rem);
}
.kompf-nl-status.is-error {
  background: #b91c1c;
}
.kompf-nl-status__close {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  line-height: 1;
}
