/* Beni Ara formu (adım adım) — renkler config.php THEME'den gelir (themeStyle) */
:root {
    --accent: #5cc8ff; --accent-ink: #04121f; --accent-soft: rgba(92,200,255,.14);
    --bg: #06111f; --surface: #0b1a2e; --surface-2: #10233d; --line: #1d3a5f;
    --ink: #eaf3fb; --ink-muted: #8fa9c4;
    --ok: #22c55e; --bad: #ff5d5d;
    --r: 14px; --r-lg: 22px;
    --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px; line-height: 1.5; color: var(--ink);
    background: radial-gradient(1100px 520px at 50% -180px, var(--accent-soft), transparent 70%), var(--bg);
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
[hidden] { display: none !important; }

.bf {
    display: flex; flex-direction: column; align-items: center;
    min-height: 100vh; min-height: 100dvh;
    padding: 32px 16px calc(32px + env(safe-area-inset-bottom));
}
.bf-card { margin: auto 0; } /* kısa içerikte ekranın ortasında, uzun içerikte üstten başlar */
.bf-card {
    width: 100%; max-width: 480px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px 26px 22px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}

/* Üst kısım */
.bf-head { margin-bottom: 18px; }
.bf-logo { display: block; height: 42px; max-width: 72%; object-fit: contain; margin: 2px auto 0; }
.bf-progress { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.bf-back {
    flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
    border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 14px;
}
.bf-back:hover { background: var(--surface-2); }
.bf-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bf-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .35s var(--ease); }
.bf-stepno { flex: none; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }

/* Adım */
.bf-step { animation: stepIn .28s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.bf-q { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; outline: none; }
.bf-qsub { margin: 6px 0 18px; color: var(--ink-muted); font-size: 14px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bf-qsub strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); opacity: .6; display: inline-block; }
.bf-dot.on { background: var(--ok); opacity: 1; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Seçenek listesi */
.bf-list { display: grid; gap: 10px; }
.bf-choice { position: relative; display: block; cursor: pointer; }
.bf-choice input, .bf-hour input { position: absolute; opacity: 0; pointer-events: none; }
.bf-opt {
    display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 12px 14px;
    background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r);
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .12s var(--ease);
}
.bf-opt-lg { min-height: 76px; }
.bf-opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.bf-choice:active .bf-opt { transform: scale(.985); }
.bf-opt-ic {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent); font-size: 16px; transition: all .18s var(--ease);
}
.bf-opt-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bf-opt-tx strong { font-size: 15px; font-weight: 600; line-height: 1.25; }
.bf-opt-tx small { font-size: 12.5px; color: var(--ink-muted); line-height: 1.35; margin-top: 2px; }
.bf-chev { flex: none; color: var(--ink-muted); font-size: 12px; transition: transform .2s var(--ease); }
input:checked + .bf-opt { border-color: var(--accent); background: var(--accent-soft); }
input:checked + .bf-opt .bf-opt-ic { background: var(--accent); color: var(--accent-ink); }
input:checked + .bf-opt .bf-chev { color: var(--accent); }
input[value="saat"]:checked + .bf-opt .bf-chev { transform: rotate(180deg); }
input:focus-visible + .bf-opt { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-check {
    flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    border: 1.5px solid var(--line); font-size: 10px; color: transparent; transition: all .18s var(--ease);
}
input:checked + .bf-opt .bf-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.bf-note {
    display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px;
    font-size: 13px; color: var(--ink-muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px;
}
.bf-note i { color: var(--accent); margin-top: 3px; }

/* Saat seçici: gün -> zaman dilimi -> saat */
.bf-slots { margin-top: 12px; animation: stepIn .25s var(--ease); }
.bf-days { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; margin-bottom: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.bf-day {
    min-height: 38px; border: 0; background: transparent; color: var(--ink-muted); border-radius: 9px;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s var(--ease);
}
.bf-day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.bf-days.single .bf-day { cursor: default; }
.bf-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-parts { display: grid; gap: 8px; }
.bf-part { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.bf-part.open { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.bf-part-head {
    width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px;
    border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; text-align: left;
}
.bf-part-head > i:first-child { width: 18px; color: var(--accent); }
.bf-part-head span { font-weight: 600; font-size: 14.5px; }
.bf-part-head small { margin-left: auto; color: var(--ink-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bf-part-chev { color: var(--ink-muted); font-size: 11px; transition: transform .2s var(--ease); }
.bf-part.open .bf-part-chev { transform: rotate(180deg); }
.bf-part-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.bf-hours { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 14px 14px; animation: stepIn .2s var(--ease); }
.bf-hour { position: relative; cursor: pointer; }
.bf-hour span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 74px; min-height: 42px; padding: 0 14px;
    border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
    font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; transition: all .15s var(--ease);
}
.bf-hour:hover span { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.bf-hour input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bf-hour input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-empty { margin: 6px 0; text-align: center; color: var(--ink-muted); font-size: 13px; }

/* Alanlar */
.bf-field { margin-bottom: 14px; min-width: 0; }
.bf-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.bf-field input, .bf-field textarea {
    width: 100%; min-height: 52px; padding: 12px 14px;
    font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-2);
    border: 1.5px solid var(--line); border-radius: 12px; outline: none;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
    -webkit-appearance: none; appearance: none;
}
.bf-field textarea { resize: vertical; min-height: 92px; line-height: 1.45; }
.bf-field input::placeholder, .bf-field textarea::placeholder { color: var(--ink-muted); opacity: .6; }
.bf-field input:focus, .bf-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bf-input-wrap { position: relative; }
.bf-input-wrap input { padding-right: 42px; }
.bf-ok { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) scale(.6); color: var(--ok); opacity: 0; transition: all .2s var(--ease); pointer-events: none; }
.bf-field.valid .bf-ok { opacity: 1; transform: translateY(-50%) scale(1); }
.bf-hint { margin: 6px 2px 0; font-size: 12px; color: var(--ink-muted); }
.bf-count { text-align: right; }
.bf-err { margin: 6px 2px 0; font-size: 13px; color: var(--bad); }
.bf-err:empty { display: none; }
.bf-field.invalid input, .bf-field.invalid textarea { border-color: var(--bad); }
.bf-field.invalid input:focus { box-shadow: 0 0 0 4px rgba(255,93,93,.15); }
.shake { animation: shake .35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.bf-link {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none;
    color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.bf-link span { color: var(--ink-muted); font-weight: 400; }
.bf-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
#noteBox { margin-top: 6px; animation: stepIn .2s var(--ease); }
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bf-alert {
    display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px;
    border-radius: 12px; font-size: 14px; line-height: 1.45;
    background: rgba(255,93,93,.1); border: 1px solid rgba(255,93,93,.35); color: #ffc9c9;
}
.bf-alert i { margin-top: 3px; color: var(--bad); }

/* Kontrol listesi */
.bf-summary { margin: 0; padding: 2px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.bf-summary div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bf-summary div:last-child { border-bottom: 0; }
.bf-summary dt { color: var(--ink-muted); flex: none; }
.bf-summary dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; word-break: break-word; min-width: 0; }
.bf-edit {
    flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
    border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; font-size: 12px;
}
.bf-edit:hover { background: var(--surface); color: var(--accent); }
.bf-edit:focus-visible { outline: 2px solid var(--accent); }

/* Alt butonlar */
.bf-nav { display: flex; gap: 10px; margin-top: 20px; }
.bf-btn-ghost {
    flex: 1; min-height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: transparent;
    color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.bf-btn-ghost:hover { background: var(--surface-2); }
.bf-btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-submit {
    flex: 2; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 14px; cursor: pointer; background: var(--accent); color: var(--accent-ink);
    font: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
    box-shadow: 0 10px 28px -12px var(--accent); transition: transform .12s var(--ease), filter .18s var(--ease), opacity .18s;
}
.bf-submit:hover { filter: brightness(1.06); }
.bf-submit:active { transform: scale(.985); }
.bf-submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.bf-submit[disabled], .bf-btn-ghost[disabled] { opacity: .65; cursor: progress; }
.bf-submit .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.bf-privacy { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--ink-muted); }
.bf-privacy i { margin-right: 4px; font-size: 11px; }

/* Başarılı */
.bf-done { text-align: center; padding: 6px 0 2px; outline: none; animation: stepIn .35s var(--ease); }
.bf-done-ic {
    width: 72px; height: 72px; margin: 6px auto 16px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(34,197,94,.14); color: var(--ok); font-size: 28px; animation: pop .45s var(--ease);
}
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.bf-done h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.bf-done > p { margin: 6px 0 18px; color: var(--ink-muted); }
.bf-done .bf-summary { text-align: left; margin-bottom: 14px; }

/* Sosyal: mini yuvarlak ikonlar */
.bf-social { display: flex; justify-content: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.bf-soc {
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
    text-decoration: none; font-size: 17px; transition: all .2s var(--ease);
}
.bf-soc.whatsapp { background: rgba(37,211,102,.13); color: #25d366; }
.bf-soc.whatsapp:hover { background: #25d366; color: #fff; }
.bf-soc.telegram { background: rgba(34,158,217,.14); color: #2aabee; }
.bf-soc.telegram:hover { background: #229ed9; color: #fff; }
.bf-soc:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Mobil */
@media (max-width: 560px) {
    .bf { padding: 14px 12px calc(18px + env(safe-area-inset-bottom)); }
    .bf-card { padding: 20px 16px 18px; border-radius: 20px; }
    .bf-logo { height: 34px; }
    .bf-progress { margin-top: 16px; }
    .bf-q { font-size: 20px; }
    .bf-qsub { margin-bottom: 16px; }
    .bf-opt { min-height: 58px; padding: 11px 12px; gap: 12px; }
    .bf-opt-ic { width: 36px; height: 36px; font-size: 15px; }
    .bf-hour span { min-width: 0; width: 100%; }
    .bf-hours { display: grid; grid-template-columns: repeat(3, 1fr); }
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .bf-opt:hover, .bf-hour:hover span { border-color: var(--accent); }
    .bf-part.open { border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
