/* ==========================================================================
   Armutlu İnternet Erişimi — site tasarımı
   Not: Sayfada Bootstrap CSS yüklü değil, sadece Bootstrap JS (modal vb.)
   kullanılıyor. Bu dosya .container/.row/.card/.form-control/.btn gibi
   mevcut class isimlerini SIFIRDAN tanımlar; hiçbir PHP/markup değişikliği
   gerektirmez.
   ========================================================================== */

:root {
  --navy: #143349;
  --navy-2: #1f5279;
  --accent: #ec1e79;
  --accent-dark: #c4125f;
  --bg: #eef1f4;
  --surface: #ffffff;
  --ink: #16212c;
  --muted: #64737f;
  --border: #e3e9ee;
  --danger: #e0483e;
  --danger-soft: #fdeceb;
  --success: #1f9d6b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 32, 45, .04), 0 12px 32px -16px rgba(16, 32, 45, .24);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  opacity: 1 !important; /* eski FOUC hilesini iptal eder, boş beyaz ekran riskini kaldırır */
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--navy-2); }

hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── grid yardımcıları (mevcut class isimleri korunuyor) ── */
.container, .container-fluid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row > [class*="col-"] { padding: 0 8px; width: 100%; }
.col-auto { width: auto; flex: 0 0 auto; }
.col-6 { width: 50%; }
@media (min-width: 768px) {
  .col-md-6 { width: 50%; }
  .col-md-12 { width: 100%; }
}
.col-lg-12 { width: 100%; }

.d-none { display: none; }
@media (min-width: 576px) {
  .d-sm-block { display: block; }
}
.text-muted { color: var(--muted); }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Üst bar: logo + kompakt ilerleme çubuğu tek blokta.
   Tek bir uygulama, tüm ekran boyutlarında aynı şekilde davranır —
   ayrı "mobil" / "masaüstü" versiyonu yok, dolayısıyla mobilde yer kaplamaz.
   ========================================================================== */
.site { min-height: 100vh; display: flex; flex-direction: column; }

.site-header {
  background: var(--navy);
  color: #fff;
}
.site-header__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.site-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.site-header__text {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.progress-track {
  background: var(--navy);
  max-width: none;
  margin: 0;
  padding: 0 16px 14px;
}
.progress-track__inner {
  max-width: 640px;
  margin: 0 auto;
}
.progress-track__bar {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.progress-track__seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .18);
}
.progress-track__seg.is-filled { background: var(--accent); }
.progress-track__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .68);
}
.progress-track__meta strong {
  color: #fff;
  font-weight: 700;
}

/* ── ana içerik ── */
.site-main { flex: 1; padding: 20px 16px 44px; }

.wizard { max-width: 640px; margin: 0 auto; }

/* ── tanıtım bandı (paket reklamı) ── */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 13px 15px;
  background: linear-gradient(135deg, #fdeaf2 0%, #ffffff 65%);
  border: 1px solid #f6c3da;
  border-radius: 13px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.promo-banner:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px -12px rgba(236, 30, 121, .4);
  transform: translateY(-1px);
}
.promo-banner__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-banner__icon svg { width: 20px; height: 20px; }
.promo-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.promo-banner__text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.promo-banner__text span {
  font-size: 12px;
  color: var(--muted);
}
.promo-banner__arrow {
  flex-shrink: 0;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 700;
}
.promo-banner__flash {
  animation: promo-flash 1.6s ease-in-out infinite;
}
@keyframes promo-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-banner__flash { animation: none; }
}

/* ── kart ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.card-header {
  padding: 20px 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.card-header__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #eef4f8;
  color: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-header__icon svg { width: 21px; height: 21px; }
.card-header__text { min-width: 0; padding-top: 2px; }
.card-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.card-subtitle { margin-top: 3px; font-size: 13px; line-height: 1.4; }
.card-body { padding: 0 20px 6px; }
.card-action { padding: 6px 20px 22px; }
.back-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--navy-2); text-decoration: underline; }

/* ── özet listesi (onay.php) ── */
.summary-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 13px 16px;
  background: #fafbfc;
}
.summary-row + .summary-row { border-top: 1px solid var(--border); }
.summary-row__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
.summary-row__value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

/* ── tutar kartı (odeme.php) ── */
.amount-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  border-radius: 13px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.amount-display__label {
  font-size: 12.5px;
  font-weight: 600;
  opacity: .78;
  letter-spacing: .01em;
}
.amount-display__value {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ── ay/yıl gibi ikili alanlar ── */
.field-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-pair .form-control { width: auto; flex: 1 1 0; }
.field-pair__sep { color: var(--muted); font-weight: 700; flex-shrink: 0; }

/* ── form ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 16px; /* iOS'ta otomatik zoom'u engeller */
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(31, 82, 121, .14);
}
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='%2362717d' d='M5.5 7.5l4.5 4.5 4.5-4.5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  vertical-align: middle;
  margin-right: 6px;
}

/* ── onay switch (sözleşme kabul) ── */
.consent-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.consent-row .switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}
.consent-row .switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}
.switch__track {
  width: 46px;
  height: 27px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  transition: background .18s ease;
}
.switch__track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 32, 45, .3);
  transition: transform .18s ease;
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::before { transform: translateX(19px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--navy-2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .switch__track, .switch__track::before { transition: none; }
}
.consent-row__text { font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* ── butonlar ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
  font-family: var(--font);
}
.btn:active { transform: translateY(1px); }
.btn-danger, .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(236, 30, 121, .5);
}
.btn-danger:hover, .btn-primary:hover { background: var(--accent-dark); }

/* modal footer "Kapat" butonu gibi renksiz .btn kullanımları */
.modal .btn:not(.btn-danger) {
  width: auto;
  min-height: 40px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}
.modal .btn:not(.btn-danger):hover { background: var(--border); }

/* ── uyarı kutuları ── */
.alert {
  border-radius: 11px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-info {
  background: #eaf2f8;
  color: var(--navy);
  border: 1px solid #d3e4ef;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-info::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2.5px solid var(--navy-2);
  border-top-color: transparent;
  animation: site-spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .alert-info::before { animation: none; }
}
.alert-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid #f6d3d0; }
@keyframes site-spin { to { transform: rotate(360deg); } }

/* ── footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  margin-top: auto;
}
.footer .container-fluid { max-width: 1100px; }
.footer, .footer a { font-size: 12.5px; color: var(--muted); }

/* ── Bootstrap modal (JS mevcut, CSS'i burada) ── */
.modal { display: none; position: fixed; inset: 0; z-index: 1050; }
.modal.show, .modal.in { display: block; }
.modal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, .55);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 8vh auto;
  padding: 0 16px;
}
.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .4);
  overflow: hidden;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
}
.modal-title { font-size: 15.5px; font-weight: 700; margin: 0; }
.modal-header .close {
  background: none;
  border: none;
  color: #fff;
  opacity: .85;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.modal-header .close:hover { opacity: 1; }
.modal-body { padding: 18px 20px; overflow-y: auto; font-size: 13.5px; color: var(--ink); }
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .modal-dialog { margin: 0; padding: 0; max-width: none; height: 100%; }
  .modal-content { border-radius: 0; height: 100%; max-height: none; }
}

/* ── odak erişilebilirliği ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--navy-2);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .site-main { padding: 16px 12px 32px; }
  .card-header { padding: 16px 16px 14px; }
  .card-body { padding: 0 16px 4px; }
  .card-action { padding: 4px 16px 20px; }
  .card-title { font-size: 17px; }
}
