/* ############################ HEADER */
/* ============ NAV ============ */
.af-nav {
  --af-primary: #dc2626;
  --af-primary-dark: #b91c1c;
  --af-primary-soft: #fee2e2;
  --af-accent: #f59e0b;
  --af-text: #111827;
  --af-text-light: #374151;
  --af-muted: #6b7280;
  --af-border: #e5e7eb;

  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--af-border);
  transition: box-shadow 0.3s;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
}

.af-nav * {
  box-sizing: border-box;
}
.af-nav a {
  text-decoration: none;
}
.af-nav i.bi {
  vertical-align: middle;
}

.af-nav.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.af-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 5%;
  max-width: 1200px;
}

.af-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--af-text);
  white-space: nowrap;
}
.af-nav-brand strong {
  color: var(--af-primary);
}

.af-nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--af-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
  flex-shrink: 0;
}

.af-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.af-nav-links a {
  position: relative;
  color: var(--af-text-light);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  transition: color 0.25s;
}

.af-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--af-primary);
  transition: width 0.25s;
}
.af-nav-links a:hover {
  color: var(--af-primary);
}
.af-nav-links a:hover::after {
  width: 100%;
}

.af-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-nav-cta {
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
}
.af-nav-login {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Botões do nav — replicam o essencial do .af-btn para não dependerem do main */
.af-nav .af-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  font-family: inherit;
  text-decoration: none;
}
.af-nav .af-btn-primary {
  background: var(--af-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}
.af-nav .af-btn-primary:hover {
  background: var(--af-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}
.af-nav .af-btn-outline {
  background: #fff;
  color: var(--af-text);
  border: 1px solid var(--af-border);
}
.af-nav .af-btn-outline:hover {
  border-color: var(--af-primary);
  color: var(--af-primary);
}

.af-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--af-border);
  background: #fff;
  color: var(--af-text);
  font-size: 1.35rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}
.af-nav-toggle:hover {
  border-color: var(--af-primary);
  color: var(--af-primary);
}

/* Âncoras não ficam escondidas debaixo do nav */
.af-block[id],
.af-form-section[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 900px) {
  .af-nav-toggle {
    display: inline-flex;
  }
  .af-nav-cta,
  .af-nav-login {
    display: none;
  }

  .af-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--af-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .af-nav-links.open {
    max-height: 400px;
  }
  .af-nav-links a {
    padding: 0.95rem 5%;
    border-bottom: 1px solid var(--af-border);
  }
  .af-nav-links a:last-child {
    border-bottom: none;
  }
  .af-nav-links a::after {
    display: none;
  }
}

/* ######################################################## INDEX STYLE */
.affiliate-template {
  --af-primary: #dc2626;
  --af-primary-dark: #b91c1c;
  --af-primary-soft: #fee2e2;
  --af-accent: #f59e0b;
  --af-bg: #ffffff;
  --af-bg-soft: #f9fafb;
  --af-text: #111827;
  --af-text-light: #374151;
  --af-muted: #6b7280;
  --af-success: #059669;
  --af-success-soft: #d1fae5;
  --af-warning: #d97706;
  --af-border: #e5e7eb;
  --af-radius: 16px;
  background: var(--af-bg);
  color: var(--af-text);
  line-height: 1.6;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  width: 100%;
}

.affiliate-template * {
  box-sizing: border-box;
}

.affiliate-template i.bi {
  vertical-align: middle;
}

.affiliate-template a {
  text-decoration: none;
}

.af-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Botões */
.af-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  font-size: 0.95rem;
  font-family: inherit;
}

.af-btn-primary {
  background: var(--af-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.af-btn-primary:hover {
  background: var(--af-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.af-btn-outline {
  background: #fff;
  color: var(--af-text);
  border: 1px solid var(--af-border);
}

.af-btn-outline:hover {
  border-color: var(--af-primary);
  color: var(--af-primary);
}

.af-btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* Hero */
.af-hero {
  padding: 6rem 5% 5rem;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--af-border);
  position: relative;
  overflow: hidden;
}

.af-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.08), transparent 70%);
  pointer-events: none;
}

.af-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--af-primary-soft);
  color: var(--af-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.af-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 auto 1.5rem;
  max-width: 900px;
  color: var(--af-text);
}

.af-hero h1 span {
  color: var(--af-primary);
}

.af-hero p {
  color: var(--af-muted);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.af-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats */
.af-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.af-stat {
  background: #fff;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1.75rem;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.af-stat:hover {
  transform: translateY(-5px);
  border-color: var(--af-primary);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08);
}

.af-stat-icon {
  font-size: 1.6rem;
  color: var(--af-primary);
  margin-bottom: 0.5rem;
}

.af-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--af-primary);
}

.af-stat-lbl {
  color: var(--af-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* Blocks */
.af-block {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.af-section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.af-section-title h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--af-text);
}

.af-section-title p {
  color: var(--af-muted);
  max-width: 640px;
  margin: 0 auto;
}

.af-section-title small {
  color: var(--af-primary);
  font-weight: 600;
}

/* Steps */
.af-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.af-step {
  background: #fff;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 2rem;
  transition: 0.3s;
}

.af-step:hover {
  border-color: var(--af-primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.08);
}

.af-step-n {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--af-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.af-step h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: var(--af-text);
}

.af-step p {
  color: var(--af-muted);
  font-size: 0.95rem;
}

/* Tabela */
.af-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--af-radius);
  border: 1px solid var(--af-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.af-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.af-table th,
.af-table td {
  padding: 1.15rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--af-border);
}

.af-table th {
  background: var(--af-bg-soft);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--af-text-light);
}

.af-table tr:last-child td {
  border-bottom: none;
}

.af-table tr:hover td {
  background: rgba(220, 38, 38, 0.03);
}

.af-commission {
  color: var(--af-success);
  font-weight: 800;
  font-size: 1.05rem;
}

.af-commission.af-max {
  color: var(--af-primary);
  background: var(--af-primary-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  display: inline-block;
}

.af-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.af-bronze {
  background: #fef3c7;
  color: #92400e;
}

.af-prata {
  background: #e5e7eb;
  color: #374151;
}

.af-ouro {
  background: #fef9c3;
  color: #a16207;
}

.af-platina {
  background: var(--af-primary-soft);
  color: var(--af-primary);
}

.af-note {
  text-align: center;
  color: var(--af-muted);
  margin-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Calculadora */
.af-calc {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.04), rgba(245, 158, 11, 0.03));
  border: 1px solid var(--af-border);
  border-radius: 20px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.af-calc h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--af-text);
}

.af-calc label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--af-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.af-calc input,
.af-calc select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--af-border);
  border-radius: 10px;
  color: var(--af-text);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  outline: none;
  transition: 0.3s;
  font-family: inherit;
}

.af-calc input:focus,
.af-calc select:focus {
  border-color: var(--af-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.af-calc-result {
  background: #fff;
  border-radius: var(--af-radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--af-primary);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08);
}

.af-result-label {
  color: var(--af-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.af-result-big {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--af-success);
  margin: 0.5rem 0;
}

.af-result-detail {
  color: var(--af-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.af-progress-wrap {
  margin-top: 1.5rem;
  text-align: left;
}

.af-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--af-muted);
  margin-bottom: 0.4rem;
}

.af-progress-bar {
  height: 8px;
  background: var(--af-bg-soft);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--af-border);
}

.af-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--af-primary), var(--af-accent));
  border-radius: 50px;
  width: 0;
  transition: width 1s ease;
}

/* ============ FORMULÁRIO ============ */
.af-form-section {
  background: var(--af-bg-soft);
  border-radius: 24px;
  max-width: 1100px;
  padding: 4rem 5%;
  margin: 3rem auto;
}

.af-form-wrap {
  background: #fff;
  border: 1px solid var(--af-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  max-width: 900px;
  margin: 0 auto;
}

/* Progresso */
.af-form-progress {
  margin-bottom: 2.5rem;
}

.af-form-progress-bar {
  height: 4px;
  background: var(--af-border);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.af-form-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--af-primary), var(--af-accent));
  width: 0;
  transition: width 0.4s ease;
  border-radius: 50px;
}

.af-form-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.af-form-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  opacity: 0.45;
  transition: 0.3s;
}

.af-form-step-item.active,
.af-form-step-item.done {
  opacity: 1;
}

.af-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--af-bg-soft);
  border: 2px solid var(--af-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--af-muted);
  transition: 0.3s;
}

.af-form-step-item.active .af-step-num {
  background: var(--af-primary);
  border-color: var(--af-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.af-form-step-item.done .af-step-num {
  background: var(--af-success);
  border-color: var(--af-success);
  color: #fff;
}

.af-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--af-text-light);
}

.af-form-step-item.active .af-step-label {
  color: var(--af-primary);
}

/* Páginas */
.af-form-page {
  display: none;
  animation: afFade 0.3s ease;
}

.af-form-page.active {
  display: block;
}

@keyframes afFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.af-form-head {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--af-text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.af-form-head i {
  color: var(--af-primary);
}

.af-form-hint {
  color: var(--af-muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

/* Grupos */
.af-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.af-form-group {
  margin-bottom: 1.25rem;
}

.af-form-group label,
.af-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--af-text-light);
  margin-bottom: 0.5rem;
}

.af-form-group label small {
  color: var(--af-muted);
  font-weight: 400;
}

.af-form-label {
  margin-bottom: 1rem;
  display: block;
}

.af-req {
  color: var(--af-primary);
}

.af-form-group input,
.af-form-group select,
.af-form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1.5px solid var(--af-border);
  border-radius: 10px;
  color: var(--af-text);
  font-size: 0.95rem;
  outline: none;
  transition: 0.2s;
  font-family: inherit;
}

.af-form-group textarea {
  resize: vertical;
}

.af-form-group input:focus,
.af-form-group select:focus,
.af-form-group textarea:focus {
  border-color: var(--af-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.af-form-group input.af-error,
.af-form-group select.af-error {
  border-color: var(--af-primary);
  background: #fff5f5;
}

/* Radio cards (perfil) */
.af-radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.af-radio-card input {
  display: none;
}

.af-radio-card-body {
  padding: 1.25rem;
  border: 2px solid var(--af-border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #fff;
  height: 100%;
}

.af-radio-card-body i {
  font-size: 1.8rem;
  color: var(--af-muted);
}

.af-radio-card-body strong {
  font-size: 1rem;
  color: var(--af-text);
}

.af-radio-card-body small {
  color: var(--af-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.af-radio-card:has(input:checked) .af-radio-card-body {
  border-color: var(--af-primary);
  background: var(--af-primary-soft);
}

.af-radio-card:has(input:checked) .af-radio-card-body i,
.af-radio-card:has(input:checked) .af-radio-card-body strong {
  color: var(--af-primary);
}

.af-radio-card-body:hover {
  border-color: var(--af-primary);
}

/* Select cards (nível) */
.af-select-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.af-select-card input {
  display: none;
}

.af-select-card-body {
  padding: 0.9rem 0.5rem;
  border: 2px solid var(--af-border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  text-align: center;
}

.af-select-card-body i {
  font-size: 1.4rem;
  color: var(--af-muted);
}

.af-select-card-body span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--af-text);
}

.af-select-card:has(input:checked) .af-select-card-body {
  border-color: var(--af-primary);
  background: var(--af-primary-soft);
}

.af-select-card:has(input:checked) .af-select-card-body i,
.af-select-card:has(input:checked) .af-select-card-body span {
  color: var(--af-primary);
}

.af-select-card-body:hover {
  border-color: var(--af-primary);
}

/* Check grid (conteúdo/redes) */
.af-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}

.af-check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--af-border);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--af-text-light);
  user-select: none;
}

.af-check-item input {
  display: none;
}

.af-check-item i {
  color: var(--af-muted);
  font-size: 1.15rem;
  transition: 0.2s;
}

.af-check-item:hover {
  border-color: var(--af-primary);
  color: var(--af-primary);
}

.af-check-item:hover i {
  color: var(--af-primary);
}

.af-check-item:has(input:checked) {
  border-color: var(--af-primary);
  background: var(--af-primary-soft);
  color: var(--af-primary);
  font-weight: 600;
}

.af-check-item:has(input:checked) i {
  color: var(--af-primary);
}

/* Termos */
.af-terms {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.af-term-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--af-border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  background: #fff;
}

.af-term-item input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--af-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.af-term-item:has(input:checked) {
  border-color: var(--af-primary);
  background: var(--af-primary-soft);
}

.af-term-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--af-text);
  margin-bottom: 0.2rem;
}

.af-term-text small {
  color: var(--af-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  display: block;
}

/* Nota informativa */
.af-form-note {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  color: #78350f;
  font-size: 0.88rem;
}

.af-form-note i {
  font-size: 1.25rem;
  color: var(--af-warning);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.af-form-note strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #78350f;
}

.af-form-note p {
  color: #92400e;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Navegação */
.af-form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--af-border);
  flex-wrap: wrap;
}

#af-submit {
  margin-left: auto;
}

/* Alerta */
.af-form-alert {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.af-form-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.af-form-alert.success {
  background: var(--af-success-soft);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* Cartão de espera */
.af-waiting {
  text-align: center;
  padding: 1rem 0;
}

.af-waiting-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--af-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  color: var(--af-primary);
  margin: 0 auto 1.5rem;
  animation: afPulse 2s ease-in-out infinite;
}

@keyframes afPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35);
  }

  50% {
    box-shadow: 0 0 0 18px rgba(220, 38, 38, 0);
  }
}

.af-waiting h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--af-text);
  margin-bottom: 0.85rem;
}

.af-waiting p {
  color: var(--af-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-size: 0.98rem;
}

.af-waiting p strong {
  color: var(--af-text);
}

.af-waiting-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.75rem;
  background: var(--af-bg-soft);
  border: 1px solid var(--af-border);
  border-radius: 12px;
  margin-bottom: 2.5rem;
}

.af-waiting-ref span {
  font-size: 0.78rem;
  color: var(--af-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.af-waiting-ref strong {
  font-size: 1.35rem;
  color: var(--af-primary);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.af-waiting-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto 1.75rem;
  text-align: left;
}

.af-waiting-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.15rem;
  border-radius: 10px;
  background: var(--af-bg-soft);
  border: 1px solid var(--af-border);
  font-size: 0.92rem;
  color: var(--af-muted);
  font-weight: 500;
}

.af-waiting-step i {
  font-size: 1.1rem;
}

.af-waiting-step.done {
  background: var(--af-success-soft);
  border-color: #6ee7b7;
  color: #065f46;
}

.af-waiting-step.done i {
  color: var(--af-success);
}

.af-waiting-step.active {
  background: var(--af-primary-soft);
  border-color: #fca5a5;
  color: var(--af-primary);
  font-weight: 600;
}

.af-waiting-step.active i {
  color: var(--af-primary);
  animation: afSpin 2s linear infinite;
}

@keyframes afSpin {
  to {
    transform: rotate(360deg);
  }
}

.af-waiting-foot {
  font-size: 0.85rem;
  color: var(--af-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.af-waiting-foot i {
  color: var(--af-primary);
}

/* Dashboard */
.af-dashboard {
  background: #fff;
  border: 1px solid var(--af-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.af-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.af-dash-header h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--af-text);
}

.af-dash-header small {
  color: var(--af-muted);
}

.af-dash-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-dash-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--af-primary);
}

.af-dash-user strong {
  display: block;
  font-size: 0.9rem;
}

.af-dash-user small {
  color: var(--af-muted);
  font-size: 0.75rem;
}

.af-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.af-dash-card {
  background: var(--af-bg-soft);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--af-border);
}

.af-dash-card .t {
  color: var(--af-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.af-dash-card .v {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 0.4rem;
  color: var(--af-text);
}

.af-dash-card .d {
  font-size: 0.8rem;
  color: var(--af-success);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.af-dash-card .af-success {
  color: var(--af-success);
}

.af-dash-sub {
  margin-bottom: 1rem;
  color: var(--af-text);
}

.af-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.af-status-ok {
  color: var(--af-success);
}

.af-status-wait {
  color: var(--af-warning);
}

/* Testemunhos */
.af-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.af-testimonial {
  background: #fff;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1.75rem;
  transition: 0.3s;
}

.af-testimonial:hover {
  border-color: var(--af-primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.08);
}

.af-stars {
  color: var(--af-accent);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.2rem;
}

.af-testimonial p {
  color: var(--af-text-light);
  font-style: italic;
  margin-bottom: 1rem;
}

.af-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--af-border);
}

.af-author strong {
  font-size: 0.95rem;
  color: var(--af-text);
}

.af-author small {
  color: var(--af-muted);
  font-size: 0.8rem;
  display: block;
}

/* FAQ */
.af-faq {
  max-width: 800px;
  margin: 0 auto;
}

.af-faq-item {
  background: #fff;
  border: 1px solid var(--af-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: 0.3s;
}

.af-faq-item:hover {
  border-color: var(--af-primary);
}

.af-faq-q {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: 0.3s;
  color: var(--af-text);
}

.af-faq-q:hover {
  background: rgba(220, 38, 38, 0.03);
}

.af-faq-plus {
  font-size: 1.1rem;
  color: var(--af-primary);
  transition: 0.3s;
  display: flex;
  align-items: center;
}

.af-faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  color: var(--af-muted);
  padding: 0 1.5rem;
  font-size: 0.95rem;
}

.af-faq-item.open .af-faq-a {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.af-faq-item.open .af-faq-plus {
  transform: rotate(45deg);
}

/* CTA */
.af-cta {
  text-align: center;
  padding: 5rem 5%;
  background: linear-gradient(180deg, #fff, var(--af-bg-soft));
  border-top: 1px solid var(--af-border);
}

.af-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--af-text);
}

.af-cta p {
  color: var(--af-muted);
  margin: 0 auto 2rem;
  max-width: 550px;
}

/* Responsivo */
@media (max-width: 768px) {
  .af-calc {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .af-hero {
    padding: 4rem 5% 3rem;
  }

  .af-block {
    padding: 3.5rem 5%;
  }

  .af-result-big {
    font-size: 2.2rem;
  }

  .af-form-wrap {
    padding: 1.75rem;
  }

  .af-form-row,
  .af-radio-cards {
    grid-template-columns: 1fr;
  }

  .af-select-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .af-form-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
  }

  .af-step-label {
    font-size: 0.68rem;
  }

  .af-step-num {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .af-form-nav {
    flex-direction: column-reverse;
  }

  .af-form-nav .af-btn {
    width: 100%;
    justify-content: center;
  }

  #af-submit {
    margin-left: 0;
  }
}
