/* vizeliyorum.com renkleri */
:root {
  --pri: #2a6f61; --pri-d: #1d4f46; --mint: #8fd3c1; --soft: #e8f3ef;
  --bg: #fbfaf7; --card: #fff; --warm: #f7f0e6; --warm-ink: #7a5a2e;
  --ink: #1f2a37; --head: #16212c; --muted: #5b6675; --line: #e7e3dc;
  --err: #b42318; --err-bg: #fdf0ee;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 33, 44, .04), 0 4px 16px rgba(22, 33, 44, .05);
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-fast: 120ms; --t: 200ms; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--head); line-height: 1.2; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(26px, 4.4vw, 36px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: var(--pri); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pri); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }

/* Üst bar */
.top { position: sticky; top: 0; z-index: 5; background: rgba(251, 250, 247, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1040px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand em, .brand-foot em { font-style: normal; color: var(--pri); }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background var(--t-fast) var(--ease); }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--pri-d); font-weight: 600; }

/* Alt menü (mobil) */
.tabbar { display: none; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; min-height: 52px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--muted); -webkit-tap-highlight-color: transparent; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--pri); }
@media (max-width: 720px) {
  .nav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* iOS uygulaması */
.native .nav { display: none; }
.native .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.native body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; overscroll-behavior-y: none; }
.native input, .native textarea, .native .legal, .native .ref, .native .iban { -webkit-user-select: text; user-select: text; }
.native .top { padding-top: env(safe-area-inset-top); }
.native .top-in { height: 52px; justify-content: center; }
.native .foot { display: none; }
.native main { padding-top: 20px; }
.native .app-only { display: block; }
.app-only { display: none; }

body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; padding-top: 32px; padding-bottom: 56px; outline: none; }
.page-head { margin-bottom: 24px; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 17px; }

/* Adım göstergesi */
.steps { display: flex; gap: 6px; margin-bottom: 20px; list-style: none; padding: 0; }
.steps li { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background var(--t) var(--ease); }
.steps li.on { background: var(--pri); }
.step-label { font-size: 13px; font-weight: 600; color: var(--pri); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

/* Kartlar */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.section-title { margin-bottom: 4px; }
.section-desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* Seçim kartları */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.choice { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.choice:hover { border-color: var(--mint); }
.choice:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.choice[aria-pressed="true"] { border-color: var(--pri); background: var(--soft); }
.choice .ico { font-size: 28px; line-height: 1; }
.choice h3 { margin-bottom: 4px; }
.choice p { color: var(--muted); font-size: 14px; }

.search { margin-bottom: 14px; }
.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.country { all: unset; box-sizing: border-box; cursor: pointer; padding: 12px 14px; min-height: 48px; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 500; font-size: 15px; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.country:hover { border-color: var(--mint); }
.country:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.country[aria-pressed="true"] { border-color: var(--pri); background: var(--soft); color: var(--pri-d); font-weight: 700; }
.country.alt { color: var(--muted); border-style: dashed; }

/* Form */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="search"], input[type="month"], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); transition: border-color var(--t-fast) var(--ease);
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6675' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:hover, select:hover, textarea:hover { border-color: #d3cdc2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(42, 111, 97, .15); }
.invalid input, .invalid select, .invalid textarea, input.invalid { border-color: var(--err); }
.err { font-size: 13px; color: var(--err); font-weight: 500; }
.err:empty { display: none; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { position: relative; flex: 1; min-width: 96px; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 500; background: #fff; transition: all var(--t-fast) var(--ease); }
.seg input:hover + span { border-color: var(--mint); }
.seg input:checked + span { border-color: var(--pri); background: var(--soft); color: var(--pri-d); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }

.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.counter-row:last-of-type { border-bottom: 0; }
.counter-row b { display: block; font-weight: 600; }
.counter { display: flex; align-items: center; gap: 4px; }
.counter button { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 999px; font-size: 20px; color: var(--pri-d); background: #fff; }
.counter button:hover:not(:disabled) { border-color: var(--pri); background: var(--soft); }
.counter button:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.counter button:disabled { opacity: .35; cursor: default; }
.counter output { min-width: 36px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.total { margin-top: 12px; padding: 12px 14px; background: var(--soft); color: var(--pri-d); border-radius: var(--r-sm); font-weight: 600; font-size: 15px; }

.visa-rows { display: flex; flex-direction: column; gap: 10px; }
.visa-row { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 10px; align-items: end; }
@media (max-width: 560px) { .visa-row { grid-template-columns: 1fr 1fr 44px; } }
.icon-btn { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--muted); }
.icon-btn:hover { background: var(--warm); color: var(--ink); }
.icon-btn:focus-visible { outline: 3px solid var(--mint); }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pri); flex: none; cursor: pointer; }
.check .linkish { all: unset; cursor: pointer; color: var(--pri); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Butonlar */
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--pri); color: #fff; font-weight: 600; font-size: 16px; transition: background var(--t-fast) var(--ease); text-align: center; }
.btn:hover { background: var(--pri-d); }
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn.ghost { background: #fff; color: var(--pri-d); border: 1.5px solid var(--pri); }
.btn.ghost:hover { background: var(--soft); }
.btn.text { background: none; color: var(--muted); padding: 0 12px; }
.btn.text:hover { color: var(--ink); background: none; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.actions .right { margin-left: auto; display: flex; gap: 10px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bildirimler */
.alert { padding: 14px 16px; border-radius: var(--r-sm); font-size: 15px; margin-bottom: 16px; }
.alert.error { background: var(--err-bg); color: var(--err); }
.alert.info { background: var(--warm); color: var(--warm-ink); }
.alert.ok { background: var(--soft); color: var(--pri-d); }

.summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.pill { display: inline-block; background: var(--soft); color: var(--pri-d); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 600; }

.done { text-align: center; padding: 40px 24px; }
.done .big { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--pri); display: grid; place-items: center; font-size: 30px; margin: 0 auto 16px; }
.done .ref { font-size: 24px; font-weight: 800; letter-spacing: .04em; color: var(--pri-d); margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.done .actions { justify-content: center; }


/* Evrak */
.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; border: 2px dashed #d3cdc2; border-radius: var(--r); background: var(--bg); text-align: center; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.drop:hover, .drop.over { border-color: var(--pri); background: var(--soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--mint); outline-offset: 2px; }
.files { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.files li { display: grid; grid-template-columns: 1fr minmax(140px, 220px) 44px; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.files .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.files .fsize { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.files select { min-height: 40px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
@media (max-width: 560px) { .files li { grid-template-columns: 1fr 44px; } .files select { grid-column: 1 / 2; grid-row: 2; } }

/* Ödeme */
.iban { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 17px; letter-spacing: .03em; font-weight: 600; word-break: break-all; }
.copy-line { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); margin-top: 8px; }

/* Yasal metin */
.legal h2 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink); font-size: 15px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; }

/* Dialog */
dialog { border: 0; border-radius: var(--r); padding: 0; width: min(680px, calc(100vw - 24px)); max-height: min(80vh, 760px); box-shadow: 0 20px 60px rgba(22, 33, 44, .25); color: var(--ink); }
dialog::backdrop { background: rgba(22, 33, 44, .45); }
dialog[open] { display: flex; flex-direction: column; animation: dlg var(--t) var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(8px); } }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 12px 24px; border-bottom: 1px solid var(--line); }
.dlg-body { padding: 4px 24px 20px; overflow-y: auto; }
.dlg-foot { padding: 12px 24px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

/* Alt bilgi */
.foot { background: var(--head); color: #cfd6de; padding: 32px 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: 1040px; }
.foot p { max-width: 420px; margin-top: 6px; }
.brand-foot { color: #fff; font-size: 17px; letter-spacing: -.02em; }
.brand-foot em { color: var(--mint); }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot a { color: #e7edf2; }

.view-enter { animation: fade var(--t) var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* Belge kaynakları (iOS) */
.sr-only { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.src { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; min-height: 92px; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r); color: var(--pri-d); transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.src svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.src b { font-size: 15px; color: var(--ink); }
.src:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.src[hidden] { display: none; }

/* Başvurularım */
.app-card h3 { margin: 10px 0 2px; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ref-sm { font-weight: 800; letter-spacing: .04em; color: var(--pri-d); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 0 14px 26px; font-size: 14px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.on { color: var(--ink); font-weight: 600; }
.timeline li.on::before { border-color: var(--pri); background: var(--pri); }
.app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.done .big svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* iOS dokunma hissi: hover yerine basılı tutma geri bildirimi */
.tabbar a { white-space: nowrap; }
.native .kb-open .tabbar, .kb-open .tabbar { display: none; }
.native .choice:hover, .native .country:hover, .native .seg input:hover + span { border-color: var(--line); }
.native .choice[aria-pressed="true"], .native .country[aria-pressed="true"] { border-color: var(--pri); }
.native .btn:active, .native .src:active, .native .choice:active, .native .country:active { transform: scale(.97); }
.native .btn:active { background: var(--pri-d); }
.native .btn.ghost:active { background: var(--soft); }
.native .tabbar a:active svg { transform: scale(.9); }
.native .counter button:active:not(:disabled) { background: var(--soft); transform: scale(.94); }
.native .btn, .native .choice, .native .country, .native .counter button { transition: transform 100ms var(--ease), background var(--t-fast) var(--ease); }

main:focus, main:focus-visible { outline: none; }

/* Hizmet seçimi */
.services { display: flex; flex-direction: column; gap: 8px; }
.service { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.service input { width: 22px; height: 22px; margin: 0; accent-color: var(--pri); cursor: pointer; }
.service:has(input:checked) { border-color: var(--pri); background: var(--soft); }
.service:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }
.sv-text b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.sv-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.sv-price { font-weight: 700; font-size: 14px; color: var(--pri-d); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px; }
#tercume-wrap { margin-top: 6px; }
#tercume-wrap .counter-row { border: 0; }
.invalid .service { border-color: var(--err); }

/* Fiyat teklifi */
#fiyat-ozet:not(:empty) { margin-top: 14px; }
.quote { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.q-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.q-row span { font-weight: 500; }
.q-row small, .q-total small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.q-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-row.tbd b { color: var(--muted); font-weight: 500; font-size: 14px; }
.q-row.disc b, .q-row.free b { color: var(--pri); }
.q-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 12px 0 4px; font-weight: 700; font-size: 16px; }
.q-total b { font-size: 24px; color: var(--head); font-variant-numeric: tabular-nums; }
.quote:not(.full) .q-total { padding-top: 0; }
.q-kdv { margin-top: 8px; padding: 10px 12px; background: var(--warm); color: var(--warm-ink); border-radius: 8px; font-size: 13.5px; }
.q-note { margin-top: 8px; font-size: 13.5px; color: var(--pri-d); }
.done-price { margin: 4px 0 10px; font-size: 16px; }
.done-price b { color: var(--pri-d); font-size: 18px; }

.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 28px; font-size: 14px; }
.legal-links a { color: var(--muted); }
