/* Oyuncu başvuru formu: site.css değişkenlerini kullanır. Mobil öncelikli; dokunma hedefleri en az 48px. */

.bf-page-head { padding: clamp(20px, 4vw, 48px) 0 clamp(16px, 3vw, 32px); }
.bf-page-head h1 { font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem); margin-bottom: .25em; }
.bf-page-head .lead { margin: 0; font-size: 1.0625rem; }
.bf-layout { display: grid; gap: 32px; padding-bottom: 48px; }
@media (min-width: 1024px) { .bf-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; } }

.bf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bf-form { display: grid; gap: 12px; }
.bf-card { min-width: 0; margin: 0; padding: 18px 14px 20px; border: 1px solid var(--mist); border-radius: var(--radius-l); background: var(--white); }
@media (min-width: 600px) { .bf-card { padding: 28px; } }
.bf-card > * + * { margin-top: 14px; }
.bf-project { margin-bottom: 16px; }
.bf-project > :last-child { margin-bottom: 0; }

.bf-step { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin: 0 0 2px; padding: 0; font: 700 1.125rem/1.25 var(--font-display); letter-spacing: -.01em; color: var(--night); }
.bf-step + * { clear: left; }
.bf-step > span:first-child { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--night); color: var(--white); font: 700 .8125rem/1 var(--font-text); }
.bf-card.is-done .bf-step > span:first-child { background: var(--ok); }
.bf-optional { font: 400 .875rem/1.3 var(--font-text); color: var(--slate); }

.bf-grid { display: grid; gap: 14px; }
.bf-grid-tight { gap: 10px; }
@media (min-width: 600px) { .bf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) { .bf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bf-grid-tight.bf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.bf-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.bf-field > label, .bf-label { display: block; margin: 0 0 5px; padding: 0; font-weight: 600; font-size: .875rem; color: var(--night); }

/* 16px yazı: iOS odaklanınca yakınlaştırmaz */
.bf-input {
    display: block; width: 100%; min-height: 46px; padding: 10px 12px;
    border: 1px solid #c3cbe0; border-radius: 8px; background: var(--white);
    color: var(--night); font: 400 1rem/1.4 var(--font-text); transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
textarea.bf-input { min-height: 104px; resize: vertical; }
.bf-input::placeholder { color: #8a94ae; }
.bf-input:hover { border-color: #9aa5c2; }
.bf-input:focus { outline: 0; border-color: var(--screen); box-shadow: 0 0 0 3px rgba(35, 64, 245, .14); }
.bf-input[aria-invalid="true"] { border-color: var(--danger); }
.bf-input:disabled { background: var(--paper); color: var(--slate); }
.bf-select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2359627f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.bf-birth { display: grid; grid-template-columns: 1fr 1.5fr 1.25fr; gap: 8px; }
.bf-unit { position: relative; }
.bf-unit .bf-input { padding-right: 48px; }
.bf-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }

.bf-hint { margin: 6px 0 0; font-size: .875rem; color: var(--slate); }
.bf-hint:empty { display: none; }
.bf-hint.is-error, .bf-error { margin: 6px 0 0; font-size: .875rem; font-weight: 600; color: var(--danger); }

/* Büyük seçim kartları (başvuru türü) */
.bf-choice { display: flex; align-items: center; gap: 10px; min-height: 54px; margin: 0; padding: 9px 12px; border: 1px solid #c3cbe0; border-radius: 10px; background: var(--white); cursor: pointer; transition: border-color .15s, background-color .15s; }
.bf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.bf-choice strong { display: block; font-size: 1rem; line-height: 1.25; }
.bf-choice small { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.3; color: var(--slate); }
.bf-choice-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--paper); color: var(--screen); }
.bf-choice-icon svg { width: 19px; height: 19px; }
.bf-choice:has(input:checked) { border-color: var(--screen); background: #eef1ff; box-shadow: inset 0 0 0 1px var(--screen); }
.bf-choice:has(input:checked) .bf-choice-icon { background: var(--screen); color: var(--white); }
.bf-choice:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }
@media (max-width: 420px) { .bf-choice small { display: none; } }

/* Çipler: göz, ten, saç, cinsiyet tek dokunuşla */
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chips-2 { display: grid; grid-template-columns: 1fr 1fr; }
.bf-chip { position: relative; margin: 0; cursor: pointer; }
.bf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bf-chip span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid #c3cbe0; border-radius: 999px; background: var(--white); font-weight: 500; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s; }
.bf-chip:hover span { border-color: #9aa5c2; }
.bf-chip input:checked + span { border-color: var(--night); background: var(--night); color: var(--white); }
.bf-chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
[aria-invalid="true"] + span { border-color: var(--danger); }

.bf-check { display: flex; gap: 12px; margin: 0; padding: 4px 0; cursor: pointer; line-height: 1.45; }
.bf-check input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--screen); }

/* E-posta önerisi */
.bf-suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: #fff7e6; font-size: .9375rem; }
.bf-suggestion button { min-height: 36px; padding: 0; border: 0; background: none; font: 600 .9375rem var(--font-text); text-decoration: underline; color: var(--screen); cursor: pointer; }
.bf-suggestion button + button { color: var(--slate); font-weight: 400; }

/* Fotoğraflar */
.bf-lead { color: var(--slate); }
.bf-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 108px; margin: 0; padding: 16px; border: 1.5px dashed #b8c2db; border-radius: 14px; background: var(--paper); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.bf-dropzone:hover, .bf-dropzone:focus-within, .bf-dropzone.is-over { border-color: var(--screen); background: #eef1ff; }
.bf-dropzone svg { width: 26px; height: 26px; color: var(--screen); }
.bf-dropzone strong { font-size: 1rem; }
.bf-dropzone small { color: var(--slate); }
.bf-dropzone[hidden] { display: none; }
.bf-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bf-previews:empty { display: none; }
@media (min-width: 600px) { .bf-previews { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; } }
.bf-previews li { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--mist); }
.bf-previews img { width: 100%; height: 100%; object-fit: cover; }
.bf-previews .bf-preview-name { display: grid; place-items: center; height: 100%; padding: 6px; font-size: .75rem; text-align: center; word-break: break-all; }
.bf-previews .bf-preview-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(18, 26, 58, .8); color: var(--white); font-size: .75rem; }
.bf-previews .is-processing::after { content: 'Hazırlanıyor…'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(245, 247, 252, .8); font-size: .75rem; font-weight: 600; }
.bf-previews button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(18, 26, 58, .85); color: var(--white); font-size: 1.375rem; line-height: 1; cursor: pointer; }
.bf-previews button:hover { background: var(--danger); }

/* KVKK */
.bf-kvkk { border: 1px solid var(--mist); border-radius: 12px; background: var(--paper); }
.bf-kvkk summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 14px; font-weight: 600; cursor: pointer; list-style: none; }
.bf-kvkk summary::-webkit-details-marker { display: none; }
.bf-kvkk[open] summary svg { transform: rotate(180deg); }
.bf-kvkk-text { max-height: 18rem; overflow-y: auto; padding: 0 14px 14px; font-size: .875rem; line-height: 1.6; }
.bf-kvkk-text h1, .bf-kvkk-text h2, .bf-kvkk-text h3, .bf-kvkk-text h4 { font: 700 1rem/1.3 var(--font-text); margin: 1em 0 .4em; }

/* Hata özeti ve taslak bildirimi */
.bf-summary { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fbe7e9; color: var(--danger); font-weight: 600; scroll-margin-top: calc(var(--header-h) + 16px); }
.bf-draft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; border-radius: 12px; background: #e9f6fd; font-size: .9375rem; }
.bf-draft button { min-height: 36px; padding: 0; border: 0; background: none; font: 600 .9375rem var(--font-text); color: var(--screen); text-decoration: underline; cursor: pointer; }

/* Sabit alt çubuk: ilerleme + gönder */
.bf-dock { position: sticky; bottom: 0; z-index: 30; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--mist); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (min-width: 600px) { .bf-dock { margin: 0; border: 1px solid var(--mist); border-radius: var(--radius-l); padding: 14px 20px; bottom: 12px; box-shadow: 0 10px 30px rgba(18, 26, 58, .08); } }
.bf-dock-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.bf-dock .bf-submit { min-height: 42px; padding: 0 1.1em; font-size: .9375rem; }
.bf-dock-text { flex: 1; margin: 0; font-size: .8125rem; line-height: 1.3; color: var(--slate); }
.bf-dock .bf-submit { flex-shrink: 0; }
@media (max-width: 599px) {
    /* Yazarken klavye ekranı kaplar; alt çubuk gizlenir. */
    body.bf-typing .bf-dock { display: none; }
}
.bf-submit:disabled { opacity: .7; cursor: progress; }
.bf-progress { height: 4px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bf-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--screen); transition: width .3s ease; }
.bf-progress-lg { height: 10px; margin: 16px 0 10px; }

/* Gönderim katmanı */
.bf-uploading { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(18, 26, 58, .55); }
.bf-uploading-box { width: min(420px, 100%); padding: 28px 24px; border-radius: var(--radius-l); background: var(--white); text-align: center; }
.bf-uploading-box strong { font: 700 1.25rem/1.3 var(--font-display); }
.bf-uploading-box p { margin: 0; color: var(--slate); }

/* Yan bilgi */
.bf-aside { padding: 24px; border-radius: var(--radius-l); }
@media (min-width: 1024px) { .bf-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.bf-aside h2 { font-size: 1.25rem; }
.bf-howto { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: bf; }
.bf-howto li { position: relative; padding-left: 40px; counter-increment: bf; }
.bf-howto li + li { margin-top: 14px; }
.bf-howto li::before { content: counter(bf); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--screen); color: var(--white); font-size: .875rem; font-weight: 700; }
.bf-howto strong { color: var(--white); }
.bf-aside-contact { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9375rem; }

.bf-unavailable { border-left: 4px solid var(--danger); }

@media (prefers-reduced-motion: reduce) {
    .bf-progress span { transition: none; }
}

/* "(isteğe bağlı)" başlığın altında, numaranın hizasında */
.bf-step { flex-wrap: wrap; }
.bf-step > .bf-optional { flex-basis: 100%; margin-top: -4px; padding-left: 36px; }

/* Hatalı alanlar: kırmızı çerçeve, altta "Zorunlu" ya da açıklama */
.bf-field.has-error > label, .bf-field.has-error > .bf-label, .bf-field.has-error > legend { color: var(--danger); }
.bf-field.has-error .bf-input, .bf-field.has-error .bf-chip span { border-color: var(--danger); background-color: #fff8f8; }
[data-field="foto"].has-error .bf-dropzone { border-color: var(--danger); background: #fff8f8; }
.bf-check.has-error span { color: var(--danger); }
.bf-check.has-error input { outline: 2px solid var(--danger); outline-offset: 2px; }
.bf-grid.has-error .bf-choice { border-color: var(--danger); }
.bf-error.is-required, .bf-hint.is-required { font-size: .8125rem; }

/* Alt çubuk: tamamlama çizgisinin altında kırmızı küçük uyarı; dokununca ilk hatalı alana gider */
.bf-dock-error { display: block; width: 100%; margin: 6px 0 0; padding: 0; border: 0; background: none; color: var(--danger); font: 600 .8125rem/1.3 var(--font-text); text-align: left; cursor: pointer; }
.bf-dock-error[hidden] { display: none; }
.bf-dock-error::after { content: ' · göster'; font-weight: 500; text-decoration: underline; }
