/* ================================================================
   LEAD CAPTURE POPUP
================================================================ */

.hs-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--hs-color-bg-overlay);
  z-index: var(--hs-z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--hs-space-5);
  animation: hs-popup-overlay-in var(--hs-duration-normal) var(--hs-ease-out);
}

.hs-popup-overlay.hs-popup-active {
  display: flex;
}

@keyframes hs-popup-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hs-popup-modal {
  background: var(--hs-color-bg-card);
  border-radius: var(--hs-radius-xl);
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  position: relative;
  animation: hs-popup-modal-in var(--hs-duration-slow) var(--hs-ease-spring);
  font-family: var(--hs-font-body);
  box-shadow: var(--hs-shadow-2xl);
}

@keyframes hs-popup-modal-in {
  from { transform: translateY(var(--hs-space-6)); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hs-popup-close {
  position: absolute;
  top: var(--hs-space-3);
  right: var(--hs-space-3-5);
  background: none;
  border: none;
  color: var(--hs-color-text-tertiary);
  font-size: var(--hs-text-xl);
  cursor: pointer;
  line-height: var(--hs-leading-none);
  padding: var(--hs-space-1) var(--hs-space-2);
  z-index: var(--hs-z-raised);
  transition: var(--hs-transition-colors);
}

.hs-popup-close:hover {
  color: var(--hs-color-text-brand);
}

/* Left panel */
.hs-popup-left {
  background: var(--hs-gradient-dark-section);
  padding: var(--hs-space-8) var(--hs-space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--hs-space-5);
}

.hs-popup-badge {
  background: var(--hs-color-bg-glass-light);
  border: var(--hs-border-1) solid var(--hs-color-border-inverse-strong);
  color: var(--hs-palette-navy-100);
  font-size: var(--hs-text-xs);
  letter-spacing: var(--hs-tracking-wider);
  text-transform: uppercase;
  padding: var(--hs-space-1-5) var(--hs-space-3);
  border-radius: var(--hs-radius-full);
  font-weight: var(--hs-font-medium);
}

.hs-popup-medical-svg {
  width: 90px;
  height: 90px;
}

.hs-popup-left-title {
  color: var(--hs-color-text-inverse);
  font-family: var(--hs-font-display);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-font-semibold);
  text-align: center;
  line-height: var(--hs-leading-relaxed);
}

.hs-popup-left-title span {
  color: var(--hs-palette-navy-100);
  font-weight: var(--hs-font-normal);
  font-size: var(--hs-text-xs);
  display: block;
  margin-top: var(--hs-space-1-5);
}

.hs-popup-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-2);
  width: 100%;
}

.hs-popup-trust li {
  display: flex;
  align-items: center;
  gap: var(--hs-space-2);
  color: var(--hs-palette-navy-100);
  font-size: var(--hs-text-xs);
}

.hs-popup-trust li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--hs-radius-full);
  background: var(--hs-palette-navy-300);
  flex-shrink: 0;
}

/* Right panel */
.hs-popup-right {
  padding: var(--hs-space-7) var(--hs-space-7) var(--hs-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-3);
}

.hs-popup-heading {
  font-family: var(--hs-font-display);
  font-size: var(--hs-text-xl);
  font-weight: var(--hs-font-bold);
  color: var(--hs-color-text-brand);
  line-height: var(--hs-leading-subhead);
}

.hs-popup-subtext {
  font-size: var(--hs-text-sm);
  color: var(--hs-color-text-secondary);
  line-height: var(--hs-leading-normal);
  margin-top: calc(-1 * var(--hs-space-1));
}

.hs-popup-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hs-space-2-5);
}

.hs-popup-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-1);
}

.hs-popup-form-group.hs-popup-full {
  grid-column: 1 / -1;
}

.hs-popup-form-group label {
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-font-semibold);
  color: var(--hs-color-text-brand);
  text-transform: uppercase;
  letter-spacing: var(--hs-tracking-wide);
}

.hs-popup-form-group label span {
  color: var(--hs-color-text-danger);
}

.hs-popup-form-group input,
.hs-popup-form-group select {
  border: var(--hs-border-2) solid var(--hs-input-border);
  border-radius: var(--hs-input-radius);
  padding: var(--hs-space-2-5) var(--hs-space-3);
  font-size: var(--hs-text-sm);
  color: var(--hs-input-color);
  font-family: var(--hs-font-body);
  outline: none;
  background: var(--hs-input-bg);
  box-shadow: none;
  width: 100%;
  transition: var(--hs-input-transition);
  -webkit-appearance: none;
  appearance: none;
}

.hs-popup-form-group input:focus,
.hs-popup-form-group select:focus {
  border-color: var(--hs-input-border-focus);
}

.hs-popup-cta {
  background: var(--hs-btn-primary-bg);
  color: var(--hs-btn-primary-color);
  border: none;
  border-radius: var(--hs-radius-md);
  padding: var(--hs-space-3-5) var(--hs-space-5);
  font-family: var(--hs-font-display);
  font-size: var(--hs-text-base);
  font-weight: var(--hs-font-semibold);
  cursor: pointer;
  width: 100%;
  letter-spacing: var(--hs-tracking-wide);
  transition: var(--hs-transition-colors);
  margin-top: var(--hs-space-1);
}

.hs-popup-cta:hover {
  background: var(--hs-btn-primary-bg-hover);
}

.hs-popup-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hs-popup-privacy {
  font-size: var(--hs-text-xs);
  color: var(--hs-color-text-tertiary);
  text-align: center;
  line-height: var(--hs-leading-normal);
}

.hs-popup-msg {
  font-size: var(--hs-text-sm);
  padding: var(--hs-space-2) var(--hs-space-3);
  border-radius: var(--hs-radius-md);
  display: none;
}

.hs-popup-msg--success {
  background: var(--hs-color-bg-success);
  color: var(--hs-color-text-success);
  display: block;
}

.hs-popup-msg--error {
  background: var(--hs-color-bg-danger);
  color: var(--hs-color-text-danger);
  display: block;
}

/* Mobile */
@media (max-width: 600px) {
  .hs-popup-modal {
    grid-template-columns: 1fr;
  }

  .hs-popup-left {
    padding: var(--hs-space-6) var(--hs-space-5) var(--hs-space-5);
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--hs-space-3);
  }

  .hs-popup-medical-svg {
    width: 50px;
    height: 50px;
  }

  .hs-popup-trust {
    display: none;
  }

  .hs-popup-right {
    padding: var(--hs-space-5);
  }

  .hs-popup-form-row {
    grid-template-columns: 1fr;
  }

  .hs-popup-form-group.hs-popup-full {
    grid-column: 1;
  }
}
