/* AP & SAT Başvuru Formu (application/views/apsinavbasvuru.php) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior:smooth; } }
.ap-bg {
    background:#FFD800;
    background-image:url('../images/kayit/eralogokayitformaarkaplan.webp');
    background-repeat:no-repeat;
    background-position:right bottom;
    background-size:min(60vw, 720px) auto;
    background-attachment:fixed;
    padding:40px 0; min-height:100vh;
    overflow-x:clip;
}
.ap-container { max-width:980px; }
.ap-hef {
    min-height:auto; margin:0; align-items:stretch;
    border-radius:16px; overflow:clip;
}
.ap-hef > [class*="col-"] { padding:0; }

.ap-left {
    display:flex; flex-direction:column; align-items:center;
    width:100%; padding:30px 20px; position:sticky; top:16px;
    background:#FFD800; gap:20px;
    border-radius:16px 0 0 16px;
}
.ap-left__title {
    text-align:center; color:#112031; max-width:560px;
}
.ap-left__title h1 {
    font-size:34px; font-weight:800; margin:0 0 4px; line-height:1.1; letter-spacing:-.01em;
}
.ap-left__title h1 .thin { font-weight:300; display:block; opacity:.85; }
.ap-left__title p { font-size:14px; margin:8px 0 0; color:#112031; opacity:.8; }
.ap-left__title .ap-eyebrow {
    background:rgba(17,32,49,.08); border:1px solid rgba(17,32,49,.15); color:#112031;
    margin-bottom:10px;
}
.ap-banner-wrap {
    width:100%; display:flex; align-items:center; justify-content:center;
}
/* Afiş (1080x1350): ekran yüksekliğine sığacak kadar büyür */
.ap-banner-wrap img {
    width:min(100%, 440px, calc((100vh - 280px) * .8)); height:auto; display:block;
    border-radius:14px;
}

.ap-form-col {
    background:transparent;
    padding:36px 36px 44px;
    border-radius:0 16px 16px 0;
}
.ap-back {
    display:inline-flex; align-items:center; gap:8px;
    color:#112031; text-decoration:none; font-weight:600; margin-bottom:18px;
    font-size:14px;
}
.ap-back:hover { color:#000; }

.ap-eyebrow {
    display:inline-block; background:rgba(255,255,255,.65); color:#112031;
    font-size:11px; letter-spacing:1.4px; font-weight:700;
    text-transform:uppercase; padding:6px 12px; border-radius:999px;
    margin-bottom:12px;
}
.ap-h1 { color:#fff; font-size:30px; font-weight:800; margin:0 0 6px; line-height:1.1; }
.ap-h1 .thin { font-weight:300; display:block; opacity:.9; }
.ap-lead { color:#112031; font-size:14px; line-height:1.5; margin:0 0 6px; }

/* Floating input */
.ap-field { position:relative; margin-bottom:12px; }
.ap-field--ssd { margin:8px 0 0; }
.ap-field input {
    width:100%; padding:18px 14px 8px; font-size:15px; font-family:inherit;
    border:none; border-radius:10px; background:#fff; color:#112031;
    transition:box-shadow .18s;
}
.ap-field input:focus { outline:none; box-shadow:0 0 0 3px rgba(17,32,49,.3); }
.ap-field label {
    position:absolute; left:14px; top:24px; transform:translateY(-50%);
    pointer-events:none; color:#8a8a94; font-size:14px; font-weight:500;
    transition:all .15s; background:transparent;
}
.ap-field input:focus ~ label,
.ap-field input:not(:placeholder-shown) ~ label {
    top:9px; transform:translateY(0); font-size:10.5px;
    font-weight:700; color:#112031; letter-spacing:.5px; text-transform:uppercase;
}
.ap-field select {
    width:100%; padding:18px 36px 8px 14px; font-size:15px; font-family:inherit;
    border:none; border-radius:10px; background:#fff; color:#112031;
    appearance:none; -webkit-appearance:none; -moz-appearance:none;
    background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23112031' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 14px center;
    cursor:pointer;
    transition:box-shadow .18s;
}
.ap-field select:focus { outline:none; box-shadow:0 0 0 3px rgba(17,32,49,.3); }
.ap-field textarea {
    width:100%; padding:12px 14px; font-size:14px; font-family:inherit; resize:vertical;
    border:none; border-radius:10px; background:#fff; color:#112031; display:block;
}
.ap-field textarea:focus { outline:none; box-shadow:0 0 0 3px rgba(17,32,49,.3); }
.ap-field--select label { background:transparent; }
.ap-ipucu { display:block; color:#112031; font-size:12px; font-weight:600; margin:6px 2px 0; }
.ap-ipucu--ust { margin:0 2px 6px; }

/* Alan altı hata mesajları */
.ap-hata { display:block; color:#a8071a; font-size:12px; font-weight:700; margin:5px 2px 0; }
.ap-hatali > input, .ap-hatali > select { box-shadow:0 0 0 2px #c0392b; }
.ap-hatali .ap-ders { border-color:#c0392b; }
.ap-field--select select:focus ~ label,
.ap-field--select select:valid ~ label {
    top:9px; transform:translateY(0); font-size:10.5px;
    font-weight:700; color:#112031; letter-spacing:.5px; text-transform:uppercase;
}

/* Bölüm başlığı */
.ap-section-title {
    color:#112031; font-size:13px; font-weight:800; text-transform:uppercase;
    letter-spacing:1px; margin:12px 0 12px; display:flex; align-items:center; gap:8px;
}
/* Gizli bölüm sayılmaz; numara seçime göre kendiliğinden düzelir. */
.ap-section-title::before {
    counter-increment:ap-bolum; content:counter(ap-bolum);
    display:inline-flex; align-items:center; justify-content:center; flex:0 0 22px; height:22px;
    border-radius:50%; background:#112031; color:#FFD800; font-size:12px; letter-spacing:0;
}
#apBasvuruForm { counter-reset:ap-bolum; scroll-margin-top:12px; }
.ap-kart { margin-top:14px; padding:4px 16px 16px; border-radius:14px; background:rgba(255,255,255,.42); }
.ap-kart--acilir { animation:apAcil .25s ease-out; }
@keyframes apAcil { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .ap-kart--acilir { animation:none; } }
.ap-section-title .ap-counter {
    margin-left:auto; background:#112031; color:#FFD800;
    padding:2px 10px; border-radius:999px; font-size:11px; font-weight:700;
    text-transform:none; letter-spacing:0;
}

/* Dersler */
.ap-ders-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ap-ders {
    position:relative; display:flex; align-items:center; gap:10px;
    padding:11px 12px; border:1.5px solid rgba(17,32,49,.15); border-radius:9px;
    cursor:pointer; margin:0; background:#fffce0;
    font-size:13.5px; font-weight:600; color:#112031;
    transition:all .15s; user-select:none;
}
.ap-ders:hover { background:#fff; border-color:#112031; }
.ap-ders input { position:absolute; opacity:0; pointer-events:none; }
.ap-ders__box {
    width:18px; height:18px; border:2px solid #112031; border-radius:4px;
    flex:0 0 18px; position:relative; background:#fff;
}
.ap-ders input:checked ~ .ap-ders__box { background:#112031; }
.ap-ders input:checked ~ .ap-ders__box::after {
    content:""; position:absolute; left:4px; top:0;
    width:6px; height:11px; border:solid #FFD800;
    border-width:0 2.5px 2.5px 0; transform:rotate(45deg);
}
.ap-ders:has(input:checked) { background:#fff; border-color:#112031; box-shadow:0 2px 8px rgba(17,32,49,.12); }
.ap-ders input[type="radio"] ~ .ap-ders__box { border-radius:50%; }
.ap-ders:has(input:focus-visible), .ap-check:has(input:focus-visible) { outline:3px solid #112031; outline-offset:2px; }
.ap-ders__metin { display:flex; flex-direction:column; line-height:1.25; }
.ap-ders__metin b { font-size:14.5px; font-weight:800; }
.ap-ders__metin small { font-size:11.5px; font-weight:500; opacity:.8; }
.ap-ders--kapali { opacity:.5; cursor:not-allowed; }
.ap-ders--genis { grid-column:1 / -1; }
.ap-opsiyonel { font-weight:500; opacity:.7; }

/* Tek seçimlik sorular ve seçime göre açılan bölümler */
.ap-secim-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.ap-secim-grid--iki { grid-template-columns:repeat(2, 1fr); }
.ap-soru { margin-top:12px; }
.ap-soru__baslik { color:#112031; font-size:13.5px; font-weight:700; margin:0 0 6px; }
.ap-not {
    margin:0 0 12px; padding:10px 12px; border-left:4px solid #112031; border-radius:8px;
    background:#fff; color:#112031; font-size:13px; line-height:1.5;
}
.ap-not a { color:#112031; font-weight:700; text-decoration:underline; }

/* Captcha + KVKK */
.ap-captcha-satir { display:flex; align-items:flex-start; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.ap-captcha { display:flex; align-items:center; gap:6px; }
.ap-captcha img { height:48px; width:auto; border-radius:8px; display:block; }
.ap-captcha-yenile {
    display:inline-flex; align-items:center; justify-content:center; width:44px; height:48px;
    border:none; border-radius:10px; background:#112031; color:#FFD800; cursor:pointer;
}
.ap-captcha-satir .ap-field { flex:1 1 150px; margin:0; }

.ap-check {
    display:flex; align-items:flex-start; gap:8px; color:#112031;
    font-size:13px; margin:12px 0 4px; line-height:1.45;
}
.ap-check input { margin-top:2px; width:18px; height:18px; flex:0 0 18px; accent-color:#112031; }
.ap-check a { color:#112031; text-decoration:underline; font-weight:700; }

.ap-submit {
    background:#112031; color:#FFD800; border:none;
    padding:13px 32px; font-size:15px; font-weight:800;
    border-radius:11px; cursor:pointer; margin-top:12px; width:100%; justify-content:center;
    transition:all .18s; display:inline-flex; align-items:center; gap:10px;
}
.ap-submit:hover { background:#000; transform:translateY(-1px); }
.ap-submit:disabled { opacity:.6; cursor:not-allowed; }
.ap-submit-row { display:flex; }
.ap-forma-git { display:none; }

@media (max-width:820px) {
    .ap-bg { padding:0; }
    .ap-container { padding:0; max-width:100%; }
    .ap-hef { margin:0; }
    .ap-left { border-radius:0; }
    .ap-left {
        min-height:auto; padding:20px 16px 16px; gap:12px; position:static;
    }
    .ap-banner-wrap { flex:0 0 auto; }
    .ap-banner-wrap img { width:min(100%, 280px); }
    .ap-forma-git {
        display:inline-flex; padding:12px 26px; border-radius:11px;
        background:#112031; color:#FFD800; font-size:15px; font-weight:800; text-decoration:none;
    }
    .ap-secim-grid { grid-template-columns:1fr; }
    .ap-secim-grid--iki { grid-template-columns:1fr 1fr; }
    .ap-kart { padding:2px 12px 14px; }
    .ap-left__title h1 { font-size:22px; }
    .ap-left__title p { font-size:13px; }

    .ap-form-col {
        padding:12px 12px 28px !important; min-height:auto;
        border-radius:0; overflow:hidden; max-width:100%;
    }
    .ap-form-col form { max-width:100%; }
    .ap-form-col .row { margin-left:-5px; margin-right:-5px; }
    .ap-form-col .row > [class*="col-"] { padding-left:5px; padding-right:5px; }

    .ap-field input, .ap-field select { font-size:14.5px; padding:17px 12px 7px; }
    .ap-field label { font-size:13.5px; left:12px; }
    .ap-field input:focus ~ label,
    .ap-field input:not(:placeholder-shown) ~ label,
    .ap-field--select select:focus ~ label,
    .ap-field--select select:valid ~ label { left:12px; }

    .ap-back { margin-bottom:10px; }
    .ap-h1 { font-size:24px; }
    .ap-section-title { margin-top:14px; font-size:12.5px; }
    .ap-ders-grid { grid-template-columns:1fr; gap:6px; }
    .ap-ders { padding:10px 11px; font-size:13px; }

    .ap-captcha img { height:44px; }
    .ap-check { font-size:12.5px; }

}
@media (max-width:400px) {
    .ap-left__title h1 { font-size:20px; }
}
