/* ==========================================================
   MONITOR B3 &bull; QUIZ DE DIAGNÓSTICO E DIVIDENDOS 2026
   Clean, institutional, highly responsive, strict no overflow
   ========================================================== */

:root {
  --primary-green: #008542;
  --primary-green-hover: #006633;
  --accent-gold: #FFCC00;
  --accent-gold-hover: #e6b800;
  --dark-navy: #0b1320;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-active: #008542;
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 4px 14px rgba(255, 204, 0, 0.4);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ================= TOPBAR ================= */
.topbar {
  background-color: var(--dark-navy);
  color: #cbd5e1;
  font-size: 11.5px;
  padding: 8px 0;
  border-bottom: 2px solid var(--accent-gold);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.disclaimer-badge {
  font-size: 11px;
  color: #94a3b8;
}

/* ================= HEADER ================= */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-box {
  display: flex;
  align-items: center;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  background: var(--primary-green);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.logo-titles {
  display: flex;
  flex-direction: column;
}

.logo-titles strong {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1.2;
}

.logo-titles span {
  font-size: 9.5px;
  color: var(--text-subtle);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ticker-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-pill {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ticker-name {
  color: var(--primary-green);
  font-weight: 800;
}

.ticker-price {
  color: var(--text-main);
  font-weight: 700;
}

.ticker-trend {
  color: #16a34a;
  font-weight: 800;
}

.ssl-shield {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-subtle);
  background: #f8fafc;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

/* ================= QUIZ MAIN SECTION ================= */
.quiz-main-section {
  padding: 40px 0 60px;
}

.quiz-wrapper-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 36px 32px;
  box-sizing: border-box;
  width: 100%;
}

/* Step Panes */
.quiz-step-pane {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.quiz-step-pane.active {
  display: block;
}

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

/* ================= HERO INTRO ================= */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #e6f4ea;
  color: var(--primary-green);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 133, 66, 0.2);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtext {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.feat-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feat-icon {
  font-size: 22px;
}

.feat-desc strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 3px;
}

.feat-desc span {
  font-size: 12px;
  color: var(--text-subtle);
  line-height: 1.4;
}

.hero-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ================= BUTTONS ================= */
.btn-primary-action {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: #0b1320;
  border: none;
  border-radius: 8px;
  padding: 16px 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: 100%;
  max-width: 440px;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 184, 0, 0.5);
}

.btn-primary-action:active {
  transform: translateY(0);
}

.cta-micro-note {
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
}

/* ================= PROGRESS BAR ================= */
.quiz-progress-bar-wrapper {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-green);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ================= QUESTIONS & OPTIONS ================= */
.step-counter-tag {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary-green);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.question-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
}

.question-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.options-vertical-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-opt-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.quiz-opt-btn:hover {
  border-color: var(--border-active);
  background-color: #f8fafc;
  transform: translateX(4px);
}

.quiz-opt-btn.selected {
  border-color: var(--primary-green);
  background-color: #e6f4ea;
}

.opt-letter {
  width: 34px;
  height: 34px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--dark-navy);
  flex-shrink: 0;
}

.quiz-opt-btn.selected .opt-letter {
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
}

.opt-text-wrap {
  display: flex;
  flex-direction: column;
}

.opt-text-wrap strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.opt-text-wrap span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ================= ANALYZING SPINNER ================= */
.analyzing-content {
  text-align: center;
  padding: 40px 20px;
}

.spinner-ring {
  width: 54px;
  height: 54px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 0 auto 24px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.analyzing-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

.analyzing-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.chk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.chk-item.done {
  color: var(--primary-green);
  font-weight: 600;
  border-color: rgba(0, 133, 66, 0.3);
  background: #e6f4ea;
}

/* ================= RESULT SCREEN & FORM ================= */
.result-header-card {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.result-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f4ea;
  color: var(--primary-green);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 133, 66, 0.25);
}

.result-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.result-lead {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
}

.dynamic-estimate-card {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
}

.est-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.est-divider {
  width: 1px;
  height: 50px;
  background: #cbd5e1;
}

.est-label {
  font-size: 11.5px;
  color: var(--text-subtle);
  font-weight: 600;
}

.est-val {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
}

.est-val.green {
  color: var(--primary-green);
}

.est-sub {
  font-size: 11px;
  color: #16a34a;
  font-weight: 700;
}

.lead-form-box {
  max-width: 580px;
  margin: 0 auto;
}

.form-instructions {
  margin-bottom: 20px;
  text-align: center;
}

.form-instructions h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-instructions p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  outline: none;
  background-color: #fafbfc;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: var(--primary-green);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 133, 66, 0.15);
}

.phone-input-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.country-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f5f9;
  border: 1.5px solid var(--border-light);
  border-right: none;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.phone-input-wrap input {
  flex: 1 1 auto;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  min-width: 0;
}

.phone-hint {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 3px;
}

.error-msg {
  font-size: 11px;
  color: #dc2626;
  font-weight: 600;
  display: none;
  margin-top: 2px;
}

.error-msg.visible {
  display: block;
}

.btn-submit {
  max-width: 100%;
  margin-top: 8px;
}

.form-legal-note {
  font-size: 11px;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.4;
  margin-top: 6px;
}

/* ================= FOOTER ================= */
.main-footer {
  background-color: var(--dark-navy);
  color: #94a3b8;
  padding: 40px 0 24px;
  font-size: 12px;
  border-top: 1px solid #1e293b;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-company-info {
  max-width: 520px;
}

.footer-company-info strong {
  font-family: var(--font-heading);
  font-size: 13px;
  color: #ffffff;
  display: block;
  margin-bottom: 6px;
}

.footer-company-info p {
  line-height: 1.5;
  margin-bottom: 6px;
}

.company-details {
  font-size: 11px;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 20px;
  font-size: 11px;
}

.footer-disclaimer-box strong {
  color: #94a3b8;
}

.footer-copyright {
  text-align: center;
  color: #475569;
  font-size: 11.5px;
}

/* ================= SUCCESS MODAL ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 16px;
  box-sizing: border-box;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background-color: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: popIn 0.25s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-icon-done {
  width: 54px;
  height: 54px;
  background-color: #e6f4ea;
  color: var(--primary-green);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-head {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.modal-msg {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.modal-next-steps {
  background: #f8fafc;
  border-left: 4px solid var(--primary-green);
  padding: 12px 14px;
  border-radius: 6px;
  text-align: left;
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 22px;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .main-header {
    padding: 10px 0;
  }
  .ticker-box .ssl-shield {
    display: none;
  }
  .topbar-right {
    display: none;
  }
  .quiz-main-section {
    padding: 24px 0 40px;
  }
  .quiz-wrapper-card {
    padding: 24px 18px;
  }
  .hero-heading {
    font-size: 22px;
  }
  .hero-subtext {
    font-size: 14px;
  }
  .hero-features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .feat-box {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }
  .question-title {
    font-size: 18px;
  }
  .quiz-opt-btn {
    padding: 14px 14px;
    gap: 12px;
  }
  .opt-text-wrap strong {
    font-size: 13.5px;
  }
  .opt-text-wrap span {
    font-size: 12px;
  }
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dynamic-estimate-card {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }
  .est-divider {
    width: 100%;
    height: 1px;
  }
  .btn-primary-action {
    font-size: 14.5px;
    padding: 14px 20px;
  }
  .footer-top-row {
    flex-direction: column;
    gap: 18px;
  }
}
