/* ============================================
   Affiliate (Satış Ortaklığı) — Tek sayfa
   ============================================ */

:root {
  --af-bg-deep: #050A14;
  --af-bg-card: #0A1228;
  --af-gold: #F2CC00;
  --af-gold-bright: #FFD700;
  --af-success: #0EA47A;
  --af-danger: #DC2626;
  --af-text: #E8ECF1;
  --af-text-dim: #7A8BA4;
  --af-text-muted: #4A5B73;
  --af-border: rgba(255, 255, 255, 0.06);
  --af-border-gold: rgba(242, 204, 0, 0.12);
  --af-font: 'Inter', system-ui, sans-serif;
  --af-radius: 16px;
  --af-radius-sm: 10px;
  --af-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --af-duration: 0.35s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--af-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--af-text);
  background: var(--af-bg-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body main { flex: 1; }
a { color: var(--af-gold); text-decoration: none; transition: color var(--af-duration) var(--af-ease); }
a:hover { color: var(--af-gold-bright); }
ul, ol { list-style: none; }

/* --- Header --- */
.af-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--af-bg-card);
  border-bottom: 1px solid var(--af-border);
}
.af-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.af-header-brand { display: flex; align-items: center; flex-shrink: 0; }
.af-header-brand:hover { opacity: 0.9; }
.af-header-logo { height: 40px; width: auto; object-fit: contain; }
.af-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  background: transparent;
  color: var(--af-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.af-nav-toggle::before {
  content: '';
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.af-nav-toggle[aria-expanded="true"]::before {
  height: 0;
  box-shadow: none;
  border: 2px solid currentColor;
  border-width: 0 0 2px 0;
  transform: rotate(-45deg);
  margin-bottom: -2px;
}
.af-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.af-nav-spacer { flex: 1; min-width: 0; }
.af-nav-center, .af-nav-right { display: flex; align-items: center; gap: 8px; }
.af-nav a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--af-radius-sm);
  color: var(--af-text-dim);
  white-space: nowrap;
  transition: color var(--af-duration), background var(--af-duration);
}
.af-nav a:hover { color: var(--af-gold); background: rgba(242, 204, 0, 0.08); }

/* Dil seçici — tek birleşik switch (pill) */
.af-lang-switcher {
  display: inline-flex;
  align-items: stretch;
  margin-right: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  overflow: hidden;
  min-height: 36px;
}
.af-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  min-height: 36px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--af-font);
  color: var(--af-text-dim);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color var(--af-duration), background var(--af-duration);
}
.af-lang-btn:first-child {
  border-radius: 0;
}
.af-lang-btn + .af-lang-btn {
  border-left: 1px solid var(--af-border);
}
.af-lang-btn:hover {
  color: var(--af-gold);
  background: rgba(242, 204, 0, 0.06);
}
.af-lang-btn.active {
  color: var(--af-gold);
  background: rgba(242, 204, 0, 0.12);
}
.af-lang-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.af-lang-flag .af-flag-svg {
  width: 18px;
  height: 12px;
  display: block;
  border-radius: 1px;
}
.af-lang-label {
  white-space: nowrap;
}

/* Menü butonu — dil switch ile aynı yükseklik */
.cm-header .cm-nav-toggle {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
}
.cm-header .cm-nav-toggle::before,
.cm-header .cm-nav-toggle::after {
  left: 9px;
  right: 9px;
  height: 2px;
}
.cm-header .cm-nav-toggle::before {
  top: 11px;
  box-shadow: 0 6px 0 currentColor;
}
.cm-header .cm-nav-toggle::after {
  bottom: 11px;
}

/* Mobil: dil seçici hamburgerin solunda, her zaman görünür */
.af-lang-switcher-mobile {
  display: none;
}
@media (max-width: 768px) {
  .af-lang-switcher-mobile {
    display: inline-flex;
    margin-left: auto;
    margin-right: 8px;
  }
  .af-lang-switcher-mobile .af-lang-btn {
    padding: 0 10px;
    font-size: 0.8125rem;
  }
  .af-lang-switcher-desk {
    display: none !important;
  }
}

.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--af-radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--af-duration), color var(--af-duration), transform 0.2s var(--af-ease);
  text-decoration: none;
  font-family: var(--af-font);
}
.af-btn-primary {
  background: linear-gradient(135deg, var(--af-gold) 0%, #C9A800 100%);
  color: #050A14;
}
.af-btn-primary:hover { background: linear-gradient(135deg, var(--af-gold-bright) 0%, var(--af-gold) 100%); color: #050A14; }
.af-btn-outline {
  background: transparent;
  color: var(--af-gold);
  border: 2px solid var(--af-border-gold);
}
.af-btn-outline:hover { background: rgba(242, 204, 0, 0.1); color: var(--af-gold-bright); }
.af-btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: #fff !important;
  border: none;
}
.af-btn-telegram:hover { color: #fff !important; opacity: 0.95; }
.af-btn-telegram-icon { display: inline-flex; align-items: center; }
.af-btn-telegram-icon svg { width: 18px; height: 18px; }
@media (max-width: 768px) {
  .af-header-inner { padding: 10px 16px; }
  .af-nav-toggle { display: flex !important; }
  .af-nav-spacer { display: none; }
  .af-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--af-bg-card);
    border-bottom: 1px solid var(--af-border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--af-duration), opacity var(--af-duration);
  }
  .af-header.nav-open .af-nav { max-height: 280px; opacity: 1; }
  .af-nav a { padding: 12px 16px; }
}

/* --- Container --- */
.af-container { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.af-container--form { max-width: 640px; }
.af-container--two-col { max-width: 1100px; }

/* --- Nasıl Çalışır + Başvuru formu (çift sütun) --- */
.af-how-form-section { scroll-margin-top: 80px; }
.af-two-col-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
}
.af-how-col,
.af-form-col { min-width: 0; }
.af-how-form-section .af-section-title { margin-bottom: 16px; }
.af-form-col .af-section-title { margin-bottom: 12px; }
.af-how-col .af-section-title { margin-bottom: 12px; }

/* Nasıl Çalışır — kart (sadece adımlar; başlık + giriş dışarıda, form başlığı ile aynı stilde) */
.af-how-card {
  background: linear-gradient(160deg, rgba(10, 18, 40, 0.95) 0%, rgba(5, 10, 20, 0.98) 100%);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 28px 26px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(242, 204, 0, 0.06);
  position: relative;
  overflow: hidden;
}
.af-how-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--af-gold) 0%, var(--af-gold-bright) 50%, var(--af-gold) 100%);
  opacity: 0.9;
}
.af-how-card .af-how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.af-how-card .af-how-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px 16px;
  align-items: flex-start;
  padding: 14px 0;
  border: none;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--af-border);
  transition: background var(--af-duration);
}
.af-how-card .af-how-step:last-child { border-bottom: none; padding-bottom: 0; }
.af-how-card .af-how-step:hover { background: rgba(255, 255, 255, 0.02); }
.af-how-card .af-how-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--af-gold);
  background: rgba(242, 204, 0, 0.12);
  border: 1px solid var(--af-border-gold);
  border-radius: 50%;
  margin-top: 2px;
}
.af-how-card .af-how-content { min-width: 0; }
.af-how-card .af-how-step-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--af-text);
  margin-bottom: 4px;
}
.af-how-card .af-how-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--af-text-dim);
  line-height: 1.55;
}
.af-how-card .af-how-icon { display: none; }
@media (max-width: 600px) {
  .af-how-card { padding: 22px 20px 28px; }
  .af-how-card .af-how-step { grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; }
  .af-how-card .af-how-num { width: 32px; height: 32px; font-size: 0.875rem; }
}
.af-form-col-lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  margin-bottom: 20px;
}
.af-how-col .af-how-list { grid-template-columns: 1fr; }
@media (max-width: 899px) {
  .af-two-col-wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Hero (çift sütun) --- */
.af-hero {
  padding: 40px 0 56px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.4) 0%, transparent 50%);
}
.af-hero-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: start;
}
.af-hero-left {
  padding-top: 8px;
}
.af-hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af-gold);
  margin-bottom: 12px;
  display: block;
}
.af-hero-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--af-text);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.af-hero-lead {
  font-size: 1.05rem;
  color: var(--af-text-dim);
  line-height: 1.65;
  margin-bottom: 24px;
}
.af-hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.af-hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--af-text);
  font-weight: 500;
}
.af-hero-features li .ti {
  font-size: 1.25rem;
  color: var(--af-gold);
  flex-shrink: 0;
}
.af-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero sağ sütun — Program Hakkında */
.af-hero-right {
  position: relative;
  scroll-margin-top: 80px;
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.af-hero-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--af-gold) 0%, var(--af-gold-bright) 100%);
  border-radius: var(--af-radius) var(--af-radius) 0 0;
}
.af-hero-side-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--af-text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.af-hero-side-lead {
  font-size: 0.9rem;
  color: var(--af-text-dim);
  line-height: 1.55;
  margin-bottom: 22px;
}
.af-hero-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.af-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  transition: border-color var(--af-duration), background var(--af-duration);
}
.af-hero-card:hover {
  border-color: var(--af-border-gold);
  background: rgba(242, 204, 0, 0.05);
}
.af-hero-card-icon {
  font-size: 1.5rem;
  color: var(--af-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(242, 204, 0, 0.1);
  border-radius: var(--af-radius-sm);
  flex-shrink: 0;
}
.af-hero-card-icon .ti { font-size: inherit; }
.af-hero-card-content { min-width: 0; }
.af-hero-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--af-text);
  margin-bottom: 4px;
}
.af-hero-card-text {
  font-size: 0.8125rem;
  color: var(--af-text-dim);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .af-hero-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* Mobilde: Affiliate ile Kazanın üstte, Program Hakkında altta */
  .af-hero-left { order: -1; }
  .af-hero-right { order: 0; }
}

@media (max-width: 600px) {
  .af-hero { padding: 32px 0 40px; }
  .af-hero-wrap { padding: 0 16px; gap: 28px; }
  .af-hero-right { padding: 22px 18px; }
  .af-hero-card { padding: 12px 14px; gap: 12px; }
  .af-hero-card-icon { width: 38px; height: 38px; font-size: 1.25rem; }
}

/* --- Sections --- */
.af-section { padding: 40px 0; }
.af-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--af-text);
  margin-bottom: 12px;
  text-align: center;
}
.af-section-lead {
  font-size: 0.95rem;
  color: var(--af-text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
  text-align: center;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* --- Cards (detaylar) --- */
.af-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.af-card {
  padding: 20px 18px;
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  transition: border-color var(--af-duration), box-shadow var(--af-duration);
}
.af-card:hover { border-color: var(--af-border-gold); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.af-card-icon { font-size: 1.75rem; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 12px; color: var(--af-gold); }
.af-card-icon .ti { font-size: inherit; }
.af-card-title { font-size: 1rem; font-weight: 600; color: var(--af-text); margin-bottom: 8px; }
.af-card-text { font-size: 0.875rem; color: var(--af-text-dim); line-height: 1.5; margin: 0; }
@media (max-width: 600px) {
  .af-cards { grid-template-columns: 1fr; }
}

/* --- How / Notes --- */
.af-how { margin-bottom: 24px; }
.af-how-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--af-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.af-how-title .ti { font-size: 1.15rem; color: var(--af-gold); }
.af-how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  position: relative;
}
.af-how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: flex-start;
  padding: 14px 16px;
  position: relative;
  border: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  transition: border-color var(--af-duration), background var(--af-duration);
}
.af-how-step:hover {
  border-color: var(--af-border-gold);
  background: rgba(242, 204, 0, 0.04);
}
.af-how-step:not(:last-child)::after { display: none; }
.af-how-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--af-gold);
  background: rgba(242, 204, 0, 0.12);
  border: 1px solid var(--af-border-gold);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.af-how-content { min-width: 0; }
.af-how-step-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--af-text);
  margin-bottom: 2px;
}
.af-how-content p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--af-text-dim);
  line-height: 1.5;
}
.af-how-icon {
  display: none;
}
@media (max-width: 600px) {
  .af-how-list { grid-template-columns: 1fr; gap: 10px; }
  .af-how-step { padding: 12px 14px; }
  .af-how-num { width: 32px; height: 32px; font-size: 0.875rem; }
}

.af-notes { margin-bottom: 28px; }
.af-notes-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  border-left: 4px solid var(--af-gold);
  padding: 24px 24px 24px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}
.af-notes-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--af-text);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.af-notes-title .ti { font-size: 1.35rem; color: var(--af-gold); }
.af-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.af-notes-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--af-text-dim);
  line-height: 1.6;
}
.af-notes-list li .ti {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--af-gold);
  opacity: 0.9;
}
.af-notes-list li span { flex: 1; min-width: 0; }
@media (max-width: 540px) {
  .af-notes-card { padding: 20px 18px 20px 22px; }
}

/* --- Form --- */
.af-form-section { scroll-margin-top: 80px; }
.af-form-section .af-section-title { margin-bottom: 8px; }
.af-form-section .af-section-lead { margin-bottom: 32px; }
.af-form-wrap { position: relative; }
.af-form-card {
  background: linear-gradient(160deg, rgba(10, 18, 40, 0.95) 0%, rgba(5, 10, 20, 0.98) 100%);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(242, 204, 0, 0.06);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.af-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--af-gold) 0%, var(--af-gold-bright) 50%, var(--af-gold) 100%);
  opacity: 0.9;
}
.af-form { margin-bottom: 0; }
.af-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 540px) {
  .af-form-card { padding: 24px 20px; }
  .af-form-row { grid-template-columns: 1fr; gap: 0; }
}
.af-form-group { margin-bottom: 20px; }
.af-form-row .af-form-group { margin-bottom: 20px; }
.af-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--af-text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.af-form-group label .required { color: var(--af-danger); }
.af-form-group label .optional { font-weight: 400; color: var(--af-text-muted); font-size: 0.8em; }
.af-form-input, .af-form-textarea, .af-form-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-family: var(--af-font);
  color: var(--af-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  transition: border-color var(--af-duration), box-shadow var(--af-duration), background var(--af-duration);
}
.af-form-input::placeholder,
.af-form-textarea::placeholder {
  color: var(--af-text-muted);
}
.af-form-input:hover, .af-form-textarea:hover, .af-form-select:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.af-form-input:focus, .af-form-textarea:focus, .af-form-select:focus {
  outline: none;
  border-color: var(--af-gold);
  box-shadow: 0 0 0 3px rgba(242, 204, 0, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.af-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A8BA4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.af-form-select option { background: var(--af-bg-card); color: var(--af-text); }
.af-form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--af-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}
.af-form-textarea {
  min-height: 128px;
  resize: vertical;
  max-height: 280px;
}
.af-form-group.error .af-form-input,
.af-form-group.error .af-form-textarea,
.af-form-group.error .af-form-select {
  border-color: var(--af-danger);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}
.af-form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--af-danger);
  margin-top: 6px;
  font-weight: 500;
}
.af-form-group.error .af-form-error { display: block; }
.af-char-count {
  font-size: 0.8rem;
  color: var(--af-text-muted);
  margin-top: 6px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.af-form-consent { margin-bottom: 24px; }
.af-form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--af-text-dim);
  line-height: 1.5;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  transition: border-color var(--af-duration), background var(--af-duration);
}
.af-form-consent-label:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.af-form-consent-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--af-gold);
  cursor: pointer;
}
.af-form-group.error .af-form-consent-label {
  border-color: var(--af-danger);
  background: rgba(220, 38, 38, 0.06);
}
.af-form-group.error .af-form-consent-text { color: var(--af-danger); }
.af-btn-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  font-size: 1rem;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(242, 204, 0, 0.25);
}
.af-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242, 204, 0, 0.3);
}
.af-btn-submit:active { transform: translateY(0); }
.af-btn-submit i { font-size: 1.125rem; }
.af-btn-submit:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
}

/* --- Success box --- */
.af-success {
  display: none;
  padding: 36px 28px;
  text-align: center;
  background: linear-gradient(160deg, rgba(14, 164, 122, 0.08) 0%, var(--af-bg-card) 100%);
  border: 1px solid rgba(14, 164, 122, 0.25);
  border-radius: var(--af-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: af-success-in 0.4s var(--af-ease) forwards;
}
.af-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--af-success) 0%, #14b8a6 100%);
}
.af-success.show { display: block; }
@keyframes af-success-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.af-success-icon {
  font-size: 3.5rem;
  color: var(--af-success);
  margin-bottom: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.af-success-icon .ti { font-size: inherit; }
.af-success-title { font-size: 1.25rem; font-weight: 700; color: var(--af-success); margin-bottom: 8px; letter-spacing: -0.01em; }
.af-success-lead { color: var(--af-text-dim); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.5; }
.af-success p:last-of-type { font-size: 0.9rem; color: var(--af-text-dim); }
.af-ref { font-size: 1.15rem; color: var(--af-gold); font-weight: 700; }
.af-success-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* --- SSS (çift sütun) --- */
.af-sss { padding: 32px 0 48px; }
.af-sss .af-sss-container {
  max-width: 1100px;
  padding: 0 24px;
}
.af-sss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  align-items: start;
}
.af-sss-col { min-width: 0; }
.af-sss-list { border: 1px solid var(--af-border); border-radius: var(--af-radius); overflow: hidden; }
@media (max-width: 768px) {
  .af-sss-grid { grid-template-columns: 1fr; gap: 24px; }
}
.af-sss-item {
  border-bottom: 1px solid var(--af-border);
  transition: border-color var(--af-duration);
}
.af-sss-item:last-child { border-bottom: none; }
.af-sss-item:hover { border-color: var(--af-border-gold); }
.af-sss-trigger {
  width: 100%;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--af-text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--af-font);
  transition: color var(--af-duration);
}
.af-sss-trigger::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--af-duration);
}
.af-sss-item.open .af-sss-trigger::after { transform: rotate(-135deg); }
.af-sss-trigger:hover { color: var(--af-gold); }
.af-sss-body {
  display: none;
  padding: 0 18px 16px;
}
.af-sss-list .af-sss-item.open .af-sss-body {
  display: block !important;
}
.af-sss-body p { margin: 0; font-size: 0.9rem; color: var(--af-text-dim); line-height: 1.6; }

/* --- Footer --- */
.af-footer {
  padding: 20px 24px;
  background: var(--af-bg-card);
  border-top: 1px solid var(--af-border);
  margin-top: auto;
}
.af-footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.af-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin-bottom: 10px;
  font-size: 0.875rem;
}
.af-footer-nav a { color: var(--af-text-dim); }
.af-footer-nav a:hover { color: var(--af-gold); }
.af-footer-name { font-weight: 600; color: var(--af-text); }
.af-footer-sep { color: var(--af-text-muted); }
.af-footer-cta { font-weight: 500; }
.af-footer-copy { font-size: 0.8rem; color: var(--af-text-muted); margin: 0; }
