:root {
  --blue: #001DE2;
  --blue-mid: #0640B8;
  --muted: #9E9E9E;
  --white: #FFFFFF;
  --bg: #F3F3F3;

  --font-head: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Poppins', sans-serif;

  --px: clamp(20px, 5.9vw, 113px);
  --header-h: clamp(60px, 4.69vw, 90px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* =============================================
   HEADER
   ============================================= */
.qz-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.qz-header__logo img {
  height: clamp(28px, 2.2vw, 40px);
  width: auto;
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.qz-progress {
  width: 100%;
  padding: clamp(14px, 1.6vw, 24px) var(--px) 0;
  background: var(--white);
}

.qz-progress__label {
  font-size: clamp(12px, 0.85vw, 14px);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: center;
}

.qz-progress__track {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,29,226,0.1);
  overflow: hidden;
}

.qz-progress__fill {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, var(--blue-mid) 0%, var(--blue) 100%);
  transition: width 0.3s ease;
}

body[data-active-step="start"] .qz-progress,
body[data-active-step="thanks"] .qz-progress {
  display: none;
}

/* =============================================
   APP / STEPS
   ============================================= */
.qz-app {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 60px) var(--px) clamp(110px, 8vw, 140px);
  background: var(--bg);
}

.qz-step {
  display: none;
  width: 100%;
  animation: qzFadeIn 0.35s ease;
}

.qz-step.is-active { display: block; }

/* No fixed Back/Continue bar on start/thanks, so no need to reserve space for it */
body[data-active-step="start"] .qz-app,
body[data-active-step="thanks"] .qz-app {
  padding-bottom: clamp(24px, 4vw, 60px);
}

@keyframes qzFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   START SCREEN
   ============================================= */
.qz-step--start { max-width: 1280px; margin: 0 auto; }

.qz-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
}

.qz-start__text { flex: 0 1 560px; }

.qz-tag {
  display: inline-flex;
  align-items: center;
  font-size: clamp(11px, 0.73vw, 14px);
  font-weight: 500;
  color: var(--blue);
  background: rgba(0, 29, 226, 0.08);
  border: 1px solid rgba(0, 29, 226, 0.2);
  border-radius: 999px;
  padding: 6px 16px;
  letter-spacing: -0.01em;
  margin-bottom: clamp(14px, 1.6vw, 22px);
}

.qz-heading {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.6vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(12px, 1.2vw, 20px);
  background: radial-gradient(ellipse at 30% 50%, var(--blue-mid) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qz-subtext {
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 clamp(20px, 2.2vw, 32px);
  max-width: 480px;
}

.qz-start__art {
  flex: 1 1 480px;
  display: flex;
  justify-content: center;
}

.qz-start__art img {
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
}

.qz-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 2.5vw, 36px);
  margin-top: clamp(28px, 3vw, 44px);
}

.qz-trust__item { display: flex; align-items: center; gap: 8px; }

.qz-trust__stars { color: #00B67A; font-size: 16px; letter-spacing: 1px; }

.qz-trust__rating { display: flex; flex-direction: column; line-height: 1.1; }

.qz-trust__label { font-size: 11px; color: #6b6b6b; font-weight: 500; }

.qz-trust__score { font-family: var(--font-head); font-size: 18px; font-weight: 700; }

.qz-trust__count { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--blue); }

.qz-trust__caption { font-size: 13px; color: #555; }

/* =============================================
   FEATURE STRIP (start screen)
   ============================================= */
.qz-features {
  list-style: none;
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: clamp(16px, 1.6vw, 22px) clamp(18px, 2vw, 26px);
  background: var(--white);
  border: 1px solid rgba(0, 29, 226, 0.12);
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.qz-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qz-feature__icon {
  flex: 0 0 auto;
  width: clamp(38px, 3vw, 46px);
  height: clamp(38px, 3vw, 46px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: radial-gradient(ellipse at center, var(--blue-mid) 0%, var(--blue) 100%);
}

.qz-feature__icon svg {
  width: 58%;
  height: 58%;
}

.qz-feature__label {
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #111;
  text-align: left;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 600;
  color: var(--white);
  background: radial-gradient(ellipse at center, var(--blue-mid) 0%, var(--blue) 100%);
  padding: clamp(13px, 1.2vw, 17px) clamp(28px, 2.4vw, 38px);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity .2s, transform .15s;
}
.btn-cta:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.btn-cta:active:not(:disabled) { transform: translateY(0); }
.btn-cta:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* =============================================
   QUESTION
   ============================================= */
.qz-question { max-width: 640px; margin: 0 auto; text-align: center; }

.qz-question__title {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.qz-question__hint {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin: -20px 0 24px;
}

.qz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.qz-option {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  position: relative;
}

.qz-option:hover { border-color: rgba(0,29,226,0.4); }

.qz-option.is-selected {
  border-color: var(--blue);
  background: rgba(0, 29, 226, 0.06);
  color: var(--blue-mid);
  font-weight: 600;
}

.qz-option.is-selected::after {
  content: '✓';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-weight: 700;
}

.qz-message {
  display: none;
  text-align: left;
  background: var(--blue);
  border-radius: 16px;
  padding: 18px 22px;
  color: var(--white);
  margin-top: 8px;
}

.qz-message.is-visible { display: block; animation: qzFadeIn 0.3s ease; }

.qz-message strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  margin-bottom: 6px;
}

.qz-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
}

/* =============================================
   FORM
   ============================================= */
.qz-form {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qz-form__title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--blue-mid);
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.qz-form__sub {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin: -6px 0 4px;
}

.qz-field { display: flex; flex-direction: column; gap: 6px; }

.qz-field__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.qz-field__input {
  height: 48px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #000;
  background: var(--white);
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.qz-field__input:focus { border-color: var(--blue); }
.qz-field__input::placeholder { color: var(--muted); }

.qz-field__req { color: #dc3545; }
.qz-field__opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.qz-field__hint { font-size: 12px; color: var(--muted); margin: -4px 0 0; }

/* ── intl-tel-input (WhatsApp field) ─────────────────────────────── */
.qz-field .iti { width: 100%; }
.qz-field .iti__tel-input { /* alias used by newer versions */ }
.qz-field .iti > .qz-field__input { padding-left: 52px; }
.iti__dropdown-content { font-family: var(--font-body); }
.iti__search-input { font-family: var(--font-body); font-size: 14px; }
/* Invalid state after validation */
.qz-field__input.is-invalid { border-color: #dc3545; }

.qz-form__error {
  display: none;
  color: #dc3545;
  font-size: 13px;
  font-weight: 500;
  margin: -4px 0 0;
}

.qz-form__error.is-visible { display: block; }

.qz-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
  margin-top: 4px;
}
.qz-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }
.qz-consent a { color: var(--blue); text-decoration: underline; }

/* =============================================
   THANKS
   ============================================= */
.qz-thanks {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.qz-thanks__icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--blue-mid) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: qzPulse 2s infinite;
}

.qz-thanks__icon::before {
  content: '✓';
  font-size: 44px;
  color: var(--white);
  font-weight: bold;
}

@keyframes qzPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,29,226,0.4); }
  70%  { box-shadow: 0 0 0 18px rgba(0,29,226,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,29,226,0); }
}

.qz-thanks__heading {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  margin: 0 0 12px;
}

.qz-thanks__message {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 28px;
}

/* =============================================
   NAV (Back / Continue)
   ============================================= */
.qz-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px var(--px);
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.07);
  z-index: 20;
}

.qz-nav__back {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 12px 18px;
  visibility: visible;
}

.qz-nav__back.is-hidden { visibility: hidden; }

.qz-nav__continue { min-width: 180px; }

body[data-active-step="start"] .qz-nav,
body[data-active-step="thanks"] .qz-nav {
  display: none;
}

/* =============================================
   FOOTER
   ============================================= */
.qz-footer {
  width: 100%;
  padding: clamp(14px, 1.6vw, 22px) var(--px);
  background: #060606;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.qz-footer__logo { width: 84px; filter: brightness(0) invert(1); }

@media (min-width: 701px) {
  .qz-footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 24px;
  }
}

.qz-footer__copy { font-size: 14px; color: var(--white); margin: 0; }

.qz-footer__links { display: flex; gap: 24px; }

.qz-footer__links a { font-size: 14px; color: var(--white); transition: opacity .2s; }
.qz-footer__links a:hover { opacity: .7; }

/* Footer only makes sense where the fixed Back/Continue bar isn't covering it */
.qz-footer { display: none; }

body[data-active-step="start"] .qz-footer,
body[data-active-step="thanks"] .qz-footer {
  display: flex;
}

/* =============================================
   LEGAL MODAL
   ============================================= */
.qz-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.qz-modal.is-open { display: flex; }

.qz-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

.qz-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  animation: qzModalIn 0.12s ease-out;
}

.qz-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  background: transparent;
  border: 0;
  font-size: 32px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  padding: 4px 10px;
}
.qz-modal__close:hover { color: #000; }

body.qz-modal-open { overflow: hidden; }

.qz-legal {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 44px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  color: #333;
  line-height: 1.55;
}
.qz-legal__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 14px;
}
.qz-legal h3 { font-family: var(--font-head); font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; color: #111; margin: 22px 0 8px; }
.qz-legal h4 { font-size: clamp(14px, 1.1vw, 16px); font-weight: 600; color: #222; margin: 14px 0 6px; }
.qz-legal p { font-size: clamp(13px, 0.9vw, 15px); margin: 0 0 10px; }
.qz-legal ul { margin: 0 0 12px; padding-left: 20px; }
.qz-legal li { font-size: clamp(13px, 0.9vw, 15px); margin-bottom: 7px; }
.qz-legal__copy { margin-top: 22px; padding-top: 14px; border-top: 1px solid #eee; font-size: 13px; color: #888; }

@keyframes qzModalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .qz-start { flex-direction: column; text-align: center; }
  .qz-start__text { flex: none; width: 100%; }
  .qz-subtext { margin-left: auto; margin-right: auto; }
  .qz-start__art { flex: none; width: 100%; }
  .qz-trust { justify-content: center; }
}

@media (max-width: 768px) {
  .qz-app { padding: 24px 20px 130px; }
  .qz-question__title { font-size: 22px; }
  .qz-form { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .qz-header { height: 56px; }
  .qz-header__logo img { height: 26px; }

  .qz-heading { font-size: 30px; }
  .qz-subtext { font-size: 14px; }
  .qz-start__art img { border-radius: 14px; }

  .qz-trust { gap: 14px; justify-content: center; }
  .qz-trust__caption { font-size: 12px; }

  .qz-features { grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 16px; }
  .qz-feature { gap: 10px; }

  .qz-question__title { font-size: 20px; }
  .qz-option { padding: 14px 18px; font-size: 14px; }

  .qz-nav { padding: 12px 16px; gap: 10px; }
  .qz-nav__continue { min-width: 140px; }
  .btn-cta { font-size: 14px; padding: 13px 24px; }

  .qz-thanks__icon { width: 70px; height: 70px; }
  .qz-thanks__icon::before { font-size: 34px; }
  .qz-thanks__heading { font-size: 26px; }

  .qz-footer__links { flex-direction: column; gap: 10px; }
}
