/* v2 ek stilleri: ana sayfa orijinal dili korur; form, butonlar ve modal lar sadelestirildi. */
[hidden] { display: none !important; }

/* --------------------------------------------------- Bildirimler */
.alert {
    float: left;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    margin: 18px 0 0;
    border: 1px solid;
    border-radius: 8px;
    font-family: 'HelveticaTrCondensedNormal', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
.alert-success { background: #eaf8ef; border-color: #b6e3c6; color: #16803c; }
.alert-error { background: #fdf0ee; border-color: #f0c4bf; color: #a93326; }

.muted { color: #7b8788; }
.center { text-align: center; }

/* --------------------------------------------------- Başvuru formu düzeni */
form#basvuru .blok,
form#basvuru .blok input[type="text"],
form#basvuru .blok select { box-sizing: border-box; }

/* Sınıf ve tarih alanları yan yana */
form#basvuru .secim-satiri {
    width: 100%;
    float: left;
    display: flex;
    gap: 24px;
    margin-bottom: 34px;
}
form#basvuru .secim-satiri .blok {
    float: none;
    width: calc(50% - 12px);
    height: 58px;
    margin: 0;
}
/* Sınıf seçilmeden önce tek alan tam genişlik */
form#basvuru .secim-satiri.tek-alan .sinifsec { width: 100%; }
/* Select'ler diger input alanlariyla ayni gorunumde; yazi placeholder icinde */
form#basvuru .secim-satiri .blok select {
    width: 100%;
    height: 35px;
    margin: 0;
    padding-bottom: 3px;
    border: none;
    border-bottom: 1px solid #ff6414;
    border-radius: 0;
    background: none;
    color: #014067;
    font-size: 15px;
}
form#basvuru .secim-satiri .blok select.placeholder { color: #8d999f; }
form#basvuru .secim-satiri .blok select option { color: #014067; }
form#basvuru .secim-satiri .blok select:focus { outline: none; }

/* Input satirlari arasinda hem yatay hem dikey bosluk */
form#basvuru > .blok { width: 48%; margin-bottom: 34px; }
form#basvuru > .blok:nth-child(even) { margin-right: 4%; }
form#basvuru > .blok:nth-child(odd) { margin-right: 0; }

/* Tamamlama butonu: tum float'larin altinda, formun tam ortasinda */
form#basvuru .tamamla {
    clear: both;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding-top: 34px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}
form#basvuru .tamamla button.tamambuton {
    width: 267px;
    height: 64px;
    margin: 0;
    float: none;
}
form#basvuru .tamamla button.tamambuton-genis { width: 300px; }

/* --------------------------------------------------- Butonlar */
#page .box .butonlar {
    float: none;
    clear: both;
    width: min(640px, 100%);
    margin: 0 auto 80px;
    padding-top: 75px;
    display: flex;
    gap: 16px;
    box-sizing: border-box;
}
#page .box h2 { margin-top: 32px; }
#page .box h3 { margin-top: 28px; margin-bottom: 40px; }
#page .box .butonlar > a {
    flex: 1;
    display: flex;
    text-decoration: none;
}
#page .box .butonlar .basvurubuton,
#page .box .butonlar .belgebuton {
    width: 100%;
    height: 64px;
    margin: 0;
    float: none;
    flex: 1;
}

.basvurubuton,
.belgebuton,
.tamambuton,
.modal .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    box-sizing: border-box;
    padding: 0 22px;
    height: 64px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-family: 'HelveticaTrCondensedBlack', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: .6px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(1, 64, 103, .18);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.basvurubuton,
.tamambuton { background: linear-gradient(135deg, #8bc45e 0%, #5d9e34 100%); }
.belgebuton { background: linear-gradient(135deg, #f7941d 0%, #e96700 100%); }
.basvurubuton:hover,
.belgebuton:hover,
.tamambuton:hover,
.modal .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 13px 26px rgba(1, 64, 103, .24);
}
.basvurubuton:active,
.belgebuton:active,
.tamambuton:active { transform: translateY(0); }
.basvurubuton:focus-visible,
.belgebuton:focus-visible,
.tamambuton:focus-visible { outline: 3px solid rgba(120, 179, 78, .45); outline-offset: 3px; }

.basvurubuton span,
.belgebuton span,
.tamambuton span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}
.basvurubuton svg,
.belgebuton svg,
.tamambuton svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

/* Belge yazdırma sayfası üstü */
.document-actions {
    width: 772px;
    max-width: calc(100% - 32px);
    margin: 18px auto 0;
    float: none;
    display: flex;
    justify-content: space-between;
    font-family: 'HelveticaTrCondensedNormal', Arial, sans-serif;
}
.btn {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'HelveticaTrCondensedBlack', Arial, sans-serif;
    font-size: 15px;
    letter-spacing: .5px;
}
.btn-primary { background: #78b34e; color: #fff; }
.btn-ghost { background: #fff; color: #014067; border: 1px solid #014067; }

/* --------------------------------------------------- Alt bar: sayfa altına sabit + ortali */
html { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
#header, #page, #footer { flex-shrink: 0; }
#page { flex: 1 0 auto; }
#footer {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 102px;
}
#footer .box {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0 40px;
    padding-bottom: 12px;
    box-sizing: border-box;
}
#footer .box .bilgiler {
    float: none;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

/* --------------------------------------------------- Modern modal altyapisi */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(1, 28, 45, .58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fadeIn .18s ease;
}
.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: min(480px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    box-sizing: border-box;
    background: #fff;
    border-radius: 18px;
    padding: 30px 30px 26px;
    box-shadow: 0 24px 70px rgba(1, 28, 45, .32);
    font-family: 'HelveticaTrCondensedNormal', Arial, sans-serif;
    color: #46545c;
    animation: popIn .22s cubic-bezier(.2, .9, .3, 1.2);
}
body.modal-open { overflow: hidden; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #eef3f6;
    color: #5b6b74;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: #dde8ee; color: #014067; }

.modal-title {
    margin: 0 40px 6px 0;
    color: #014067;
    font-family: 'HelveticaTrCondensedBlack', Arial, sans-serif;
    font-size: 26px;
    line-height: 1.2;
}
.modal-subtitle {
    margin: 0 0 18px;
    color: #7b8788;
    font-size: 15px;
    line-height: 1.5;
}
.modal-body { margin-top: 12px; }
.modal p { line-height: 1.5; margin: 0 0 12px; }

.modal-field { float: left; width: 100%; margin: 10px 0; }
.modal-field label { float: left; width: 100%; color: #014067; font-size: 14px; margin-bottom: 6px; }
.modal-field input {
    float: left;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
    background: #fbfcfd;
    color: #014067;
    font-family: 'HelveticaTrCondensedNormal', Arial, sans-serif;
    font-size: 17px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.modal-field input:focus {
    outline: none;
    border-color: #78b34e;
    box-shadow: 0 0 0 3px rgba(120, 179, 78, .18);
    background: #fff;
}
.modal-actions {
    width: 100%;
    float: left;
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.modal-actions .btn {
    flex: 1;
    height: 48px;
    border-radius: 9px;
    font-size: 14px;
}
.modal-actions .btn-ghost:hover { background: #f2f6f8; }
.modal .alert { float: left; margin: 12px 0 0; }

.dev-code {
    float: left;
    width: 100%;
    box-sizing: border-box;
    background: #fff8e1;
    border: 1px dashed #e0b400;
    border-radius: 9px;
    padding: 10px 14px;
    font-weight: 800;
    letter-spacing: 4px;
    text-align: center;
    color: #7a5800;
    font-size: 22px;
}

/* Fotoğraf modalı */
.modal-photo { width: min(600px, calc(100% - 32px)); text-align: center; }
.modal-photo .modal-title { margin-right: 40px; }
.modal-photo img.foto {
    display: block;
    max-width: 100%;
    max-height: 65vh;
    margin: 8px auto 0;
    border-radius: 10px;
    border: 1px solid #e3ebf0;
}

@media only screen and (max-width: 959px) {
    form#basvuru .secim-satiri { flex-direction: column; gap: 0; }
    form#basvuru .secim-satiri .blok { width: 100%; margin-bottom: 20px; }
    #footer { height: auto; min-height: 102px; }
    #footer .box { width: 100%; padding: 18px 10px 22px; gap: 12px 24px; }
    #page .box .butonlar { flex-direction: column; margin: 0 auto 60px; padding-top: 40px; }
    #page .box .butonlar > a { width: 100%; }
    .basvurubuton, .belgebuton { width: 100%; }
    .modal { padding: 26px 20px 22px; border-radius: 14px; }
}
