/**
 * Alive4Health Wellness Quiz v2
 */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap");

.a4h-wellness-quiz {
  --teal: #2bbfaa;
  --teal-dk: #1d9e8c;
  --teal-lt: #e4f7f5;
  --coral: #e8534a;
  --coral-dk: #c9413a;
  --gray: #7a7a7a;
  --ink: #1a2e2a;
  --mist: #f2faf8;
  --white: #ffffff;
  --shadow: 0 10px 50px rgba(43, 191, 170, 0.14);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  width: 100%;
  max-width: min(600px, 100%);
  margin: 0 auto;
}

.a4h-wellness-quiz *,
.a4h-wellness-quiz *::before,
.a4h-wellness-quiz *::after {
  box-sizing: border-box;
}

.a4h-wellness-quiz__logo {
  text-align: center;
  margin-bottom: 1.25rem;
}

.a4h-wellness-quiz__logo img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.a4h-wellness-quiz__card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.a4h-wellness-quiz__progress-bar {
  height: 5px;
  background: #d4f0ec;
}

.a4h-wellness-quiz__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dk));
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.a4h-wellness-quiz__foot {
  margin-top: 1.25rem;
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
}

.a4h-wellness-quiz__foot a {
  color: var(--teal);
  text-decoration: none;
}

/* Intro */
.a4h-wellness-quiz__intro-head {
  background: linear-gradient(138deg, var(--teal) 0%, var(--teal-dk) 100%);
  padding: 2.25rem 2.25rem 1.85rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.a4h-wellness-quiz__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  opacity: 0.82;
  margin: 0 0 10px;
}

.a4h-wellness-quiz__intro-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 5.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.a4h-wellness-quiz__intro-sub {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
}

.a4h-wellness-quiz__intro-body {
  padding: 1.75rem 2.25rem 2.25rem;
}

.a4h-wellness-quiz__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.a4h-wellness-quiz__pill {
  background: var(--teal-lt);
  color: var(--teal-dk);
  border-radius: 100px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 600;
}

.a4h-wellness-quiz__intro-p {
  font-size: 15px;
  line-height: 1.75;
  color: #3a4a48;
  margin: 0 0 1.35rem;
}

.a4h-wellness-quiz__intro-p strong {
  color: var(--coral);
}

.a4h-wellness-quiz__trust {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray);
}

.a4h-wellness-quiz__micro {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin: 12px 0 0;
}

/* Section */
.a4h-wellness-quiz__section {
  padding: 3rem 2.25rem;
  text-align: center;
}

.a4h-wellness-quiz__sec-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
}

.a4h-wellness-quiz__sec-num {
  display: inline-block;
  background: var(--teal-lt);
  color: var(--teal-dk);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.a4h-wellness-quiz__sec-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  margin: 0 0 10px;
}

.a4h-wellness-quiz__sec-desc {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* Question */
.a4h-wellness-quiz__question-wrap {
  padding: 1.85rem 2.25rem 2.25rem;
}

.a4h-wellness-quiz__q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.a4h-wellness-quiz__q-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-lt);
  color: var(--teal-dk);
  border-radius: 100px;
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.a4h-wellness-quiz__q-count {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}

.a4h-wellness-quiz__q-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(19px, 3.8vw, 24px);
  font-weight: 600;
  line-height: 1.38;
  margin: 0 0 22px;
}

.a4h-wellness-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.a4h-wellness-quiz__opt {
  border: 2px solid #ddecea;
  border-radius: 13px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  background: #f9fffe;
  text-align: left;
  width: 100%;
}

.a4h-wellness-quiz__opt:hover {
  border-color: var(--teal);
  background: var(--teal-lt);
  transform: translateX(2px);
}

.a4h-wellness-quiz__opt.is-selected {
  border-color: var(--teal);
  background: var(--teal-lt);
}

.a4h-wellness-quiz__opt-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #b8d8d4;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a4h-wellness-quiz__opt.is-selected .a4h-wellness-quiz__opt-radio {
  border-color: var(--teal);
  background: var(--teal);
}

.a4h-wellness-quiz__opt.is-selected .a4h-wellness-quiz__opt-radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.a4h-wellness-quiz__opt-letter {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--teal-lt);
  color: var(--teal-dk);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a4h-wellness-quiz__opt.is-selected .a4h-wellness-quiz__opt-letter {
  background: var(--teal);
  color: #fff;
}

/* Buttons */
.a4h-wellness-quiz__btn {
  margin-top: 26px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dk));
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 16px 28px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.a4h-wellness-quiz__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 191, 170, 0.33);
  color: #fff;
}

.a4h-wellness-quiz__btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.a4h-wellness-quiz__btn--narrow {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.a4h-wellness-quiz__btn--coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-dk));
}

.a4h-wellness-quiz__btn--coral:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(232, 83, 74, 0.33);
}

.a4h-wellness-quiz__btn--coral:disabled {
  background: linear-gradient(135deg, #ccc, #aaa);
}

.a4h-wellness-quiz__btn-outline {
  width: 100%;
  margin-top: 12px;
  padding: 14px 28px;
  background: transparent;
  color: var(--teal-dk);
  border: 2px solid var(--teal);
  border-radius: 13px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.a4h-wellness-quiz__btn-download {
  margin-top: 12px;
  background: #fff;
  color: var(--teal-dk);
  border: 2px solid var(--teal);
  border-radius: 13px;
  padding: 14px 28px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

/* Email gate */
.a4h-wellness-quiz__gate {
  padding: 2.25rem 2.25rem 2.5rem;
  text-align: center;
}

.a4h-wellness-quiz__gate-complete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-lt);
  color: var(--teal-dk);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.a4h-wellness-quiz__gate-icon {
  font-size: 48px;
  margin-bottom: 14px;
  display: block;
}

.a4h-wellness-quiz__gate-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  margin: 0 0 10px;
}

.a4h-wellness-quiz__gate-sub {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 auto 24px;
  max-width: 420px;
}

.a4h-wellness-quiz__teaser {
  background: linear-gradient(135deg, var(--teal-lt), #d0f4f0);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 26px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid rgba(43, 191, 170, 0.2);
}

.a4h-wellness-quiz__teaser-icon {
  font-size: 30px;
  flex-shrink: 0;
}

.a4h-wellness-quiz__teaser-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-dk);
  margin: 0 0 3px;
}

.a4h-wellness-quiz__teaser-text {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

.a4h-wellness-quiz__gr-form-zone {
  background: #f8fffe;
  border: 2px solid rgba(43, 191, 170, 0.25);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 20px;
  text-align: center;
}

.a4h-wellness-quiz__gr-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dk);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.a4h-wellness-quiz__gr-form-zone getresponse-form,
.a4h-wellness-quiz__gr-form-zone getresponse-form > *,
.a4h-wellness-quiz__gr-form-zone getresponse-form iframe,
.a4h-wellness-quiz__gr-form-zone getresponse-form form {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  float: none !important;
}

.a4h-wellness-quiz__gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--gray);
}

.a4h-wellness-quiz__gate-divider::before,
.a4h-wellness-quiz__gate-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddecea;
}

.a4h-wellness-quiz__gr-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  background: var(--teal-lt);
  border-radius: 10px;
  padding: 12px 16px;
  border: 1.5px solid rgba(43, 191, 170, 0.25);
  text-align: left;
}

.a4h-wellness-quiz__gr-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.a4h-wellness-quiz__gate-micro {
  font-size: 12px;
  color: var(--gray);
  margin-top: 12px;
}

.a4h-wellness-quiz__gate-micro.is-success {
  color: var(--teal-dk);
  font-weight: 600;
}

/* Results */
.a4h-wellness-quiz__res-head {
  background: linear-gradient(138deg, #1d9e8c 0%, var(--teal) 55%, #40cfbb 100%);
  padding: 2rem 2.25rem 1.75rem;
  color: #fff;
  text-align: center;
}

.a4h-wellness-quiz__res-eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0 0 8px;
  font-weight: 600;
}

.a4h-wellness-quiz__res-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 700;
  margin: 0 0 8px;
}

.a4h-wellness-quiz__res-subtitle {
  font-size: 14.5px;
  opacity: 0.9;
  line-height: 1.55;
  margin: 0;
}

.a4h-wellness-quiz__res-body {
  padding: 1.75rem 2.25rem 2.5rem;
}

.a4h-wellness-quiz__res-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #3a4a48;
  margin: 0 0 22px;
}

.a4h-wellness-quiz__product-card {
  background: linear-gradient(135deg, var(--teal-lt), #d0f0ec);
  border-radius: 15px;
  padding: 20px 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1.5px solid rgba(43, 191, 170, 0.2);
}

.a4h-wellness-quiz__product-icon {
  font-size: 30px;
  flex-shrink: 0;
}

.a4h-wellness-quiz__product-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-dk);
  margin: 0 0 4px;
}

.a4h-wellness-quiz__product-name {
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 4px;
}

.a4h-wellness-quiz__product-desc {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}

.a4h-wellness-quiz__secondary-card {
  background: #fff7f7;
  border: 1.5px solid rgba(232, 83, 74, 0.15);
  border-radius: 13px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.5;
}

.a4h-wellness-quiz__secondary-card strong {
  color: var(--coral);
}

.a4h-wellness-quiz__discount-box {
  background: linear-gradient(135deg, #fff5f4, #ffe9e8);
  border: 2px dashed rgba(232, 83, 74, 0.4);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 22px;
}

.a4h-wellness-quiz__disc-label {
  font-size: 12px;
  color: var(--gray);
  margin: 0 0 4px;
}

.a4h-wellness-quiz__disc-code {
  font-size: 28px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 4px;
  margin: 0 0 3px;
}

.a4h-wellness-quiz__disc-save {
  font-size: 12px;
  color: var(--gray);
  margin: 0;
}

.a4h-wellness-quiz__res-note {
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  margin: 14px 0 0;
}

.a4h-wellness-quiz__disclaimer {
  background: var(--teal-lt);
  border-top: 1px solid rgba(43, 191, 170, 0.15);
  padding: 16px 36px;
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
}

.fade-in {
  animation: a4hQuizFadeSlide 0.35s ease both;
}

@keyframes a4hQuizFadeSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal */
body.a4h-quiz-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

#a4h-popup-wrap,
.a4h-popup-wrap {
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(1rem, env(safe-area-inset-top, 0))
    max(0.75rem, env(safe-area-inset-right, 0))
    max(1rem, env(safe-area-inset-bottom, 0))
    max(0.75rem, env(safe-area-inset-left, 0));
  z-index: 100500 !important;
}

#a4h-popup-wrap #a4h-popup,
.a4h-popup-wrap #a4h-popup {
  width: 100%;
  max-width: min(600px, 100%);
  margin: 0 auto;
}

#a4h-popup-wrap .a4h-close,
.a4h-popup-wrap .a4h-close {
  top: max(0.5rem, env(safe-area-inset-top, 0));
  right: max(0.5rem, env(safe-area-inset-right, 0));
  width: 40px;
  height: 40px;
}

@media (max-width: 480px) {
  .a4h-wellness-quiz__intro-head,
  .a4h-wellness-quiz__intro-body,
  .a4h-wellness-quiz__section,
  .a4h-wellness-quiz__question-wrap,
  .a4h-wellness-quiz__gate,
  .a4h-wellness-quiz__res-head,
  .a4h-wellness-quiz__res-body,
  .a4h-wellness-quiz__disclaimer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .a4h-wellness-quiz__opt {
    padding: 12px 14px;
    font-size: 14px;
  }

  .a4h-wellness-quiz__trust {
    display: none;
  }
}
