/* ── Affiliate page ─────────────────────────────────────────── */

/* Hero */
.aff-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #005f8e 0%, #0077b6 55%, #0096c7 100%);
  padding-top: 220px;
}
.aff-hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.aff-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 64px 24px 72px;
}
.aff-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.aff-hero-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  font-style: italic;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}
.aff-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 560px;
}
.aff-hero-sub strong { color: #fff; }

/* ── Stats bar ── */
.aff-stats-bar {
  background: var(--navy-dark);
  padding: 20px 0;
  border-bottom: 3px solid var(--red);
}
.aff-stats-inner {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.aff-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 40px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.aff-stat-item:last-child { border-right: none; }
.aff-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.aff-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
  max-width: 80px;
}

/* ── Shared section base ── */
.aff-section { padding: 80px 0; }
.aff-section-white  { background: var(--white); }
.aff-section-gray   { background: var(--off-white); }

/* ── How it Works ── */
.aff-steps {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.aff-step {
  text-align: center;
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.aff-step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(0,119,182,0.35);
}
.aff-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.aff-step p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}
.aff-step p strong { color: var(--text); }
.aff-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--border);
  padding-top: 48px;
}

/* ── Why section ── */
.aff-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.aff-why-grid .section-eyebrow { margin-bottom: 8px; }
.aff-why-grid h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}
.aff-why-intro {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.75;
}
.aff-why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.aff-why-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.55;
}

/* Earnings card */
.aff-earn-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 6px 32px rgba(27,46,107,0.12);
  border: 1px solid var(--border);
}
.aff-earn-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.aff-earn-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.aff-earn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--off-white);
  font-size: 0.95rem;
  color: var(--text);
}
.aff-earn-row strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}
.aff-earn-highlight {
  background: #e6f4ff;
  border: 2px solid var(--navy);
}
.aff-earn-highlight strong {
  color: var(--red);
  font-size: 1.1rem;
}
.aff-earn-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.aff-pay-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.aff-pay-methods span {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── RESPA notice ── */
.aff-respa {
  background: #fffbeb;
  border-top: 3px solid #f5a623;
  border-bottom: 3px solid #f5a623;
  padding: 36px 0;
}
.aff-respa-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 860px;
  margin: 0 auto;
}
.aff-respa-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.aff-respa h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #7a5000;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.aff-respa p {
  font-size: 0.9rem;
  color: #5a4200;
  line-height: 1.8;
}
.aff-respa p strong { color: #7a5000; }

/* ── Sign-up form ── */
.aff-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.aff-form-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
}
.aff-form-intro > p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 28px;
}
.aff-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aff-contact-quick a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  transition: color 0.2s;
}
.aff-contact-quick a:hover { color: var(--red); }

.aff-form {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1px solid var(--border);
}

/* ── FAQ ── */
.aff-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.aff-faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.aff-faq-item h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.aff-faq-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.aff-faq-item p strong { color: var(--text); }
.aff-faq-item code {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--navy);
  font-family: monospace;
}

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
  .aff-hero { padding-top: 80px; }
  .aff-hero-content { padding: 48px 20px 60px; }
  .aff-section { padding: 56px 0; }

  /* Stats bar — 2 per row */
  .aff-stats-inner { justify-content: flex-start; }
  .aff-stat-item {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 14px 24px;
  }
  .aff-stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
  .aff-stat-item:last-child { border-bottom: none; }

  /* Steps — vertical */
  .aff-steps {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .aff-step-arrow {
    padding-top: 0;
    transform: rotate(90deg);
    font-size: 1.4rem;
  }

  .aff-why-grid  { grid-template-columns: 1fr; gap: 36px; }
  .aff-form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .aff-faq       { grid-template-columns: 1fr; }
  .aff-respa-inner { flex-direction: column; gap: 10px; }
  .aff-form { padding: 28px 20px; }
  .aff-earn-card { padding: 28px 20px; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .aff-hero { padding-top: 70px; }
  .aff-hero-content { padding: 36px 16px 52px; }
  .aff-stat-item { flex: 1 1 100%; border-right: none !important; }
  .aff-form { padding: 20px 16px; }
}
