/**
 * FARO Checkout & Vendas - Tema Claro Corporativo (Clean Light Executive)
 * Suda Consulting - Design System Oficial
 */

:root {
  --faro-bg: #F8FAFC;
  --faro-surface: #FFFFFF;
  --faro-surface-subtle: #F1F5F9;
  --faro-border: #E2E8F0;
  --faro-border-strong: #CBD5E1;
  --faro-text: #0F172A;
  --faro-text-muted: #64748B;
  --faro-primary: #1D3FAE;
  --faro-primary-hover: #162E82;
  --faro-primary-light: #EFF6FF;
  --faro-accent: #0284C7;
  --faro-success: #059669;
  --faro-success-bg: #ECFDF5;
  --faro-warning: #D97706;
  --faro-warning-bg: #FFFBEB;
  --faro-danger: #DC2626;
  --faro-danger-bg: #FEF2F2;
  --faro-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --faro-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --faro-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --faro-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

body.faro-checkout-body {
  background-color: var(--faro-bg);
  color: var(--faro-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Fundo sutil com grade suave */
.checkout-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.top-notice-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  font-size: 12px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--faro-border);
  color: var(--faro-text-muted);
}

.top-notice-bar a {
  color: var(--faro-primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-notice-bar a:hover {
  text-decoration: underline;
}

/* Navbar em Tom Claro */
.faro-navbar-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--faro-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--faro-shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faro-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.faro-logo-box {
  width: 36px;
  height: 36px;
  background: var(--faro-primary);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  letter-spacing: -0.5px;
}

.faro-brand-titles {
  display: flex;
  flex-direction: column;
}

.faro-brand-main {
  font-size: 18px;
  font-weight: 800;
  color: var(--faro-text);
  letter-spacing: 0.5px;
}

.faro-brand-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--faro-text-muted);
  letter-spacing: 1px;
}

.faro-nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.faro-nav-links a {
  color: var(--faro-text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.faro-nav-links a:hover,
.faro-nav-links a.active {
  color: var(--faro-primary);
}

.faro-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-primary {
  background: var(--faro-primary);
  color: #FFFFFF;
  border-color: var(--faro-primary);
}

.btn-primary:hover {
  background: var(--faro-primary-hover);
  border-color: var(--faro-primary-hover);
}

.btn-ghost {
  background: #FFFFFF;
  color: var(--faro-text);
  border-color: var(--faro-border);
}

.btn-ghost:hover {
  background: var(--faro-surface-subtle);
  border-color: var(--faro-border-strong);
}

/* Hero Section */
.checkout-hero {
  position: relative;
  z-index: 1;
  padding: 48px 20px 32px;
  text-align: center;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--faro-primary-light);
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  color: var(--faro-primary);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.checkout-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--faro-text);
  line-height: 1.2;
  margin: 0 auto 14px;
  max-width: 820px;
  letter-spacing: -0.5px;
}

.highlight-blue {
  color: var(--faro-primary);
}

.checkout-subtitle {
  font-size: 16px;
  color: var(--faro-text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Container Principal da Calculadora */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  margin: 36px auto 60px;
}

/* Painel Esquerdo: Controles */
.calc-left-body {
  background: var(--faro-surface);
  border: 1px solid var(--faro-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--faro-shadow-md);
}

.calc-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--faro-text);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.calc-section-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--faro-text-muted);
}

/* Stepper de Usuários */
.user-stepper-box {
  background: var(--faro-surface-subtle);
  border: 1px solid var(--faro-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
}

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid var(--faro-border);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--faro-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  box-shadow: var(--faro-shadow-sm);
}

.stepper-btn:hover {
  background: var(--faro-surface-subtle);
  border-color: var(--faro-border-strong);
  color: var(--faro-primary);
}

.stepper-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-num-input {
  width: 90px;
  height: 44px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--faro-text);
  background: #FFFFFF;
  border: 1px solid var(--faro-border);
  border-radius: 10px;
  box-shadow: inset var(--faro-shadow-sm);
}

.stepper-unit-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--faro-text-muted);
}

.user-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  outline: none;
  cursor: pointer;
  accent-color: var(--faro-primary);
}

/* ========================================================
   CAIXAS AMPLIADAS DE CICLO (MENSAL, TRIMESTRAL, ANUAL)
   ======================================================== */
.cycle-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.cycle-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--faro-border);
  border-radius: 14px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.cycle-card:hover {
  border-color: #93C5FD;
  box-shadow: var(--faro-shadow-md);
  transform: translateY(-2px);
}

.cycle-card.active {
  border-color: var(--faro-primary);
  background: #FAFBFD;
  box-shadow: 0 0 0 2px rgba(29, 63, 174, 0.15), var(--faro-shadow-md);
}

.badge-card-recommend {
  position: absolute;
  top: -11px;
  right: 14px;
  background: #10B981;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.cycle-card-header {
  margin-bottom: 12px;
}

.cycle-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--faro-text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cycle-tag.highlight {
  color: var(--faro-primary);
}

.cycle-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--faro-text);
}

/* Preço Riscado, Balão e Novo Valor Maior */
.cycle-price-block {
  margin: 14px 0 12px;
  min-height: 70px;
}

.price-strikethrough-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.price-old {
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: line-through;
}

.discount-balloon {
  display: inline-block;
  background: #F1F5F9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.discount-balloon.highlight {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.price-big-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.price-curr {
  font-size: 14px;
  font-weight: 700;
  color: var(--faro-text);
}

.price-big-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--faro-text);
  letter-spacing: -0.5px;
}

.cycle-card.active .price-big-val {
  color: var(--faro-primary);
}

.price-unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--faro-text-muted);
}

.cycle-card-footer {
  border-top: 1px dashed var(--faro-border);
  padding-top: 10px;
  margin-top: 4px;
}

.cycle-total-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--faro-text-muted);
  line-height: 1.3;
}

/* Caixa de Cupom */
.coupon-box {
  margin-top: 6px;
}

.coupon-input-group {
  display: flex;
  gap: 10px;
}

.coupon-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid var(--faro-border);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--faro-text);
  box-shadow: inset var(--faro-shadow-sm);
  text-transform: uppercase;
}

.coupon-input:focus {
  outline: none;
  border-color: var(--faro-primary);
  box-shadow: 0 0 0 3px rgba(29, 63, 174, 0.12);
}

.coupon-btn {
  padding: 0 18px;
  background: #FFFFFF;
  border: 1px solid var(--faro-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--faro-primary);
  cursor: pointer;
  transition: all 0.15s;
}

.coupon-btn:hover {
  background: var(--faro-primary-light);
  border-color: #BFDBFE;
}

.coupon-feedback {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.coupon-feedback.success {
  color: var(--faro-success);
}

.coupon-feedback.warning {
  color: var(--faro-warning);
}

/* Painel Direito: Resumo do Investimento */
.calc-right-summary {
  background: #FFFFFF;
  border: 1px solid var(--faro-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--faro-shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--faro-border);
}

.summary-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--faro-text);
}

.summary-plan-badge {
  background: var(--faro-primary-light);
  color: var(--faro-primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.price-main-display {
  background: var(--faro-surface-subtle);
  border: 1px solid var(--faro-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.price-per-user-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-per-user-val {
  font-size: 32px;
  font-weight: 900;
  color: var(--faro-primary);
  letter-spacing: -0.5px;
}

.price-per-user-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--faro-text-muted);
}

.price-total-cycle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--faro-text);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--faro-border);
}

.price-total-cycle strong {
  font-size: 16px;
  font-weight: 800;
}

.discount-highlight-row {
  display: none;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--faro-success);
  margin-top: 6px;
  font-weight: 700;
}

.features-check-summary {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.features-check-summary li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
  line-height: 1.4;
}

.features-check-summary li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--faro-success);
  font-weight: 900;
  font-size: 14px;
}

.btn-checkout-cta {
  width: 100%;
  padding: 16px 24px;
  background: var(--faro-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(29, 63, 174, 0.25);
  transition: all 0.2s;
}

.btn-checkout-cta:hover {
  background: var(--faro-primary-hover);
  box-shadow: 0 6px 16px rgba(29, 63, 174, 0.35);
  transform: translateY(-1px);
}

.payment-methods-subtext {
  text-align: center;
  font-size: 11.5px;
  color: var(--faro-text-muted);
  margin-top: 12px;
}

/* Modais em Tom Claro */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.checkout-modal-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--faro-border);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--faro-shadow-xl);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F1F5F9;
  border: 1px solid var(--faro-border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faro-text);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  background: #E2E8F0;
}

.registration-plan-summary {
  background: var(--faro-surface-subtle);
  border: 1px solid var(--faro-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-group-checkout {
  margin-bottom: 16px;
}

.form-group-checkout label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--faro-text);
  margin-bottom: 6px;
}

.input-checkout {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid var(--faro-border);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--faro-text);
}

.input-checkout:focus {
  outline: none;
  border-color: var(--faro-primary);
  box-shadow: 0 0 0 3px rgba(29, 63, 174, 0.12);
}

.onboarding-info-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: #1E3A8A;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  line-height: 1.45;
}

.modal-status-feedback {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-status-feedback.error {
  background: var(--faro-danger-bg);
  border: 1px solid #FECACA;
  color: var(--faro-danger);
}

.modal-status-feedback.success {
  background: var(--faro-success-bg);
  border: 1px solid #A7F3D0;
  color: var(--faro-success);
}

/* Exit Intent Modal */
.exit-modal-card {
  text-align: center;
  max-width: 460px;
}

.exit-badge-tag {
  display: inline-block;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.exit-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--faro-text);
  margin: 0 0 10px;
}

.exit-desc {
  font-size: 13.5px;
  color: var(--faro-text-muted);
  line-height: 1.5;
  margin: 0 0 24px;
}

.exit-cta-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--faro-success);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
}

.exit-cta-btn:hover {
  opacity: 0.92;
}

/* Responsividade */
@media (max-width: 900px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .cycle-cards-grid {
    grid-template-columns: 1fr;
  }
}
