/* ==========================================================================
   Affiliate & Creator Program Stylesheet - JamScore AI
   Clean Solid Brand Blue Theme (No Gradients)
   ========================================================================== */

:root {
  --aff-blue: #0075ff;
  --aff-blue-hover: #1f84ff;
  --aff-blue-light: #3b9eff;
  --aff-blue-subtle: rgba(0, 117, 255, 0.12);
  --aff-blue-border: rgba(0, 117, 255, 0.3);
  --aff-bg: #070a0f;
  --aff-card-bg: #101722;
  --aff-card-border: rgba(255, 255, 255, 0.08);
  --aff-card-border-hover: #0075ff;
  --aff-text-main: #ffffff;
  --aff-text-muted: #94a3b8;
  --aff-text-dim: #64748b;
}

body {
  margin: 0;
  background-color: var(--aff-bg);
  color: var(--aff-text-main);
  font-family: var(--font-sans, Inter, system-ui, -apple-system, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.aff-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

/* ---------- Breadcrumbs ---------- */
.aff-crumbs {
  margin: 0 0 24px;
  color: var(--aff-text-dim);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aff-crumbs a {
  color: var(--aff-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.aff-crumbs a:hover {
  color: #fff;
}

/* ---------- Hero Section ---------- */
.aff-hero {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 64px;
  padding: 32px 0 16px;
}

.aff-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--aff-blue-subtle);
  border: 1px solid var(--aff-blue-border);
  color: var(--aff-blue-light);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.aff-hero-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 5.2vw, 54px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #ffffff;
}

.aff-hero-title span {
  color: var(--aff-blue-light);
}

.aff-hero-sub {
  margin: 0 auto 28px;
  max-width: 660px;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.55;
  color: var(--aff-text-muted);
}

.aff-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.aff-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  background: var(--aff-blue);
  color: #fff !important;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
  border: none;
  cursor: pointer;
}

.aff-btn-primary:hover {
  background: var(--aff-blue-hover);
  transform: translateY(-1px);
}

.aff-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--aff-card-border);
  color: #e2e8f0 !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.aff-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

/* Key Metrics Badges */
.aff-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--aff-text-muted);
}

.aff-hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.aff-hero-badge-item svg {
  color: var(--aff-blue-light);
  width: 16px;
  height: 16px;
}

/* ---------- Section Header Helper ---------- */
.aff-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.aff-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.aff-section-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--aff-text-muted);
}

/* ---------- Perks Grid (What You Get) ---------- */
.aff-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.aff-perk-card {
  background: var(--aff-card-bg);
  border: 1px solid var(--aff-card-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.aff-perk-card:hover {
  transform: translateY(-2px);
  border-color: var(--aff-card-border-hover);
}

.aff-perk-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--aff-blue-subtle);
  border: 1px solid var(--aff-blue-border);
  color: var(--aff-blue-light);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.aff-perk-icon svg {
  width: 20px;
  height: 20px;
}

.aff-perk-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.015em;
}

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

/* ---------- Audience Match Cards (Who We're Looking For) ---------- */
.aff-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.aff-audience-card {
  background: var(--aff-card-bg);
  border: 1px solid var(--aff-card-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.aff-audience-card:hover {
  border-color: var(--aff-card-border-hover);
  transform: translateY(-2px);
}

.aff-audience-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--aff-blue-subtle);
  border: 1px solid var(--aff-blue-border);
  color: var(--aff-blue-light);
  font-size: 11.5px;
  font-weight: 650;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aff-audience-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 750;
  color: #ffffff;
}

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

/* ---------- Step by Step Timeline (How It Works) ---------- */
.aff-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 80px;
}

.aff-step-card {
  background: var(--aff-card-bg);
  border: 1px solid var(--aff-card-border);
  border-radius: 16px;
  padding: 24px 20px;
  transition: border-color 0.2s ease;
}

.aff-step-card:hover {
  border-color: var(--aff-card-border-hover);
}

.aff-step-num {
  font-size: 26px;
  font-weight: 850;
  color: var(--aff-blue-light);
  margin-bottom: 12px;
  line-height: 1;
}

.aff-step-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 750;
  color: #ffffff;
}

.aff-step-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--aff-text-muted);
}

/* ---------- Application Form Container ---------- */
.aff-form-section {
  max-width: 680px;
  margin: 0 auto 90px;
  background: var(--aff-card-bg);
  border: 1px solid var(--aff-card-border);
  border-radius: 20px;
  padding: 40px 36px;
}

.aff-form-head {
  text-align: center;
  margin-bottom: 28px;
}

.aff-form-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.aff-form-head p {
  margin: 0;
  font-size: 14px;
  color: var(--aff-text-muted);
}

.aff-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.aff-form-full {
  grid-column: 1 / -1;
}

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

.aff-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.aff-form-group label small {
  font-weight: 400;
  color: var(--aff-text-dim);
}

.aff-form-input,
.aff-form-select,
.aff-form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b111a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease;
  box-sizing: border-box;
}

.aff-form-input:focus,
.aff-form-select:focus,
.aff-form-textarea:focus {
  border-color: var(--aff-blue);
  background: #0e1622;
}

.aff-form-textarea {
  resize: vertical;
  min-height: 84px;
}

.aff-form-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--aff-blue);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.aff-form-submit-btn:hover {
  background: var(--aff-blue-hover);
}

.aff-form-success {
  text-align: center;
  padding: 36px 20px;
}

.aff-success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.aff-success-icon svg {
  width: 24px;
  height: 24px;
}

.aff-form-success h4 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #fff;
}

.aff-form-success p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--aff-text-muted);
  line-height: 1.5;
}

/* ---------- FAQ Section ---------- */
.aff-faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.aff-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.aff-faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aff-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.aff-faq-icon {
  transition: transform 0.2s ease;
  color: var(--aff-text-muted);
}

.aff-faq-item.open .aff-faq-icon {
  transform: rotate(180deg);
  color: var(--aff-blue-light);
}

.aff-faq-answer {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--aff-text-muted);
  display: none;
}

.aff-faq-item.open .aff-faq-answer {
  display: block;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 960px) {
  .aff-perks-grid,
  .aff-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aff-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .aff-perks-grid,
  .aff-audience-grid,
  .aff-steps-grid {
    grid-template-columns: 1fr;
  }
  .aff-form-grid {
    grid-template-columns: 1fr;
  }
  .aff-form-section {
    padding: 28px 20px;
  }
  .aff-hero {
    margin-bottom: 40px;
  }
}
