/* ============================================================
   MODAL-DIAGNOSTIC.CSS — Popup Formulário de Diagnóstico em 4 Passos
   Estilo: Editorial Minimalista + Laranja Bou (#FF6A00 / #FF5500)
   ============================================================ */

/* ─── BACKDROP & WRAPPER ───────────────────────────────────── */
.bou-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bou-popup-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ─── MODAL CONTAINER ──────────────────────────────────────── */
.bou-popup-container {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              max-width 0.3s ease;
}

.bou-popup-container.has-calendly {
  max-width: 760px;
}

.bou-popup-backdrop.active .bou-popup-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ─── MODAL HEADER ─────────────────────────────────────────── */
.bou-popup-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #FFFFFF;
  position: relative;
  z-index: 2;
}

.bou-popup-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bou-popup-logo {
  height: 22px;
  width: auto;
  display: block;
}

.bou-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FF5500;
  background: rgba(255, 85, 0, 0.08);
  border: 1px solid rgba(255, 85, 0, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.bou-popup-close-btn {
  background: #F5F5F4;
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #78716C;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
}

.bou-popup-close-btn:hover {
  background: #0C0A09;
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* ─── PROGRESS BAR ─────────────────────────────────────────── */
.bou-popup-progress-wrap {
  padding: 12px 24px 10px;
  background: #FAFAF9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bou-popup-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bou-popup-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FF5500;
}

.bou-popup-step-title-preview {
  font-size: 0.78rem;
  font-weight: 500;
  color: #78716C;
}

.bou-popup-progress-track {
  width: 100%;
  height: 6px;
  background: #E7E5E4;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.bou-popup-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #FF5500, #FF7733);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── MODAL BODY (SCROLLABLE) ──────────────────────────────── */
.bou-popup-body {
  padding: 24px 28px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}

.bou-popup-body::-webkit-scrollbar {
  width: 6px;
}
.bou-popup-body::-webkit-scrollbar-track {
  background: transparent;
}
.bou-popup-body::-webkit-scrollbar-thumb {
  background: #D6D3D1;
  border-radius: 999px;
}

/* ─── STEPS CONTAINER ──────────────────────────────────────── */
.bou-step-panel {
  display: none;
  animation: bouFadeStep 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bou-step-panel.active {
  display: block;
}

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

/* ─── HOOK DE LUCRATIVIDADE (PASSO 1) ──────────────────────── */
.bou-step-hook {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(255, 85, 0, 0.22);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px -2px rgba(255, 85, 0, 0.08);
}

.bou-step-hook::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #FF6A00 0%, #FF3D00 100%);
  border-radius: 4px 0 0 4px;
}

.bou-hook-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #EA580C;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.2);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.bou-hook-dot {
  width: 7px;
  height: 7px;
  background: #FF5500;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 85, 0, 0.6);
  animation: bouDotPulse 1.8s infinite ease-in-out;
}

.bou-hook-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0C0A09;
  letter-spacing: -0.02em;
  line-height: 1.32;
  margin: 0 0 6px 0;
}

.bou-hook-highlight-orange {
  color: #FF5500;
  background: linear-gradient(135deg, #FF6A00 0%, #FF3D00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  font-weight: 900;
}

.bou-hook-sub {
  font-size: 0.86rem;
  color: #57534E;
  line-height: 1.45;
  margin: 0;
}

.bou-step-header {
  margin-bottom: 18px;
}

.bou-step-h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0C0A09;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.bou-step-desc {
  font-size: 0.92rem;
  color: #78716C;
  margin: 0;
  line-height: 1.5;
}

/* ─── CARD OPTIONS GRID (PASSO 1 & 2) ──────────────────────── */
.bou-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bou-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: #FFFFFF;
  border: 1.5px solid #E7E5E4;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
  width: 100%;
  color: #292524;
}

.bou-option-card:hover {
  border-color: #FF5500;
  background: rgba(255, 85, 0, 0.02);
  transform: translateY(-1px);
}

.bou-option-card.selected {
  border-color: #FF5500;
  background: rgba(255, 85, 0, 0.06);
  box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.15);
}

.bou-option-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bou-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #F5F5F4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.bou-option-card.selected .bou-option-icon {
  background: #FF5500;
  color: #FFFFFF;
}

.bou-option-text {
  display: flex;
  flex-direction: column;
}

.bou-option-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0C0A09;
}

.bou-option-subtitle {
  font-size: 0.8rem;
  color: #78716C;
  margin-top: 1px;
}

.bou-option-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D6D3D1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bou-option-card.selected .bou-option-radio-indicator {
  border-color: #FF5500;
  background: #FF5500;
}

.bou-option-card.selected .bou-option-radio-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
}

/* ─── FORM FIELDS (PASSO 3) ────────────────────────────────── */
.bou-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bou-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bou-field-group.full-width {
  grid-column: 1 / -1;
}

.bou-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #292524;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bou-field-label span.req {
  color: #FF5500;
}

.bou-field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Container Composto de Telefone com DDI do País */
.bou-phone-compound-wrap {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
  gap: 8px;
}

.bou-country-select-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px 0 12px;
  background: #FAFAF9;
  border: 1.5px solid #E7E5E4;
  border-radius: 12px;
  flex: 0 0 auto;
  min-width: 96px;
  transition: all 0.2s ease;
  user-select: none;
}

.bou-country-select-box:hover,
.bou-country-select-box:focus-within {
  background: #FFFFFF;
  border-color: #FF5500;
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.12);
}

.bou-country-flag {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-block;
}

.bou-country-code-display {
  font-size: 0.94rem;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: -0.2px;
}

.bou-country-arrow {
  width: 14px;
  height: 14px;
  color: #9CA3AF;
  transition: transform 0.2s ease, color 0.2s ease;
}

.bou-country-select-box:hover .bou-country-arrow,
.bou-country-select-box:focus-within .bou-country-arrow {
  color: #FF5500;
}

.bou-country-select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}

.bou-phone-input-wrap {
  flex: 1;
  min-width: 0;
}

.bou-phone-input-wrap .bou-field-input {
  padding-left: 14px;
}

.bou-field-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #A8A29E;
  pointer-events: none;
  transition: color 0.2s ease;
}

.bou-field-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: #FAFAF9;
  border: 1.5px solid #E7E5E4;
  border-radius: 12px;
  font-size: 0.94rem;
  color: #0C0A09;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.bou-field-input:focus {
  background: #FFFFFF;
  border-color: #FF5500;
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.12);
}

.bou-field-input:focus + .bou-field-input-icon,
.bou-field-input-wrap:focus-within .bou-field-input-icon {
  color: #FF5500;
}

.bou-field-input.has-error {
  border-color: #EF4444;
  background: #FEF2F2;
}

.bou-field-error-msg {
  font-size: 0.74rem;
  color: #EF4444;
  display: none;
  margin-top: 3px;
}

.bou-field-group.error .bou-field-error-msg {
  display: block;
}

.bou-form-privacy-note {
  font-size: 0.75rem;
  color: #A8A29E;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

/* ─── MODAL FOOTER (NAVIGATION BUTTONS) ────────────────────── */
.bou-popup-footer {
  padding: 16px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #FFFFFF;
  gap: 12px;
}

.bou-btn-back {
  background: transparent;
  border: 1px solid #E7E5E4;
  color: #78716C;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bou-btn-back:hover {
  background: #F5F5F4;
  color: #0C0A09;
}

.bou-btn-next {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border: none;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.2);
  margin-left: auto;
}

.bou-btn-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.55), 0 0 0 1px rgba(16, 185, 129, 0.3) !important;
}

.bou-btn-next:disabled {
  background: #E5E7EB !important;
  color: #9CA3AF !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none !important;
  border: 1px solid #D1D5DB !important;
}

/* Spinner de Carregamento */
.bou-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: bouSpin 0.7s linear infinite;
  display: none;
}

.bou-btn-next.loading .bou-spinner {
  display: inline-block;
}
.bou-btn-next.loading .bou-btn-text {
  display: none;
}

@keyframes bouSpin {
  to { transform: rotate(360deg); }
}

/* ─── PASSO 4: RESULTADO CONDICIONAL ───────────────────────── */

/* Cenário A: Qualificado > 20k (Calendly) */
.bou-result-qualified {
  display: none;
}
.bou-result-qualified.active {
  display: block;
}

.bou-qualified-header {
  text-align: center;
  padding: 12px 28px 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.bou-qualified-header .bou-step-h3 {
  font-size: 1.48rem;
  font-weight: 800;
  color: #0C0A09;
  line-height: 1.26;
  letter-spacing: -0.025em;
  margin: 0 0 8px 0;
}

.bou-qualified-subtitle {
  display: block;
  font-size: 0.95rem;
  color: #57534E;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 580px;
}

.bou-qualified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F5F5F4;
  color: #0C0A09;
  border: 1px solid #E7E5E4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.bou-calendly-wrapper {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  min-height: 520px;
  height: auto;
  width: 100%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-bottom: 0;
}

.bou-calendly-wrapper iframe,
.bou-calendly-wrapper .calendly-inline-widget {
  width: 100% !important;
  min-width: 280px !important;
  height: 540px;
  min-height: 480px;
  border: none !important;
  display: block !important;
  transition: height 0.25s ease;
}

@media (max-width: 680px) {
  .bou-popup-container.has-calendly {
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
    margin: auto 0;
  }
  .bou-popup-container.has-calendly .bou-popup-body {
    padding: 10px 14px 2px !important;
    flex: 0 1 auto !important;
    height: auto !important;
  }
  .bou-qualified-header {
    padding: 6px 18px 10px !important;
    margin-bottom: 6px !important;
    box-sizing: border-box;
  }
  .bou-qualified-header .bou-step-h3 {
    font-size: 1.22rem !important;
    font-weight: 800 !important;
    line-height: 1.28 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 6px 0 !important;
  }
  .bou-qualified-subtitle {
    display: block !important;
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    color: #57534E !important;
    margin: 0 auto !important;
  }
  .bou-calendly-wrapper {
    height: auto;
    min-height: 480px;
    border: none;
    box-shadow: none;
    border-radius: 8px;
    margin-bottom: 0;
  }
  .bou-calendly-wrapper iframe,
  .bou-calendly-wrapper .calendly-inline-widget {
    height: 500px;
    min-height: 460px;
  }
}

/* Cenário B: 0 a 20k (Não abre Calendly) */
.bou-result-unqualified {
  display: none;
}
.bou-result-unqualified.active {
  display: block;
  text-align: center;
  padding: 12px 10px;
}

.bou-unqualified-card {
  background: #FAFAF9;
  border: 1px solid #E7E5E4;
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bou-unqualified-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 85, 0, 0.1);
  color: #FF5500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bou-unqualified-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0C0A09;
  margin: 0 0 10px;
}

.bou-unqualified-desc {
  font-size: 0.94rem;
  color: #78716C;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 20px;
}

.bou-unqualified-highlight {
  background: #FFFFFF;
  border: 1px solid #E7E5E4;
  border-left: 3px solid #FF5500;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.86rem;
  color: #292524;
  line-height: 1.5;
  margin-bottom: 24px;
  width: 100%;
}

.bou-unqualified-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.bou-btn-wa-direct {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.bou-btn-wa-direct:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

.bou-btn-close-final {
  background: #F5F5F4;
  border: 1px solid #E7E5E4;
  color: #292524;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bou-btn-close-final:hover {
  background: #E7E5E4;
}

/* ─── RESPONSIVIDADE MOBILE EQUILIBRADA (PROPORÇÕES CONFORTÁVEIS) ────── */
@media (max-width: 680px) {
  .bou-popup-backdrop {
    padding: 16px 12px;
    align-items: center;
    justify-content: center;
  }

  .bou-popup-container {
    max-height: calc(100dvh - 28px);
    max-height: calc(100vh - 28px);
    width: 100%;
    max-width: 440px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.35);
  }

  /* Header equilibrado */
  .bou-popup-header {
    padding: 16px 20px 12px;
    gap: 12px;
  }
  .bou-popup-brand {
    gap: 10px;
  }
  .bou-popup-logo {
    height: 22px;
  }
  .bou-popup-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .bou-popup-close-btn {
    width: 36px;
    height: 36px;
  }

  /* Barra de progresso espaçada */
  .bou-popup-progress-wrap {
    padding: 10px 20px 12px;
  }
  .bou-popup-progress-meta {
    margin-bottom: 6px;
  }
  .bou-popup-step-label {
    font-size: 0.74rem;
    font-weight: 800;
  }
  .bou-popup-step-title-preview {
    font-size: 0.76rem;
    font-weight: 600;
  }
  .bou-popup-progress-track {
    height: 5px;
  }

  /* Corpo do modal com padding agradável */
  .bou-popup-body {
    padding: 16px 20px 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
  }

  /* Hook Motivacional de Lucratividade */
  .bou-step-hook {
    padding: 13px 15px;
    margin-bottom: 14px;
    border-radius: 14px;
    border-left-width: 3.5px;
  }
  .bou-hook-kicker {
    font-size: 0.68rem;
    padding: 3px 8px;
    margin-bottom: 6px;
    font-weight: 800;
    gap: 6px;
  }
  .bou-hook-dot {
    width: 6px;
    height: 6px;
  }
  .bou-hook-title {
    font-size: 0.98rem;
    line-height: 1.34;
    margin: 0;
    font-weight: 800;
  }
  .bou-hook-sub {
    display: none !important; /* Mantém oculto no mobile para liberar espaço pros cards */
  }

  /* Título da Pergunta */
  .bou-step-header {
    margin-bottom: 12px;
  }
  .bou-step-h3 {
    font-size: 1.10rem;
    line-height: 1.3;
    margin: 0;
    font-weight: 800;
    color: #0C0A09;
  }
  .bou-step-desc {
    display: none !important;
  }

  /* Grid de Opções (Passo 1: Cargos) */
  .bou-options-grid {
    gap: 9px;
  }
  .bou-option-card {
    padding: 12px 14px;
    border-radius: 13px;
    min-height: 48px;
    border: 1.5px solid #E5E7EB;
    background: #FFFFFF;
    transition: all 0.2s ease;
  }
  .bou-option-card:hover {
    transform: none;
  }
  .bou-option-card.selected {
    border-color: #FF5500;
    background: rgba(255, 85, 0, 0.05);
    box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.18);
  }
  .bou-option-info {
    gap: 12px;
  }
  .bou-option-icon {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
    border-radius: 8px;
    background: #F3F4F6;
  }
  .bou-option-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
  }
  .bou-option-subtitle {
    display: none !important;
  }
  .bou-option-radio-indicator {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
  .bou-option-card.selected .bou-option-radio-indicator::after {
    width: 6px;
    height: 6px;
  }

  /* Passo 2: Faturamento 100% Vertical (1 opção por linha) */
  #bouStep2 .bou-options-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  #bouStep2 .bou-option-card {
    padding: 11px 14px;
    min-height: 46px;
    width: 100%;
    grid-column: auto !important;
  }
  #bouStep2 .bou-option-info {
    gap: 12px;
  }
  #bouStep2 .bou-option-title {
    font-size: clamp(0.84rem, 2.7vw, 0.93rem);
    font-weight: 700;
    line-height: 1.25;
  }
  #bouStep2 .bou-option-icon {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
    border-radius: 8px;
  }
  #bouStep2 .bou-option-radio-indicator {
    width: 18px;
    height: 18px;
  }

  /* Passo 3: Campos de Contato Confortáveis */
  #bouStep3 .bou-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #bouStep3 .bou-field-group {
    gap: 4px;
  }
  #bouStep3 .bou-field-label {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1F2937;
  }
  #bouStep3 .bou-field-input-wrap {
    height: 44px;
    position: relative;
  }
  #bouStep3 .bou-phone-compound-wrap {
    height: 44px;
    gap: 6px;
    position: relative;
    display: flex;
    align-items: stretch;
  }
  #bouStep3 .bou-country-select-box {
    height: 44px;
    min-height: 44px;
    min-width: 88px;
    padding: 0 8px 0 10px;
    border-radius: 11px;
    border: 1.5px solid #E5E7EB;
    gap: 4px;
  }
  #bouStep3 .bou-country-flag {
    font-size: 1.15rem;
  }
  #bouStep3 .bou-country-code-display {
    font-size: 0.88rem;
  }
  #bouStep3 .bou-phone-input-wrap .bou-field-input {
    padding: 10px 12px;
  }
  #bouStep3 .bou-field-input {
    height: 44px;
    padding: 10px 12px 10px 38px;
    font-size: 0.92rem;
    border-radius: 11px;
    border: 1.5px solid #E5E7EB;
  }
  #bouStep3 .bou-field-input-icon {
    width: 17px;
    height: 17px;
    left: 12px;
  }
  #bouStep3 .bou-field-error-msg {
    font-size: 0.72rem;
    margin-top: 3px;
  }
  #bouStep3 .bou-form-privacy-note {
    font-size: 0.74rem;
    line-height: 1.4;
    margin-top: 6px;
    padding: 6px 8px;
    gap: 7px;
  }

  /* Passo 4: Agendamento Calendly ou Não Qualificado */
  .bou-popup-container.has-calendly {
    max-width: 100%;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
  }
  .bou-popup-container.has-calendly .bou-popup-body {
    padding: 10px 14px 2px !important;
    flex: 0 1 auto !important;
    height: auto !important;
  }
  .bou-qualified-header {
    padding: 6px 18px 10px !important;
    margin-bottom: 6px !important;
    box-sizing: border-box;
  }
  .bou-qualified-badge {
    font-size: 0.70rem;
    padding: 2px 8px;
    margin-bottom: 6px;
  }
  .bou-qualified-header .bou-step-h3 {
    font-size: 1.24rem !important;
    font-weight: 800 !important;
    line-height: 1.28 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 6px 0 !important;
  }
  .bou-qualified-subtitle {
    display: block !important;
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    color: #57534E !important;
    margin: 0 auto !important;
  }
  .bou-qualified-header .bou-step-desc {
    display: none !important;
  }
  .bou-calendly-wrapper {
    min-height: 480px;
    height: auto;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
  }
  .bou-calendly-wrapper iframe,
  .bou-calendly-wrapper .calendly-inline-widget {
    height: 500px;
    min-height: 460px;
  }

  /* Card de Conclusão / Agradecimento */
  .bou-unqualified-card {
    padding: 26px 18px 22px;
    border-radius: 18px;
  }
  .bou-unqualified-title {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .bou-unqualified-desc {
    font-size: 0.93rem !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
  }

  /* Rodapé do Modal */
  .bou-popup-footer {
    padding: 12px 20px 16px;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    gap: 10px;
  }
  .bou-btn-next {
    height: 48px;
    padding: 12px 24px;
    font-size: 0.96rem;
    border-radius: 14px;
    gap: 8px;
    font-weight: 800;
  }
  .bou-btn-back {
    height: 48px;
    padding: 10px 16px;
    font-size: 0.88rem;
    border-radius: 14px;
  }
}

/* ============================================================
   POPUP DE DESISTÊNCIA (EXIT-INTENT)
   ============================================================ */
.bou-exit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(12, 10, 9, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bou-exit-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bou-exit-container {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  padding: 36px 30px 28px;
  text-align: center;
  transform: scale(0.92) translateY(18px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bou-exit-backdrop.active .bou-exit-container {
  transform: scale(1) translateY(0);
}

.bou-exit-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F5F5F4;
  border: 1px solid #E7E5E4;
  color: #78716C;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.bou-exit-close-btn:hover {
  background: #E7E5E4;
  color: #0C0A09;
}

.bou-exit-alert-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.bou-exit-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B45309;
  background: rgba(245, 158, 11, 0.12);
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.bou-exit-dot {
  width: 6px;
  height: 6px;
  background: #F59E0B;
  border-radius: 50%;
  animation: bouDotPulse 1.8s infinite ease-in-out;
}

.bou-exit-title {
  font-family: var(--font-sf-pro, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0C0A09;
  margin: 0 0 10px 0;
  line-height: 1.1;
}

.bou-exit-lead {
  font-family: var(--font-sf-pro, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: #292524;
  line-height: 1.45;
  margin: 0 auto 12px;
  max-width: 420px;
}

.bou-exit-question {
  font-family: var(--font-sf-pro, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
  font-size: 1.12rem;
  font-weight: 800;
  color: #0C0A09;
  margin: 0 0 22px 0;
  line-height: 1.3;
}

.bou-exit-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.bou-exit-btn-yes {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-family: var(--font-sf-pro, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.45), 0 0 0 1px rgba(16, 185, 129, 0.2);
  transition: all 0.25s ease;
}

.bou-exit-btn-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(16, 185, 129, 0.55), 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.bou-exit-btn-no {
  background: transparent;
  border: none;
  color: #78716C;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bou-exit-btn-no:hover {
  color: #292524;
}

@media (max-width: 680px) {
  .bou-exit-container {
    padding: 26px 16px 22px;
    border-radius: 20px;
    max-width: 350px;
  }
  .bou-exit-title {
    font-size: 1.75rem;
  }
  .bou-exit-lead {
    font-size: 0.92rem;
    line-height: 1.4;
  }
  .bou-exit-question {
    font-size: 1.02rem;
    margin-bottom: 18px;
  }
  .bou-exit-btn-yes {
    font-size: 0.86rem !important;
    padding: 13px 12px !important;
    white-space: normal !important;
    gap: 6px !important;
  }
}
