/* =====================================================
   VagasSP — Monetização CSS
   Stripe Checkout, Planos, Alertas de Email
   ===================================================== */

/* ---- Pricing Section ---- */
.pricing-section {
  padding: 80px 0;
  background: var(--bg);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.toggle-label {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition);
}
.toggle-label.active { color: var(--text); }

.toggle-switch {
  position: relative;
  width: 52px; height: 28px;
  background: var(--red);
  border-radius: 99px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.toggle-switch.annual::after { left: calc(100% - 25px); }

.annual-badge {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: .04em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(227,6,19,.1), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 99px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.plan-icon.free-icon { background: #f1f5f9; }
.plan-icon.pro-icon { background: #fef2f2; }
.plan-icon.empresa-icon { background: #fff7ed; }
.plan-icon.premium-icon { background: #fdf4ff; }

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-desc {
  font-size: .85rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  line-height: 1.5;
}

.plan-price {
  margin-bottom: 28px;
}
.plan-price .amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.plan-price .currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-soft);
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}
.plan-price .period {
  font-size: .85rem;
  color: var(--text-muted);
  margin-left: 2px;
}
.plan-price .original {
  font-size: .88rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 4px;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: .88rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li svg {
  width: 16px; height: 16px;
  flex-shrink: 0; margin-top: 1px;
}
.feat-ok { color: #16a34a; }
.feat-no { color: var(--text-muted); opacity: .4; }
.plan-features li.disabled { opacity: .5; }

.btn-plan {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-plan-primary {
  background: var(--red);
  color: #fff;
}
.btn-plan-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(227,6,19,.4);
}
.btn-plan-outline {
  border: 2px solid var(--border);
  color: var(--text-soft);
  background: transparent;
}
.btn-plan-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ---- Email Alert Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open {
  opacity: 1; visibility: visible;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); border: none;
  color: var(--text-muted);
}
.modal-close:hover { background: #fef2f2; color: var(--red); }
.modal-close svg { width: 16px; height: 16px; }

.modal-icon {
  width: 60px; height: 60px;
  background: #fef2f2;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.modal-icon svg { width: 28px; height: 28px; color: var(--red); }

.modal-box h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-box p {
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.alert-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.input-group {
  position: relative;
}
.input-group svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
  font-family: var(--font-body);
}
.input-group input:focus,
.input-group select:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(227,6,19,.08);
}

.freq-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.freq-chip {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  user-select: none;
}
.freq-chip.selected,
.freq-chip:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fef2f2;
}
.freq-chip input { display: none; }

.modal-lgpd {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.modal-lgpd a { color: var(--red); }

.btn-alert-submit {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-alert-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(227,6,19,.4);
}
.btn-alert-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}
.modal-success .success-icon {
  font-size: 3rem; margin-bottom: 16px;
}
.modal-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
}
.modal-success p { color: var(--text-soft); margin-bottom: 20px; }

/* ---- Stripe Checkout Page ---- */
.checkout-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 60px 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.checkout-form-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.checkout-form-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.stripe-card-element {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: var(--transition);
  min-height: 46px;
}
.stripe-card-element.StripeElement--focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(227,6,19,.08);
}
.stripe-card-element.StripeElement--invalid {
  border-color: #ef4444;
}

.stripe-error {
  color: #ef4444;
  font-size: .82rem;
  margin-top: 6px;
  display: none;
}
.stripe-error.show { display: block; }

/* Order Summary Card */
.order-summary {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 88px;
}
.order-summary h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-plan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.summary-plan-icon {
  width: 46px; height: 46px;
  background: #fef2f2;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.summary-plan-info { flex: 1; }
.summary-plan-name { font-weight: 700; color: var(--text); font-size: .92rem; }
.summary-plan-desc { font-size: .8rem; color: var(--text-muted); }
.summary-plan-price { font-weight: 800; color: var(--text); }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  padding-top: 12px;
  border-top: 2px solid var(--border);
  margin-top: 6px;
}

.secure-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  font-size: .8rem;
  color: #15803d;
  font-weight: 600;
}
.secure-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.stripe-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 12px;
  font-size: .75rem; color: var(--text-muted);
}

/* ---- Alert Bar (floating) ---- */
.alert-float-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  max-width: 90vw;
}
.alert-float-bar.show {
  transform: translateX(-50%) translateY(0);
}
.alert-float-bar p {
  font-size: .88rem; font-weight: 500;
  flex: 1;
}
.alert-float-bar strong { color: #fbbf24; }
.btn-alert-bar {
  padding: 8px 18px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-alert-bar:hover { background: var(--red-dark); }
.alert-bar-close {
  background: none; border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer; padding: 4px; font-size: 1.1rem;
  line-height: 1; transition: var(--transition);
}
.alert-bar-close:hover { color: #fff; }

/* ---- Success/Thank You ---- */
.thankyou-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.thankyou-box { max-width: 540px; }
.thankyou-icon {
  width: 90px; height: 90px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 12px rgba(22,163,74,.08);
}
.thankyou-icon svg { width: 44px; height: 44px; color: #16a34a; }
.thankyou-box h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem; font-weight: 800;
  color: var(--text); margin-bottom: 12px;
}
.thankyou-box p { color: var(--text-soft); line-height: 1.7; margin-bottom: 28px; }

/* ---- Dashboard Preview (empresas) ---- */
.dashboard-preview {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
}
.dashboard-preview h4 {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.dashboard-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.dash-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.dash-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 800;
  color: #fff; line-height: 1;
  margin-bottom: 4px;
}
.dash-stat span { font-size: .75rem; color: rgba(255,255,255,.5); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 28px 20px; }
  .alert-float-bar { flex-direction: column; white-space: normal; text-align: center; }
  .checkout-form-card { padding: 24px 20px; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}
