/* ── Free Diet Plan Popup ── */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --fdpp-green:    #16a34a;
  --fdpp-green-lt: #22c55e;
  --fdpp-green-dk: #14532d;
  --fdpp-cream:    #f0fdf4;
  --fdpp-gold:     #fbbf24;
  --fdpp-text:     #0f172a;
  --fdpp-muted:    #64748b;
  --fdpp-radius:   20px;
  --fdpp-shadow:   0 32px 80px rgba(0,0,0,.28);
}

/* ── Overlay ── */
.fdpp-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.fdpp-overlay.fdpp-visible {
  opacity: 1;
  pointer-events: all;
}

/* Backdrop */
.fdpp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 10, .72);
  backdrop-filter: blur(6px);
}

/* ── Modal shell ── */
.fdpp-modal {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 860px;
  min-height: 500px;
  border-radius: var(--fdpp-radius);
  overflow: hidden;
  box-shadow: var(--fdpp-shadow);
  transform: translateY(40px) scale(.96);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
  font-family: 'DM Sans', sans-serif;
}
.fdpp-overlay.fdpp-visible .fdpp-modal {
  transform: translateY(0) scale(1);
}

/* Decorative blobs */
.fdpp-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .18;
  filter: blur(60px);
}
.fdpp-blob-1 {
  width: 280px; height: 280px;
  background: var(--fdpp-green-lt);
  top: -60px; left: -60px;
}
.fdpp-blob-2 {
  width: 200px; height: 200px;
  background: var(--fdpp-gold);
  bottom: -40px; right: 260px;
}

/* ── Close button ── */
.fdpp-close {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 10;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.fdpp-close:hover { background: rgba(255,255,255,.3); }

/* ── Left panel ── */
.fdpp-left {
  flex: 0 0 52%;
  background: linear-gradient(145deg, #14532d 0%, #166534 40%, #15803d 100%);
  padding: 44px 36px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  position: relative;
}

.fdpp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #bbf7d0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 18px;
}

.fdpp-headline {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
}
.fdpp-headline span {
  color: var(--fdpp-gold);
  font-style: italic;
}

.fdpp-sub {
  font-size: .88rem;
  color: #bbf7d0;
  line-height: 1.6;
  margin: 0 0 22px;
}

.fdpp-perks {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fdpp-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: #dcfce7;
}
.fdpp-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--fdpp-gold);
  color: #713f12;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Right panel ── */
.fdpp-right {
  flex: 1;
  background: #fff;
  padding: 40px 36px 40px 32px;
  display: flex;
  align-items: center;
}

.fdpp-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fdpp-text);
  margin: 0 0 22px;
}

/* ── Fields ── */
.fdpp-field {
  margin-bottom: 16px;
}
.fdpp-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--fdpp-text);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.fdpp-req { color: #ef4444; margin-left: 2px; }
.fdpp-opt { color: var(--fdpp-muted); font-weight: 400; font-size: .75rem; }

.fdpp-input-wrap {
  position: relative;
}
.fdpp-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  fill: #94a3b8;
  pointer-events: none;
}
.fdpp-input-wrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--fdpp-text);
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  box-sizing: border-box;
}
.fdpp-input-wrap input:focus {
  border-color: var(--fdpp-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.fdpp-input-wrap input.fdpp-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* ── Submit button ── */
.fdpp-btn {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--fdpp-green) 0%, #15803d 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 4px 16px rgba(22,163,74,.35);
  letter-spacing: .01em;
}
.fdpp-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(22,163,74,.4);
}
.fdpp-btn:active { transform: translateY(0); }

/* ── Error ── */
.fdpp-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .82rem;
  margin-bottom: 14px;
}

/* ── Privacy note ── */
.fdpp-privacy {
  text-align: center;
  font-size: .75rem;
  color: #94a3b8;
  margin: 10px 0 0;
}

/* ── Success state ── */
.fdpp-success-wrap {
  text-align: center;
  padding: 20px 10px;
  animation: fdppFadeIn .5s ease;
}
.fdpp-success-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  animation: fdppBounce .6s ease;
}
.fdpp-success-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--fdpp-green-dk);
  margin: 0 0 10px;
}
.fdpp-success-wrap p {
  font-size: .88rem;
  color: var(--fdpp-muted);
  line-height: 1.6;
}

/* ── Animations ── */
@keyframes fdppFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fdppBounce {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .fdpp-modal {
    flex-direction: column;
    max-width: 420px;
    min-height: unset;
    border-radius: 16px;
  }
  .fdpp-left {
    flex: none;
    padding: 28px 24px 22px;
  }
  .fdpp-headline { font-size: 1.5rem; }
  .fdpp-perks { display: none; }
  .fdpp-sub { display: none; }
  .fdpp-right { padding: 24px 20px; }
  .fdpp-blob { display: none; }
}
@media (max-width: 380px) {
  .fdpp-left { padding: 20px 16px; }
  .fdpp-right { padding: 20px 16px; }
}
