:root {
  /* Cores da marca Mercavo (tiradas do símbolo) */
  --mcv-blue: #2448FF;
  --mcv-blue-dark: #1A36D1;
  --mcv-lavender: #B9C8FF;
  --mcv-lavender-soft: #EEF2FF;

  /* Fundo claro */
  --mcv-bg: #FFFFFF;
  --mcv-bg-alt: #F5F7FF;
  --mcv-input-bg: #FFFFFF;
  --mcv-text: #040A24; /* azul-marinho do logo */
  --mcv-text-muted: #5A6485;
  --mcv-border: #D9DFF2;
  --mcv-error: #C62F3B;

  --font-main: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--mcv-bg);
  color: var(--mcv-text);
  font-family: var(--font-main);
}

.wizard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---------- Brand panel ---------- */
.wizard__brand {
  position: relative;
  background:
    radial-gradient(circle at 12% 10%, rgba(36, 72, 255, 0.10), transparent 42%),
    radial-gradient(circle at 90% 92%, rgba(185, 200, 255, 0.65), transparent 50%),
    linear-gradient(160deg, var(--mcv-bg-alt) 0%, var(--mcv-lavender-soft) 100%);
  border-right: 1px solid var(--mcv-border);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

[hidden] { display: none !important; }

.wizard__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mcv-text);
  position: relative;
  z-index: 1;
}

.wizard__logo img { height: 34px; width: auto; display: block; }

.wizard__brand-content {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.wizard__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mcv-blue);
  background: #FFFFFF;
  border: 1px solid var(--mcv-lavender);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.wizard__headline {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.wizard__headline .hl {
  color: var(--mcv-blue);
  background: linear-gradient(transparent 68%, rgba(185, 200, 255, 0.7) 68%);
}

.wizard__subheadline {
  font-size: 17px;
  line-height: 1.6;
  color: var(--mcv-text-muted);
  margin: 0 0 32px;
}

.wizard__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: #FFFFFF;
  border: 1px solid var(--mcv-border);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 6px 20px rgba(36, 72, 255, 0.06);
}

.stat__number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--mcv-blue);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat__label {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mcv-text-muted);
}

.wizard__brand-footer {
  font-size: 13px;
  color: var(--mcv-text-muted);
  position: relative;
  z-index: 1;
}

/* ---------- Form panel ---------- */
.wizard__panel {
  background: var(--mcv-bg);
  display: flex;
  flex-direction: column;
  padding: 40px 64px;
  position: relative;
}

.wizard__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.wizard__back {
  background: #FFFFFF;
  border: 1px solid var(--mcv-border);
  color: var(--mcv-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  flex: none;
}

.wizard__back:hover { border-color: var(--mcv-blue); color: var(--mcv-blue); }
.wizard__back[disabled] { opacity: 0; pointer-events: none; }

.wizard__progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--mcv-lavender-soft);
  overflow: hidden;
}

.wizard__progress-bar {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--mcv-lavender), var(--mcv-blue));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.wizard__step-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--mcv-text-muted);
  flex: none;
  min-width: 32px;
}

.wizard__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  width: 100%;
}

.step {
  display: none;
  animation: stepIn 0.35s ease;
}

.step.is-active { display: block; }

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

.step__eyebrow {
  font-size: 14px;
  color: var(--mcv-blue);
  font-weight: 700;
  margin: 0 0 8px;
}

.step__question {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 28px;
}

.step__input {
  width: 100%;
  background: var(--mcv-input-bg);
  border: 1.5px solid var(--mcv-border);
  border-radius: 10px;
  color: var(--mcv-text);
  font-family: var(--font-main);
  font-size: 16px;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.step__input::placeholder { color: #8C94B0; }

.step__input:focus {
  border-color: var(--mcv-blue);
  box-shadow: 0 0 0 4px rgba(36, 72, 255, 0.12);
}

.step__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%235A6485' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.step__select option { background: #FFFFFF; color: var(--mcv-text); }

.step__textarea { resize: vertical; min-height: 110px; }

.step__error {
  min-height: 18px;
  color: var(--mcv-error);
  font-size: 13px;
  margin: 8px 0 0;
}

/* Phone field */
.phone-field {
  display: flex;
  gap: 10px;
}

.phone-field__number { flex: 1; min-width: 0; }

.country-select {
  position: relative;
  flex: none;
}

.country-select__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-width: 96px;
  background: var(--mcv-input-bg);
  border: 1.5px solid var(--mcv-border);
  border-radius: 10px;
  color: var(--mcv-text);
  font-family: var(--font-main);
  font-size: 16px;
  padding: 16px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.country-select__trigger:hover,
.country-select.is-open .country-select__trigger {
  border-color: var(--mcv-blue);
}

.country-select.is-open .country-select__trigger {
  box-shadow: 0 0 0 4px rgba(36, 72, 255, 0.12);
}

.country-select__trigger svg {
  margin-left: auto;
  flex: none;
  opacity: 0.7;
}

.country-select__flag {
  border-radius: 3px;
  flex: none;
  display: block;
}

.country-select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px;
  width: 220px;
  max-height: 260px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid var(--mcv-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(11, 22, 64, 0.14);
}

.country-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--mcv-text);
}

.country-select__option:hover,
.country-select__option:focus {
  background: var(--mcv-lavender-soft);
  outline: none;
}

.country-select__option img {
  border-radius: 3px;
  flex: none;
}

.country-select__option-ddi {
  margin-left: auto;
  color: var(--mcv-text-muted);
}

/* Consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--mcv-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--mcv-blue);
  flex: none;
}

.consent a { color: var(--mcv-blue); }

/* Actions */
.wizard__actions {
  margin-top: 32px;
  display: flex;
}

.btn {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 15px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.btn--primary {
  background: var(--mcv-blue);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(36, 72, 255, 0.28);
}

.btn--primary:hover { background: var(--mcv-blue-dark); transform: translateY(-1px); }
.btn--primary:focus-visible { outline: 3px solid var(--mcv-lavender); outline-offset: 2px; }
.btn--primary[disabled] { opacity: 0.6; cursor: default; transform: none; }

.wizard__legal {
  margin-top: 20px;
  font-size: 12px;
  color: var(--mcv-text-muted);
}

.wizard__legal a { color: var(--mcv-text-muted); text-decoration: underline; }

/* Honeypot */
#field_website { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Botão de entrada — só aparece no mobile (tela de boas-vindas) */
.mobile-intro-cta {
  display: none;
  margin-top: 28px;
  width: 100%;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard__brand { display: none; padding: 28px 20px 32px; border-right: none; }
  .wizard__panel { padding: 28px 20px 40px; }

  .mobile-intro-cta { display: inline-flex; }

  .wizard.mobile-gate-active .wizard__brand {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow-y: auto;
  }

  .wizard.mobile-gate-active .wizard__panel { display: none; }
}

@media (max-width: 480px) {
  .wizard__stats { grid-template-columns: 1fr; gap: 8px; }
  .stat { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; }
  .stat__number { font-size: 20px; margin: 0; flex: none; }
  .wizard__subheadline { font-size: 16px; }
}
