/* StrikeUp Lead Magnets - Popup et formulaire d'acquisition */
.sulm-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 30, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sulm-popup-overlay.sulm-popup-visible {
  display: flex;
  opacity: 1;
}

/* Carte partagee (popup et shortcode inline) */
.sulm-popup-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(7, 8, 158, 0.18);
  border-top: 6px solid #07089E;
  overflow: hidden;
  box-sizing: border-box;
}
.sulm-popup-overlay .sulm-popup-card {
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.sulm-popup-overlay.sulm-popup-visible .sulm-popup-card {
  transform: translateY(0);
}

/* Formulaire integre via shortcode */
.sulm-popup-inline {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.sulm-popup-inline .sulm-popup-card {
  box-shadow: 0 6px 24px rgba(7, 8, 158, 0.10);
}

.sulm-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  font-size: 28px;
  line-height: 1;
  color: #9aa0b4 !important;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 2;
}
.sulm-popup-close:hover { color: #07089E !important; }

.sulm-popup-body { padding: 32px 28px 28px; text-align: center; }

.sulm-popup-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 10px;
}

.sulm-popup-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: #07089E;
  font-weight: 800;
}
.sulm-popup-subtitle {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #3a3f56;
}
.sulm-popup-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7088;
}

.sulm-popup-form { display: flex; flex-direction: column; gap: 10px; }

.sulm-popup-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cdd1e0;
  border-radius: 10px;
  font-size: 15px;
}
.sulm-popup-input:focus {
  outline: none;
  border-color: #07089E;
  box-shadow: 0 0 0 3px rgba(7, 8, 158, 0.12);
}
.sulm-popup-input[readonly] { background: #f4f5fa; color: #6b7088; }

.sulm-popup-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  font-size: 12px;
  color: #6b7088;
  line-height: 1.4;
}
.sulm-popup-consent input { margin-top: 2px; }
.sulm-popup-consent a { color: #07089E; text-decoration: underline; }

.sulm-popup-btn {
  width: 100%;
  padding: 13px 16px;
  background: #07089E !important;
  color: #ffffff !important;
  border: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.sulm-popup-btn:hover { background: #0a0bc4 !important; }
.sulm-popup-btn:active { transform: scale(0.99); }
.sulm-popup-btn[disabled] { opacity: 0.6; cursor: default; }

.sulm-popup-error {
  margin: 4px 0 0;
  color: #c0392b;
  font-size: 13px;
  min-height: 16px;
}

.sulm-popup-successbox { padding-top: 40px; }
.sulm-popup-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #FFF603;
  color: #07089E;
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sulm-popup-success-text { font-size: 15px; color: #3a3f56; line-height: 1.5; margin: 0 0 14px; }

.sulm-popup-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.sulm-popup-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Page de creation de mot de passe */
.sulm-setpw { max-width: 520px; margin: 40px auto; padding: 0 16px; }

/* Bouton d'ouverture du popup (shortcode) */
.sulm-popup-open-wrap { margin: 10px 0; }
.sulm-popup-open-btn {
  display: inline-block;
  background: #07089E !important;
  color: #ffffff !important;
  border: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.sulm-popup-open-btn:hover { background: #0a0bc4 !important; }
.sulm-popup-open-btn:active { transform: scale(0.99); }

@media (max-width: 480px) {
  .sulm-popup-body { padding: 28px 18px 22px; }
  .sulm-popup-title { font-size: 19px; }
}

/* Formulaire seul [sulm_formulaire] : aucune carte, s'intègre au bloc qui l'accueille */
.sulm-popup-inline--bare { display: block; padding: 0; }
.sulm-popup-inline--bare .sulm-popup-card--bare {
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}
.sulm-popup-card--bare .sulm-popup-body { padding: 0 !important; text-align: left; }
.sulm-popup-card--bare .sulm-popup-form { gap: 14px; }
.sulm-popup-card--bare .sulm-popup-input {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0F172A;
  padding: 14px 16px;
  border: 1px solid #E1E7FA;
  border-radius: 14px;
  background: #fff;
}
.sulm-popup-card--bare .sulm-popup-input:focus { border-color: #1F3FD1; box-shadow: 0 0 0 4px rgba(31, 63, 209, 0.12); }
.sulm-popup-card--bare .sulm-popup-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #4B5675;
  line-height: 1.5;
}
.sulm-popup-card--bare .sulm-popup-consent input { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: #0B1E8C; }
.sulm-popup-card--bare .sulm-popup-consent a { color: #0B1E8C; }
.sulm-popup-card--bare .sulm-popup-btn {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  cursor: pointer;
  padding: 16px 24px;
  border-radius: 999px;
  background: #F7E11E !important;
  color: #0B1E8C !important;
  box-shadow: none !important;
  transform: none !important;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.3s ease;
}
.sulm-popup-card--bare .sulm-popup-btn:hover { background: #EAD414 !important; }
.sulm-popup-card--bare .sulm-popup-btn[disabled] { opacity: 0.6; cursor: default; }
.sulm-popup-card--bare .sulm-popup-error { margin: 0; min-height: 0; }
.sulm-popup-card--bare .sulm-popup-error:empty { display: none; }
.sulm-popup-card--bare .sulm-popup-successbox { padding: 8px 0 0 !important; text-align: center; }
