/* ============================================================
   Newsletter Popup – popup.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Molengo&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --lhp-font-title:   'Microsoft Himalaya', serif;
  --lhp-font-sans:    'Molengo', sans-serif;
  --lhp-color-dark:   #1a1a2e;
  --lhp-color-mid:    #555;
  --lhp-color-light:  #888;
  --lhp-color-line:   #d8d2cc;
  --lhp-color-bg:     #fdfcfb;
  --lhp-color-btn:    #1a1a2e;
  --lhp-color-btn-t:  #fff;
  --lhp-radius:       2px;
  --lhp-shadow:       0 8px 48px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  --lhp-transition:   0.35s cubic-bezier(.4,0,.2,1);
}

/* ── Overlay ────────────────────────────────────────────────── */
.lhp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  /* hidden state */
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--lhp-transition), visibility var(--lhp-transition);
}

.lhp-overlay.lhp-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Modal ──────────────────────────────────────────────────── */
.lhp-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 780px;
  width: 100%;
  background: var(--lhp-color-bg);
  box-shadow: var(--lhp-shadow);
  border-radius: var(--lhp-radius);
  overflow: hidden;
  position: relative;

  transform: translateY(24px) scale(.98);
  transition: transform var(--lhp-transition);
}

.lhp-overlay.lhp-visible .lhp-modal {
  transform: translateY(0) scale(1);
}

.lhp-modal.lhp-no-image {
  grid-template-columns: 1fr;
  max-width: 460px;
}

/* ── Image panel ────────────────────────────────────────────── */
.lhp-image {
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

/* ── Content panel ──────────────────────────────────────────── */
.lhp-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lhp-inner {
  padding: 48px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Close button ───────────────────────────────────────────── */
.lhp-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--lhp-color-mid);
  padding: 4px 8px;
  border-radius: 50%;
  transition: color .2s, background .2s;
  z-index: 2;
}

.lhp-close:hover {
  color: var(--lhp-color-dark);
  background: rgba(0,0,0,.06);
}

/* ── Typography ─────────────────────────────────────────────── */
.lhp-title {
  font-family: var(--lhp-font-title);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--lhp-color-dark);
  margin: 0 0 6px;
  line-height: 1.1;
  text-align: center;
}

.lhp-subtitle {
  font-family: var(--lhp-font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--lhp-color-dark);
  margin: 0 0 18px;
  text-align: center;
  line-height: 1.4;
}

.lhp-description {
  font-family: var(--lhp-font-sans);
  font-size: .82rem;
  font-weight: 400;
  color: var(--lhp-color-mid);
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.65;
  letter-spacing: .01em;
}

/* ── CF7 overrides ──────────────────────────────────────────── */
.lhp-cf7-wrapper .wpcf7 {
  margin: 0;
}

.lhp-cf7-wrapper .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Labels – hide CF7 generated labels visually but keep accessible */
.lhp-cf7-wrapper .wpcf7-form p {
  margin: 0;
  position: relative;
}

.lhp-cf7-wrapper label {
  display: block;
  font-family: var(--lhp-font-sans);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lhp-color-mid);
  margin-bottom: 6px;
  font-weight: 400;
}

.lhp-cf7-wrapper input[type="text"],
.lhp-cf7-wrapper input[type="email"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--lhp-color-line);
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  font-family: var(--lhp-font-sans);
  font-size: .9rem;
  color: var(--lhp-color-dark);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

.lhp-cf7-wrapper input[type="text"]:focus,
.lhp-cf7-wrapper input[type="email"]:focus {
  border-color: var(--lhp-color-dark);
}

.lhp-cf7-wrapper input[type="submit"],
.lhp-cf7-wrapper .wpcf7-submit {
  margin-top: 10px;
  background: var(--lhp-color-btn);
  color: var(--lhp-color-btn-t);
  border: none;
  border-radius: 40px;
  padding: 13px 36px;
  font-family: var(--lhp-font-sans);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background .2s, transform .15s;
  font-weight: 400;
}

.lhp-cf7-wrapper input[type="submit"]:hover,
.lhp-cf7-wrapper .wpcf7-submit:hover {
  background: #2d2d50;
  transform: translateY(-1px);
}

/* ── Loader ─────────────────────────────────────────────────── */
.lhp-cf7-wrapper .wpcf7-spinner {
  display: none !important; /* vervangen door eigen loader */
}

.lhp-loader {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.lhp-loader.lhp-loading {
  display: flex;
}

.lhp-loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lhp-color-dark);
  animation: lhpBounce 1.1s ease-in-out infinite;
  opacity: .2;
}

.lhp-loader span:nth-child(1) { animation-delay: 0s; }
.lhp-loader span:nth-child(2) { animation-delay: .18s; }
.lhp-loader span:nth-child(3) { animation-delay: .36s; }

@keyframes lhpBounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .2; }
  40%           { transform: scale(1);  opacity: 1; }
}

.lhp-cf7-wrapper .wpcf7-response-output {
  font-family: var(--lhp-font-sans);
  font-size: .78rem;
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: var(--lhp-radius);
}

.lhp-cf7-wrapper .wpcf7-not-valid-tip {
  font-family: var(--lhp-font-sans);
  font-size: .72rem;
  color: #c0392b;
}

/* ── Privacy ────────────────────────────────────────────────── */
.lhp-privacy {
  font-family: var(--lhp-font-sans);
  font-size: .7rem;
  color: var(--lhp-color-light);
  text-align: center;
  margin: 18px 0 0;
  line-height: 1.6;
}

.lhp-privacy a {
  color: var(--lhp-color-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lhp-privacy a:hover {
  opacity: .7;
}

/* ── No CF7 notice ──────────────────────────────────────────── */
.lhp-no-cf7 {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--lhp-radius);
  padding: 12px 16px;
  font-family: var(--lhp-font-sans);
  font-size: .82rem;
  color: #5d4037;
  text-align: center;
}

/* ── Success state ──────────────────────────────────────────── */
.lhp-success {
  text-align: center;
  padding: 40px 0;
  display: none;
}

.lhp-success-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.lhp-success h3 {
  font-family: var(--lhp-font-title);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--lhp-color-dark);
  margin: 0 0 8px;
}

.lhp-success p {
  font-family: var(--lhp-font-sans);
  font-size: .84rem;
  color: var(--lhp-color-mid);
  margin: 0;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lhp-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .lhp-modal {
    grid-template-columns: 1fr;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    transform: translateY(100%);
  }

  .lhp-overlay.lhp-visible .lhp-modal {
    transform: translateY(0);
  }

  /* Hide image on mobile */
  .lhp-image {
    display: none;
  }

  .lhp-inner {
    padding: 40px 28px 28px;
  }

  .lhp-title {
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  .lhp-inner {
    padding: 36px 20px 24px;
  }
}
