@font-face {
    font-family: 'Inter';
    src: url('/assets/font/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
/*Root*/
:root {
    --modal-required-color: #EF4444;
    --font-display: 'Inter', sans-serif;
    --font-condensed: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --mm-z-index: 9999;
    --mm-overlay-bg: rgba(15, 23, 42, .55);
    --mm-overlay-blur: 4px;
    --mm-radius: 16px;
    --mm-shadow: 0 24px 60px -10px rgba(15, 23, 42, .35);
    --mm-bg: #ffffff;
    --mm-border: #e8eaee;
    --mm-text: #1f2430;
    --mm-text-muted: #7a8190;
    --mm-primary: #3556d8;
    --mm-primary-soft: #f0f3ff;
    --mm-primary-hover: #2a45b8;
    --mm-danger: #d9432f;
    --mm-deafult : #e8622a;
    --mm-danger-soft: #fdeee9;
    --mm-success: #1f9d63;
    --mm-warning: #e0a23b;
    --mm-transition: .22s cubic-bezier(.4, 0, .2, 1);
    --mm-max-width: 600px;
}

[data-theme="light"] {
    --error-icon-color: #e8590c;
    --error-title-color: #1a1a1a;
    --error-text-color: #6c757d;
    --error-btn-bg: #1a1a1a;
    --error-btn-bg-hover: #333333;
    --error-btn-text: #ffffff;
}

/* ── Dark mod ── */
[data-theme="dark"] {
    --error-icon-color: #ff7043;
    --error-title-color: #f5f5f5;
    --error-text-color: #adb5bd;
    --error-btn-bg: #f1f1f1;
    --error-btn-bg-hover: #ffffff;
    --error-btn-text: #1a1a1a;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, p, .navbar, .brand, .btn-simple, .alert, a, .td-name, td, button.close {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-body) !important;
}

/*Modern Modal Core css*/

/* ── İÇERİK YÜKLENİYOR (AJAX onOpen) ── */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 12px;
    color: var(--mm-text-muted);
    font-size: 14px;
    &::before {
        content: '';
        width: 28px;
        height: 28px;
        border: 3px solid var(--mm-border);
        border-top-color: var(--mm-deafult);
        border-radius: 50%;
        animation: mm-spin .7s linear infinite;
    }
}

@keyframes mm-spin {
    to { transform: rotate(360deg); }
}

/* ===== MODAL KUTU ===== */
.basvuru-modal,.modern-modal {

    background: #1a1a1a;
    border-radius: 20px;
    width: 100%;
    max-width: var(--special-modal-maxwidth,580px);
    max-height: 90vh;
    animation: modalIn .25s ease;
    overflow: hidden;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== HEADER ===== */
.basvuru-modal-header, .modern-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 3.75rem 0;

    h2 {
        font-size: 20px;
        font-weight: 800;
        color: #fff;
        letter-spacing: .3px;
    }

    p {
        font-size: 13px;
        color: #666;
        margin-top: 4px;
    }
}

.modern-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 1.75rem 0;
}

.basvuru-close {
    background: #2a2a2a;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 11px;
    border-radius: 8px;
    line-height: 1;
    transition: all .2s;
    flex-shrink: 0;

    &:hover {
        background: #333;
        color: #fff;
    }
}

/* ===== BODY ===== */
.basvuru-modal-body,.modern-modal-body {
    margin: 1.5rem 3.75rem;
}

.modern-modal-body {
    margin: .5rem  1.75rem 1.5rem;
    padding: 0 1rem 1rem;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: scroll;

    & .agreement-content,
    & .agreement-content * {
        background-color: transparent !important;
        color: var(--mm-bg, #e0e0e0) !important;
    }

    & .agreement-content p {
       font-size: 1.05em;
    }


    & .agreement-content h1,
    & .agreement-content h2,
    & .agreement-content h3,
    & .agreement-content h4{
        margin-top: 0 !important;
        color: #ffffff !important;
    }

    & .agreement-content strong,
    & .agreement-content b {
        color: #ff8a50 !important;
    }

    & .agreement-content a {
        color: #ff8a50;
    }

    &::-webkit-scrollbar {
        width: 7px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background: var(--mm-deafult);
        border-radius: 4px;
    }
}

/* ===== STEPS ===== */
.basvuru-steps {
    display: flex;
    align-items: center;
    margin-bottom: 1.75rem;
}

.bstep {
    display: flex;
    align-items: center;
}

.bstep-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1.5px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    flex-shrink: 0;
    transition: all .2s;

    &.active {
        background: #e8622a;
        border-color: #e8622a;
        color: #fff;
    }

    &.done {
        background: #1a4a1a;
        border-color: #2a6a2a;
        color: #4caf50;
    }
}

.bstep-label {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    font-weight: 400;

    /* Mobilde collapse/expand animasyonu için temel hal: gizli */
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    margin-left: 0;
    transition: max-width .3s ease, opacity .2s ease, margin-left .3s ease, color .2s;

    &.active {
        max-width: 80px;   /* en uzun label'a göre ayarla (Doğrulama ~70-75px) */
        opacity: 1;
        margin-left: 6px;
        color: #e8622a;
        font-weight: 700;
    }

    &.done {
        color: #4caf50;
        /* max-width burada YOK — done olduğunda da label gizli kalsın */
    }
}

.bstep-line {
    flex: 1;
    height: 1px;
    background: #2a2a2a;
    margin: 0 6px;
}

/* ===== Masaüstünde tüm label'lar görünsün ===== */
@media (min-width: 768px) {
    .bstep-label {
        max-width: 100px;
        opacity: 1;
        margin-left: 6px;
        color: #555;
    }

    .bstep-label.active {
        color: #e8622a;
    }

    .bstep-label.done {
        color: #4caf50;
    }
}

/* ===== SAYFA GEÇİŞLERİ ===== */
.bpage {
    display: none;
    max-height: 420px;
    padding-right: .5rem;
    overflow-y: auto;

    &::-webkit-scrollbar {
        width: 4px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background: #333;
        border-radius: 4px;
    }

    &.active {
        display: block;
        animation: fadeUp .2s ease;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GRID ===== */
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== SELECT ===== */
.fi select {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #2a2a2a;
    border-radius: 12px;
    padding: 13px 16px 13px 44px;
    color: #2a2a2a;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    cursor: pointer;

    &:focus {
        border-color: #e8622a;
        box-shadow: 0 0 0 4px rgba(232, 98, 42, 0.15);
    }
}

/* ===== CAPTCHA ===== */
.captcha-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(232, 98, 42, 0.08);
    border: 1.5px solid rgba(232, 98, 42, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 1.25rem;

    i {
        font-size: 22px;
        color: #e8622a;
        flex-shrink: 0;
    }

    p {
        font-size: 13px;
        color: #aaa;
        line-height: 1.5;
        margin: 0;
    }
}

.captcha-box {
    background: #252525;
    border: 1.5px solid #2e2e2e;
    border-radius: 14px;
    padding: 1.25rem;
}

.captcha-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 4px;

    span {
        font-size: 26px;
        font-weight: 800;
        letter-spacing: 10px;
        color: #e8622a;
        font-family: 'Courier New', monospace;
        user-select: none;
        filter: blur(0.4px);
    }
}

.captcha-refresh {
    background: #2a2a2a;
    border: none;
    color: #888;
    font-size: 15px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    line-height: 1;
    transition: all .2s;
    flex-shrink: 0;

    &:hover {
        color: #e8622a;
        background: #333;
    }
}

.captcha-error {
    display: none;
    font-size: 12px;
    color: #e24b4a;
    margin-top: 8px;

    &.show {
        display: block;
    }
}

/* ===== BAŞARI ===== */
.basvuru-success {
    text-align: center;
    padding: 1.5rem 0;

    .success-icon {
        width: 68px;
        height: 68px;
        background: rgba(42, 106, 42, 0.15);
        border: 1.5px solid #2a6a2a;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.25rem;
        font-size: 28px;
        color: #4caf50;
    }

    h3 {
        font-size: 20px;
        font-weight: 800;
        color: #fff;
        margin-bottom: 10px;
    }

    p {
        font-size: 14px;
        color: #666;
        line-height: 1.7;
    }
}


/* ===== FOOTER ===== */
.basvuru-modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 3.75rem 2.5rem;
}

.btn-basvuru-back {
    background: transparent;
    color: #888;
    border: 1.5px solid #2a2a2a;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: all .2s;

    &:hover {
        border-color: #555;
        color: #ccc;
    }
}

.btn-basvuru-next {
    flex: 1;
    background: #e8622a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background .2s;

    &:hover {
        background: #d4541e;
    }
}

.fg-required {
    color: var(--modal-required-color);
}

.basvuru-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 16px;
}

.error-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ef4444;
}

.btn-basvuru-retry {
    margin-top: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: var(--primary, #4f46e5);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;

    &:hover {
        opacity: 0.85;
    }
}


/*Error State*/
.modal-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-error-state i.fa-triangle-exclamation,
.modal-error-state i.fa-exclamation-triangle {
    color: #e8590c; /* turuncu-kırmızı uyarı tonu */
    font-size: 42px;
    margin-bottom: 18px;
}

.modal-error-state h5 {
    color: #f5f5f5;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
}

.modal-error-state p {
    color: #adb5bd;
    font-size: 14px;
    margin-bottom: 22px;
    max-width: 320px;
}

.modal-error-retry {
    background-color: #f1f1f1;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.modal-error-retry:hover {
    background-color: #ffffff;
}

.modal-error-retry:active {
    transform: scale(0.97);
}

.modal-error-retry i {
    margin-right: 6px;
}

/* ==========================================================
   MOBİL OVERRIDE'LAR
   ========================================================== */


.recourse_agreement {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    gap: 10px;
}

/* PDF Butonu */
.agreement_btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s;
}
.agreement_btn:hover {
    background: rgba(255,255,255,0.1);
}
.agreement_btn_icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(230, 81, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.agreement_btn_icon i {
    font-size: 18px;
    color: #f60;
}
.agreement_btn_text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.agreement_btn_title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.agreement_btn_sub {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}
.agreement_btn > .fa-arrow-up-right-from-square {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* Uyarı */
.agreement_warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #7a5800;
    background: #fff8e1;
    border-left: 3px solid #ffc107;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0;
}
.agreement_warning i {
    color: #f57c00;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/*media queries*/
@media (max-width: 768px) {
    .bpage {
        max-height: 220px;
    }

    .basvuru-modal-body, .modern-modal-body {
        margin: 1.5rem 1.75rem !important;
    }
    .basvuru-modal-header, .modern-modal-header {
        padding:1.5rem 1.5rem 0 !important;
    }
}