/* VitaTherx — welcome email-capture popup (brand-matched, Klaviyo-ready) */

.vtx-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 48, 47, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.vtx-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.vtx-popup-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #f4f0da;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(36, 48, 47, 0.35);
  padding: 40px 32px 32px;
  text-align: center;
  font-family: var(--vt-body-font, "Inter", sans-serif);
  color: #24302f;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.vtx-popup-overlay.is-open .vtx-popup-card {
  transform: translateY(0) scale(1);
}

.vtx-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #24302f;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vtx-popup-close:hover {
  background: rgba(36, 48, 47, 0.08);
}

.vtx-popup-logo {
  height: 32px;
  width: auto;
  margin-bottom: 18px;
}

.vtx-popup-eyebrow {
  font-family: var(--vt-heading-font, "Montserrat", sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0fa86a;
  margin: 0 0 8px;
}

.vtx-popup-headline {
  font-family: var(--vt-heading-font, "Montserrat", sans-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #24302f;
}

.vtx-popup-subtext {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5654;
  margin: 0 0 24px;
}

.vtx-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vtx-popup-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cfc8a8;
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  color: #24302f;
  background: #fff;
  box-sizing: border-box;
}

.vtx-popup-input:focus {
  outline: none;
  border-color: #0fa86a;
  box-shadow: 0 0 0 3px rgba(15, 168, 106, 0.15);
}

.vtx-popup-submit {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 999px;
  background: #0fa86a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--vt-body-font, "Inter", sans-serif);
  cursor: pointer;
  transition: background 0.15s ease;
}

.vtx-popup-submit:hover {
  background: #24302f;
}

.vtx-popup-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.vtx-popup-error {
  font-size: 12px;
  color: #c22b2b;
  margin: 2px 0 0;
  min-height: 14px;
  text-align: left;
}

.vtx-popup-fineprint {
  font-size: 11px;
  line-height: 1.5;
  color: #7a8482;
  margin: 14px 0 0;
}

.vtx-popup-fineprint a {
  color: #7a8482;
  text-decoration: underline;
}

.vtx-popup-success {
  display: none;
}

.vtx-popup-overlay.is-success .vtx-popup-form-state {
  display: none;
}

.vtx-popup-overlay.is-success .vtx-popup-success {
  display: block;
}

.vtx-popup-success-code {
  display: inline-block;
  margin: 14px 0 4px;
  padding: 10px 20px;
  border: 1px dashed #0fa86a;
  border-radius: 8px;
  font-family: var(--vt-heading-font, "Montserrat", sans-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0fa86a;
  font-size: 16px;
}

@media (max-width: 480px) {
  .vtx-popup-card {
    padding: 32px 22px 26px;
  }
  .vtx-popup-headline {
    font-size: 24px;
  }
}
