/* =========================================================
   VHD Erfolg² – Newsletter Popup
   Lokal:
   - Modal Popup Styling
   - Embedded Popup Variante
   - Inline Success / Error States
   Hinweis:
   - basiert auf vhd-global-ui.css
   ========================================================= */

/* =========================================
   Modal Popup
   ========================================= */
#tnp-modal-content {
  max-width: 650px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f172a 0%, #111c34 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

#tnp-modal-close {
  color: #ffffff;
  font-size: 30px;
  top: 14px;
  right: 18px;
}

#tnp-modal-body,
#tnp-modal-html,
#tnp-modal-html .tnp-popup-main {
  background: transparent;
}

#tnp-modal-html {
  color: #e2e8f0;
  padding: 34px 34px 28px;
}

#tnp-modal-html .tnp-popup-pre {
  margin-bottom: 22px;
}

.vhd-popup-badge {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.18);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
}

.vhd-popup-title {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
}

.vhd-popup-text {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.65;
  color: #cbd5e1;
}

.vhd-popup-note {
  font-size: 13px;
  color: rgba(203, 213, 225, 0.76);
  letter-spacing: 0.02em;
}

#tnp-modal-html .tnp-field {
  margin-bottom: 14px;
}

#tnp-modal-html .tnp-field label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

#tnp-modal-html input[type="text"],
#tnp-modal-html input[type="email"] {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 0 16px;
  font-size: 15px;
  box-sizing: border-box;
}

#tnp-modal-html input[type="text"]::placeholder,
#tnp-modal-html input[type="email"]::placeholder {
  color: rgba(203, 213, 225, 0.68);
}

#tnp-modal-html input[type="text"]:focus,
#tnp-modal-html input[type="email"]:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

#tnp-modal-html .tnp-privacy-field {
  margin-top: 6px;
}

#tnp-modal-html .tnp-privacy-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

#tnp-modal-html .tnp-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f766e 0%, #0d645e 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.26);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#tnp-modal-html .tnp-submit:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

#tnp-modal-html .tnp-popup-post {
  margin-top: 16px;
}

.vhd-popup-microcopy {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.82);
}

.vhd-popup-secondary {
  margin: 0;
}

.vhd-popup-secondary a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
}

.vhd-popup-secondary a:hover {
  opacity: 0.84;
}

/* =========================================
   Embedded Popup Variante
   ========================================= */
.vhd-popup-embed {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
}

.vhd-popup-embed #tnp-modal-html {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 34px 34px 28px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 212, 255, 0.10), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(59, 130, 246, 0.10), transparent 24%),
    linear-gradient(180deg, #0f172a 0%, #111c34 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
  box-sizing: border-box;
}

.vhd-popup-embed .tnp-popup-pre,
.vhd-popup-embed .tnp-popup-main,
.vhd-popup-embed .tnp-popup-post {
  background: transparent !important;
}

.vhd-popup-embed .vhd-popup-inline-form,
.vhd-popup-embed .vhd-popup-form-embed {
  width: 100%;
}

.vhd-popup-embed .tnp-field {
  margin-bottom: 14px;
}

.vhd-popup-embed .tnp-field label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.vhd-popup-embed input[type="text"],
.vhd-popup-embed input[type="email"] {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 0 16px;
  font-size: 15px;
  box-sizing: border-box;
}

.vhd-popup-embed input[type="text"]::placeholder,
.vhd-popup-embed input[type="email"]::placeholder {
  color: rgba(203, 213, 225, 0.68);
}

.vhd-popup-embed input[type="text"]:focus,
.vhd-popup-embed input[type="email"]:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.vhd-popup-embed .tnp-privacy-field {
  margin-top: 6px;
}

.vhd-popup-embed .tnp-privacy-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

.vhd-popup-embed .tnp-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f766e 0%, #0d645e 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.26);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.vhd-popup-embed .tnp-submit:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.vhd-popup-embed .vhd-popup-badge {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.18);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
}

.vhd-popup-embed .vhd-popup-title {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
}

.vhd-popup-embed .vhd-popup-text {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.65;
  color: #cbd5e1;
}

.vhd-popup-embed .vhd-popup-note {
  font-size: 13px;
  color: rgba(203, 213, 225, 0.76);
  letter-spacing: 0.02em;
}

.vhd-popup-embed .vhd-popup-microcopy {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.82);
}

.vhd-popup-embed .vhd-popup-secondary {
  margin: 0;
}

.vhd-popup-embed .vhd-popup-secondary a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
}

.vhd-popup-embed .vhd-popup-secondary a:hover {
  opacity: 0.84;
}

/* =========================================
   Inline Success / Error States
   ========================================= */
.vhd-inline-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  text-align: center;
  padding: 24px 10px 10px;
}

.vhd-inline-success-icon {
  margin-bottom: 16px;
}

.vhd-inline-success-text {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: #FFFFFF;
}

.vhd-inline-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #FECACA;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  #tnp-modal-html {
    padding: 26px 20px 22px;
  }

  .vhd-popup-title {
    font-size: 28px;
    line-height: 1.14;
  }

  .vhd-popup-text {
    font-size: 15px;
    line-height: 1.6;
  }

  .vhd-popup-embed #tnp-modal-html {
    padding: 26px 20px 22px;
    border-radius: 18px;
  }

  .vhd-popup-embed .vhd-popup-title {
    font-size: 28px;
    line-height: 1.14;
  }

  .vhd-popup-embed .vhd-popup-text {
    font-size: 15px;
    line-height: 1.6;
  }

  .vhd-inline-success {
    min-height: 220px;
  }

  .vhd-inline-success-text {
    font-size: 22px;
  }
}
