/* ═══════════════════════════════════════════════════════════
   HadiBET — Sizi Arayalım
   Birebir hadibet.app brand renkleri
   Bg: #0c1e14  |  Mint: #2ee6a8  |  Card: rgba(255,255,255,0.05)
   Font: Plus Jakarta Sans
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand colors — exact hadibet.app palette */
  --bg:            #0c1e14;   /* deep brand green-black */
  --bg-2:          #0a1910;   /* slightly darker */
  --mint:          #2ee6a8;   /* primary neon mint */
  --mint-dark:     #20c88e;   /* hover */
  --mint-dim:      rgba(46, 230, 168, 0.12);
  --mint-border:   rgba(46, 230, 168, 0.30);
  --card-bg:       rgba(255, 255, 255, 0.05);
  --card-border:   rgba(255, 255, 255, 0.08);
  --card-hover:    rgba(46, 230, 168, 0.08);
  --card-active:   rgba(46, 230, 168, 0.14);
  --text-white:    #ffffff;
  --text-soft:     rgba(255,255,255,0.65);
  --text-muted:    rgba(255,255,255,0.35);
  --input-bg:      rgba(255,255,255,0.06);
  --input-border:  rgba(255,255,255,0.12);
  --input-focus:   rgba(46, 230, 168, 0.45);
  --error:         #ff6b6b;

  --font-brand: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-input: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-brand);
  background: var(--bg);
  color: var(--text-white);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Glow orbs (hadibet.app aesthetic) ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-tl {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(46,230,168,0.18) 0%, transparent 70%);
  top: -120px; left: -120px;
}
.orb-br {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(46,230,168,0.10) 0%, transparent 70%);
  bottom: -160px; right: -120px;
}

/* ── Page wrapper ── */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── Site Header / Logo ── */
.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Siteye Git butonu */
.site-go-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.site-go-btn:hover {
  border-color: var(--mint-border);
  color: var(--mint);
  background: var(--card-hover);
}

/* ── Card ── */
.card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 36px 32px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Card headline ── */
.card-headline {
  text-align: center;
  margin-bottom: 28px;
}

.headline-white {
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.headline-mint {
  color: var(--mint);
  display: block;
}

.headline-i {
  /* Uppercase dotted İ workaround */
  font-style: normal;
}

.card-sub {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* ── Form ── */
form { display: flex; flex-direction: column; gap: 14px; }

/* ── Text inputs ── */
.fld { display: flex; flex-direction: column; gap: 6px; }

.txt-input {
  width: 100%;
  height: 52px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-pill);
  color: var(--text-white);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 500;
  padding: 0 22px;
  outline: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.txt-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.txt-input:focus {
  border-color: rgba(46, 230, 168, 0.6);
  box-shadow: 0 0 0 3px var(--mint-dim);
  background: rgba(46, 230, 168, 0.04);
}

.txt-input.invalid {
  border-color: rgba(255,107,107,0.6);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.10);
}
.txt-input.valid {
  border-color: rgba(46, 230, 168, 0.4);
}

/* ── Autofill override (Chrome/Safari beyaz arkaplanı engelle) ── */
.txt-input:-webkit-autofill,
.txt-input:-webkit-autofill:hover,
.txt-input:-webkit-autofill:focus,
.txt-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0f2318 inset !important;
  box-shadow: 0 0 0 1000px #0f2318 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  border-color: rgba(46, 230, 168, 0.35) !important;
  transition: background-color 0s 600000s, color 0s 600000s !important;
}

/* Textarea */
.txt-area {
  height: auto;
  border-radius: 16px;
  padding: 14px 22px;
  resize: none;
  line-height: 1.6;
}

/* Karakter sayacı */
.char-counter {
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding-right: 4px;
  letter-spacing: 0.03em;
  transition: color 180ms ease;
}
.char-counter.warn  { color: #f59e0b; }
.char-counter.limit { color: #ff6b6b; }

/* Field errors */
.fld-err {
  font-size: 12px;
  font-weight: 500;
  color: var(--error);
  padding-left: 8px;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  pointer-events: none;
}
.fld-err.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section labels ── */
.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding-left: 4px;
}

/* ══════════════════════════════
   ACTION BUTTONS (İletişim listesi — hadibet.app pill style)
   ══════════════════════════════ */
.btn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  height: 54px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.action-btn:hover {
  background: var(--card-hover);
  border-color: var(--mint-border);
}

.action-btn:active { transform: scale(0.985); }

/* Selected state — JS adds .selected class */
.action-btn.selected,
.action-btn:has(.sr-only:checked) {
  background: var(--card-active);
  border-color: var(--mint);
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(46, 230, 168, 0.12);
  border-radius: 50%;
  color: var(--mint);
  flex-shrink: 0;
  transition: background 180ms var(--ease);
}

.action-btn.selected .action-icon,
.action-btn:has(.sr-only:checked) .action-icon {
  background: rgba(46, 230, 168, 0.22);
}

.action-label {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-white);
}

.action-arrow {
  font-size: 18px;
  color: var(--mint);
  font-weight: 700;
  transition: transform 180ms var(--ease);
}

.action-btn:hover .action-arrow,
.action-btn:has(.sr-only:checked) .action-arrow {
  transform: translateX(3px);
}

/* ══════════════════════════════
   TIME CHIPS
   ══════════════════════════════ */
.time-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.time-chip:hover {
  background: var(--card-hover);
  border-color: var(--mint-border);
  color: var(--text-white);
}

.time-chip:has(.sr-only:checked),
.time-chip.selected {
  background: var(--card-active);
  border-color: var(--mint);
  color: var(--mint);
}

.time-chip svg { color: currentColor; }

/* ══════════════════════════════
   SUBMIT BUTTON — full-width pill
   ══════════════════════════════ */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 58px;
  background: var(--mint);
  color: #061409;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 180ms var(--ease), transform 150ms var(--ease), box-shadow 180ms var(--ease);
  box-shadow: 0 4px 24px rgba(46, 230, 168, 0.25);
  margin-top: 4px;
}

.submit-btn:hover {
  background: #36f0b4;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(46, 230, 168, 0.35);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(46, 230, 168, 0.2);
}

.submit-btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.submit-icon {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  width: 32px; height: 32px;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 200ms;
}

.submit-label, .submit-arrow { transition: opacity 200ms; }

.submit-arrow { font-size: 20px; font-weight: 900; }

/* Loading state */
.submit-btn.loading .submit-icon,
.submit-btn.loading .submit-label,
.submit-btn.loading .submit-arrow { opacity: 0; }
.submit-btn.loading .submit-spinner { opacity: 1; }

.submit-spinner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2.5px solid rgba(6,20,9,0.25);
  border-top-color: #061409;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Trust row ── */
.trust-row {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 4px;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── SR only ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ══════════════════════════════
   SUCCESS STATE
   ══════════════════════════════ */
.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 8px 0;
  animation: fadeUp 0.45s var(--ease) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

#success-view[hidden] { display: none; }

.success-icon-ring {
  margin-bottom: 24px;
}

.circle-anim {
  animation: drawCircle 0.55s ease forwards 0.1s;
}
.check-anim {
  animation: drawCheck 0.38s ease forwards 0.62s;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }

.success-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.success-body {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.success-contact {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  color: var(--mint);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.success-method-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--card-active);
  border: 1px solid var(--mint-border);
  border-radius: 14px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 20px;
  line-height: 1.5;
}

.success-tag-sep {
  color: rgba(46,230,168,0.35);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
}

.success-eta-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(46,230,168,0.07);
  border: 1px solid rgba(46,230,168,0.18);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  color: rgba(46,230,168,0.85);
  font-weight: 500;
  margin-bottom: 28px;
}
.success-eta-box strong { font-weight: 800; color: var(--mint); }

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 480px) {
  .card { padding: 28px 20px 24px; }
  .time-row { grid-template-columns: repeat(2, 1fr); }
  .headline-white { font-size: 36px; }
  .trust-row { gap: 12px; flex-wrap: wrap; justify-content: center; }
}

@media (min-width: 800px) {
  .page { padding: 48px 20px 64px; }
  .site-logo { height: 46px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
