/* Popup på funnel-forsiderne. Målene er fra ClickFunnels-originalen (audit 04 afsnit 1.4),
   alt scoped under .ms-popup. Ingen Font Awesome, ingen user_pages.css. */

.ms-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 7, 36, 0.74);
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 3vh 16px 40px;
  font-family: Roboto, "Open Sans", Arial, sans-serif;
  color: #000;
  box-sizing: border-box;
}
.ms-popup.ms-vis { display: flex; }
.ms-popup *, .ms-popup *::before, .ms-popup *::after { box-sizing: border-box; }

.ms-popup-boks {
  position: relative;
  width: 740px;
  max-width: 100%;
  background: #fff;
  padding: 41px 20px 55px;
  margin-top: 4vh;
}

.ms-popup-luk {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.ms-popup-luk:hover { background: #333; }

.ms-popup-inner {
  max-width: 608px;
  margin: 0 auto;
  text-align: center;
}

.ms-popup .ms-popup-h2,
.ms-popup .ms-popup-sub {
  margin: 0;
  padding: 0;
  color: #000;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0;
}
.ms-popup .ms-popup-h2 {
  font-size: 16.9px;
  font-weight: 700;
  margin-bottom: 10px;
}
.ms-popup .ms-popup-sub {
  font-size: 15px;
  font-weight: 500;
  padding-top: 3px;
  margin-bottom: 28px;
}

.ms-popup-form { margin: 0; }

.ms-popup-felt { margin-top: 15px; text-align: left; }
.ms-popup .ms-popup-felt input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  outline: none;
}
.ms-popup-felt input:focus { border-color: rgba(0, 0, 0, 0.45); }
.ms-popup-felt input::placeholder { color: #666; opacity: 1; }

.ms-popup-samtykke {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: #60606b;
  line-height: 1.3;
}
.ms-popup-samtykke input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  position: relative;
  cursor: pointer;
}
.ms-popup-samtykke input[type="checkbox"]:checked { background: #2196F3; border-color: #2196F3; }
.ms-popup-samtykke input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.ms-popup-knapwrap { margin-top: 14px; text-align: center; }
.ms-popup .ms-popup-knap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 10px 25px;
  border-radius: 400px;
  background: #2277f6;
  color: #fff;
  font-size: 18.75px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 12px 24px -8px #2277f6;
  cursor: pointer;
  transition: background-color 0.15s;
}
.ms-popup .ms-popup-knap:hover { background: #438bf7; color: #fff; text-decoration: none; }
.ms-popup .ms-popup-knap:active { background: #0961e5; }
.ms-popup-knap[data-disabled="true"] { pointer-events: none; opacity: 0.9; }

.ms-popup-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ms-popup-spin 0.8s linear infinite;
}
.ms-popup-knap[data-disabled="true"] .ms-popup-spinner { display: inline-block; }
@keyframes ms-popup-spin { to { transform: rotate(360deg); } }

.ms-popup .ms-fejl {
  background: #cd3129;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
}

@media (max-width: 767px) {
  .ms-popup { padding: 2vh 10px 30px; }
  .ms-popup-boks { padding: 32px 16px 40px; margin-top: 5vh; }
  .ms-popup-luk { top: -14px; right: -6px; }
  .ms-popup .ms-popup-h2 { font-size: 18px; }
  .ms-popup .ms-popup-sub { font-size: 16px; }
  /* som originalen: max-width 100 % og centreret via .ms-popup-knapwrap, ikke fuld bredde */
  .ms-popup .ms-popup-knap { font-size: 20px; max-width: 100%; width: auto; }
}
