@font-face {
    font-family: 'Zurich Sans';
    src: url('../Fonts/zurich_sans/ZurichSans-Regular.woff2') format('woff2'), url('../Fonts/zurich_sans/ZurichSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Zurich Sans';
    src: url('../Fonts/zurich_sans/ZurichSans-Medium.woff2') format('woff2'), url('../Fonts/zurich_sans/ZurichSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Zurich Sans';
    src: url('../Fonts/zurich_sans/ZurichSans-SemiBold.woff2') format('woff2'), url('../Fonts/zurich_sans/ZurichSans-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

/* Trafik teklif sayfasi - yeni tasarim (body.trafik ile kapsamlidir) */
html, body.trafik {
    background: #f4f5f5;
}

body.trafik {
    height: auto;
    min-height: 100%;
}

body.trafik form {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.trafik .page {
    flex: 1 0 auto;
}

body.trafik {
    --navy: #23366f;
    --blue: #2167e8;
    --line: #dbe2ec;
    font-family: 'Zurich Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: var(--navy);
    -webkit-font-smoothing: antialiased;
}

    body.trafik input, body.trafik select, body.trafik textarea {
        font-family: inherit;
        font-size: inherit;
    }

    /* Header */
    body.trafik .header {
        position: static;
        display: block;
        height: 100px;
        background: var(--blue);
    }

        body.trafik .header .center {
            position: relative;
            display: block;
            width: min(1000px, 100%);
            max-width: none;
            height: 100%;
            margin: 0 auto;
        }

    body.trafik .logo {
        top: 6px;
        left: 6px;
    }

    /* Sayfa iskeleti */
    body.trafik .page {
        position: static;
        top: auto;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: calc(100vh - 100px);
        background: #f4f5f5;
    }

    body.trafik .content {
        float: none;
        display: block;
        flex: 1;
        width: min(1000px, 100%);
        max-width: none;
        min-height: 0;
        margin: 0 auto;
        padding-bottom: 32px;
        background: #fff;
    }

    body.trafik .page .page-header {
        box-sizing: border-box;
        height: auto;
        padding: 16px 20px 15px;
        font-size: 26px;
        font-weight: 400;
        line-height: 1.3;
        color: var(--navy);
        border-bottom: 1px solid var(--line);
    }

    body.trafik .panel {
        border-bottom: 1px solid var(--line);
        padding: 0 0 24px;
        overflow: visible;
    }

        body.trafik .panel .panel-header {
            display: block;
            box-sizing: border-box;
            width: 100%;
            height: auto;
            margin: 0 0 18px;
            padding: 14px 20px;
            font-size: 22px;
            font-weight: 400;
            line-height: 1.3;
            color: var(--navy);
            border-bottom: 1px solid var(--line);
        }

    /* Form satirlari */
    body.trafik .control-row {
        display: grid;
        grid-template-columns: 200px 400px;
        align-items: center;
        width: min(760px, 100% - 40px);
        margin: 0 auto 12px;
    }

        body.trafik .control-row .label {
            float: none;
            display: block;
            width: auto;
            max-width: none;
            height: auto;
            margin: 0;
            padding-right: 16px;
            font-size: 16px;
            line-height: 1.35;
            color: var(--navy);
        }

        body.trafik .control-row .label-empty {
            float: none;
            display: block;
            width: auto;
            max-width: none;
            height: auto;
            margin: 0;
        }

        body.trafik .control-row input[type=text],
        body.trafik .control-row input[type=tel],
        body.trafik .control-row input[type=email],
        body.trafik .control-row input[type=password],
        body.trafik .control-row input[type=number] {
            float: none;
            display: block;
            width: 100%;
            max-width: none;
            height: 40px;
            line-height: normal;
            padding: 0 14px;
            text-indent: 0;
            color: var(--navy);
            background: #fff;
            border: 1px solid #bbc6d8;
            border-radius: 8px;
            box-shadow: none;
            outline: none;
        }

            body.trafik .control-row input[type=text]:focus,
            body.trafik .control-row input[type=tel]:focus,
            body.trafik .control-row input[type=email]:focus,
            body.trafik .control-row input[type=password]:focus,
            body.trafik .control-row input[type=number]:focus {
                border-color: var(--blue);
                box-shadow: 0 0 0 3px rgba(33, 103, 232, .12);
            }

        body.trafik .control-row input::placeholder {
            color: #8894ab;
            opacity: 1;
        }

    /* Dogum tarihi */
    body.trafik #dtDogumTarihi {
        display: flex;
        gap: 8px;
        min-width: 0;
    }

    body.trafik .control-row select,
    body.trafik .control-row select.day,
    body.trafik .control-row select.month,
    body.trafik .control-row select.year {
        float: none;
        flex: 1;
        width: 0;
        min-width: 0;
        max-width: none;
        height: 40px;
        padding: 0 28px 0 12px;
        text-indent: 0;
        line-height: normal;
        color: var(--navy);
        background-color: #fff;
        background-position: calc(100% - 10px) center;
        border: 1px solid #bbc6d8;
        border-radius: 8px;
    }

        body.trafik .control-row select:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(33, 103, 232, .12);
        }

    /* Sayfa yuklenene kadar formu gizle */
    body.trafik.yukleniyor #formSayfasi {
        visibility: hidden;
    }

    /* Teklif Olustur butonu */
    body.trafik #formSayfasi > .control-row {
        margin-top: 24px;
    }

    /* Tek basina duran dropdown (TrafikTeklif) */
    body.trafik .control-row > select {
        flex: none;
        width: 100%;
    }

    body.trafik .control-row > div:has(> select) {
        display: flex;
        gap: 8px;
        min-width: 0;
    }

    /* Guvenlik resmi */
    body.trafik #captcha {
        display: block;
    }

        body.trafik #captcha > div {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            width: 100%;
            max-width: 600px;
        }

        body.trafik #captcha .label {
            flex: 0 0 200px;
        }

        body.trafik #captcha .captcha-image {
            float: none;
            flex: none;
            max-width: 130px;
            height: 40px;
            margin-right: 8px;
            padding: 0;
            border: 0;
            background: transparent;
        }

        body.trafik #captcha a.captcha-button {
            float: none;
            flex: none;
            width: 50px;
            height: 40px;
            margin: 0 8px 0 0;
            background-color: var(--blue);
            border-radius: 8px;
        }

            body.trafik #captcha a.captcha-button:hover {
                background-color: #1555c8;
            }

        body.trafik #captcha #txtCaptcha {
            flex: 1;
            width: 0;
            min-width: 100px;
        }

    /* Onay kutulari: yalnizca gorunum, davranis degismez */
    body.trafik .check-row {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        width: min(760px, 100% - 40px);
        margin: 0 auto 16px;
        font-size: 14px;
        line-height: 1.55;
    }

        body.trafik .check-row > span {
            flex: none;
            display: block;
        }

        body.trafik .check-row input[type=checkbox] {
            display: block;
            width: 18px;
            height: 18px;
            margin: 2px 0 0;
            accent-color: var(--blue);
            -webkit-appearance: checkbox;
            -moz-appearance: checkbox;
            appearance: auto;
            pointer-events: auto;
            cursor: pointer;
        }

        body.trafik .check-row label {
            display: block;
            height: auto;
            margin: 0;
            line-height: 1.55;
            white-space: normal;
            overflow: visible;
            font-size: 14px;
            cursor: pointer;
        }

            body.trafik .check-row label::before,
            body.trafik .check-row input[type=checkbox]:checked + label::before {
                content: none;
                display: none;
            }

        body.trafik .check-row a {
            color: var(--blue);
            text-decoration: underline;
        }

    /* Butonlar */
    body.trafik .control-row input[type=submit],
    body.trafik .control-row input[type=button] {
        width: auto;
        min-width: 225px;
        max-width: none;
        height: 40px;
        margin: 0;
        padding: 9px 24px;
        font-weight: 600;
        line-height: 1.25;
        color: #fff;
        background: var(--blue);
        border: 0;
        border-radius: 999px;
        cursor: pointer;
        justify-self: start;
    }

        body.trafik .control-row input[type=submit]:hover:not(:disabled),
        body.trafik .control-row input[type=button]:hover:not(:disabled) {
            background: #1555c8;
        }

        body.trafik .control-row input[type=submit]:disabled,
        body.trafik .control-row input[type=button]:disabled {
            cursor: default;
            background: #89909c;
        }

    body.trafik #btnSendSms,
    body.trafik #btnNext {
        margin-top: 8px;
    }

    /* Dogrulama / hata mesajlari */
    body.trafik .errorClass {
        position: static;
        display: block;
        grid-column: 2;
        flex: 0 0 100%;
        width: auto;
        height: auto;
        margin: 4px 0 0;
        padding: 0;
        left: auto;
        line-height: 1.3;
        font-size: 13px;
        color: #d33c49;
        background: transparent;
    }

    body.trafik #captcha .errorClass {
        margin-left: 200px;
    }

    body.trafik .content .login-error-message {
        width: min(760px, 100% - 40px);
        margin: 8px auto 0;
        color: #d33c49;
        font-size: 14px;
    }

    /* Teklif sonuc ekrani (TrafikTeklif.aspx) */
    body.trafik .content .teklif-sonuc-text {
        width: min(760px, 100% - 40px);
        margin: 16px auto;
        font-size: 16px;
        line-height: 1.5;
        color: var(--navy);
    }

    body.trafik .content .teklif-sonuc-no {
        height: auto;
        margin: 20px 0;
        padding: 14px 20px;
        font-size: 24px;
        line-height: 1.3;
        text-align: center;
        color: #fff;
        background: var(--blue);
        border: 0;
    }

    body.trafik #teklifDetay .control-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: min(760px, 100% - 40px);
        margin: 24px auto 0;
        gap: 12px;
    }

        body.trafik #teklifDetay .control-row input[type=button] {
            justify-self: auto;
            margin: 0;
        }

    /* Teminat ve odeme bilgileri (TeklifPage.aspx) */
    body.trafik #primDetay .control-row,
    body.trafik #primDetay ~ #teklifDetay .control-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px;
        width: calc(100% - 40px);
        margin: 24px 20px 0;
    }

    body.trafik #primDetay .control-row input[type=button],
    body.trafik #primDetay .control-row input[type=submit],
    body.trafik #primDetay ~ #teklifDetay .control-row input[type=button] {
        min-width: 225px;
    }

    body.trafik .teminatlar {
        display: block;
        width: calc(100% - 40px);
        margin: 0 20px 8px;
        background: transparent;
    }

        body.trafik .teminatlar .teminat-ad-header,
        body.trafik .teminatlar .teminat-ad {
            float: none;
            display: block;
            box-sizing: border-box;
            width: 100%;
            height: auto;
            min-height: 36px;
            padding: 6px 14px;
            line-height: 24px;
            border-bottom: 1px solid var(--line);
        }

        body.trafik .teminatlar .teminat-ad-header {
            font-size: 16px;
            font-weight: 600;
            color: var(--navy);
        }

        body.trafik .teminatlar .teminat-ad {
            color: #6b7690;
        }

        body.trafik .teminatlar .teminat-bedel-header,
        body.trafik .teminatlar .teminat-bedel {
            display: none;
        }

    body.trafik .content table {
        box-sizing: border-box;
        width: calc(100% - 40px);
        margin: 0 20px 8px;
    }

        body.trafik .content table th,
        body.trafik .content table td {
            height: auto;
            padding: 8px 14px;
            text-align: left;
            line-height: 24px;
            color: #6b7690;
            border-bottom: 1px solid var(--line);
        }

        body.trafik .content table th {
            font-size: 16px;
            font-weight: 600;
            color: var(--navy);
            background: transparent;
        }

        body.trafik .content table tr:hover td {
            background: transparent;
        }

        body.trafik .content table td input[type=radio] + label {
            width: auto;
            max-width: none;
            height: 24px;
            line-height: 24px;
        }

    /* 3D odeme overlay */
    body.trafik .three-d-overlay {
        position: fixed;
        inset: 0;
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
        background: rgba(35, 54, 111, .55);
    }

    body.trafik .three-d-overlay-box {
        box-sizing: border-box;
        width: min(460px, 100%);
        padding: 32px 28px;
        text-align: center;
        color: var(--navy);
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    }

    body.trafik .three-d-spinner {
        width: 44px;
        height: 44px;
        margin: 0 auto 18px;
        border: 4px solid #dbe2ec;
        border-top-color: var(--blue);
        border-radius: 50%;
        animation: three-d-spin 0.9s linear infinite;
    }

    body.trafik .three-d-overlay-title {
        margin-bottom: 8px;
        font-size: 20px;
        font-weight: 600;
    }

    body.trafik .three-d-overlay-text {
        font-size: 15px;
        line-height: 1.5;
        color: #6b7690;
    }

    @keyframes three-d-spin {
        to { transform: rotate(360deg); }
    }

    /* Prim bilgilendirme sonuc alani (PrimBilgilendirme.aspx) */
    body.trafik #pnlPrimInfo {
        padding: 16px 0 8px;
        border-bottom: 1px solid var(--line);
    }

        body.trafik #pnlPrimInfo .control-row {
            margin-bottom: 8px;
        }

        body.trafik #pnlPrimInfo .label {
            padding-right: 0;
            color: var(--navy);
        }

    /* Popup (modal) pencereleri */
    body.trafik .modal {
        font-family: 'Zurich Sans', Arial, sans-serif;
        color: var(--navy);
    }

        body.trafik .modal .modal-dialog {
            box-sizing: border-box;
            width: min(720px, 100% - 32px);
            max-width: none;
            margin: 40px auto;
        }

        body.trafik .modal .modal-content {
            overflow: hidden;
            background: #fff !important;
            border: 0;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
        }

        body.trafik .modal .modal-header {
            padding: 18px 24px;
            font-size: 22px;
            font-weight: 600;
            line-height: 1.3;
            color: var(--navy);
            background: #fff;
            border-bottom: 1px solid var(--line);
        }

        body.trafik .modal .modal-title {
            font-size: inherit;
            font-weight: inherit;
            line-height: inherit;
        }

        body.trafik .modal .modal-body {
            box-sizing: border-box;
            height: auto !important;
            max-height: calc(100vh - 260px);
            overflow-y: auto !important;
            font-size: 15px;
            line-height: 1.5;
            color: var(--navy);
            background: #fff;
        }

            body.trafik .modal .modal-body [class^="content"] {
                padding: 8px 24px 16px;
            }

            body.trafik .modal .modal-body > p {
                margin: 16px 24px !important;
            }

            body.trafik .modal .modal-body h1,
            body.trafik .modal .modal-body h2,
            body.trafik .modal .modal-body h3,
            body.trafik .modal .modal-body p,
            body.trafik .modal .modal-body li {
                color: var(--navy);
                font-family: inherit;
            }

            body.trafik .modal .modal-body h3 {
                font-size: 18px;
                font-weight: 600;
                line-height: 1.35;
            }

        body.trafik .modal .modal-footer {
            padding: 14px 24px;
            text-align: center;
            background: #fff;
            border-top: 1px solid var(--line);
        }

        body.trafik .modal .modal-footer .btn {
            min-width: 160px;
            height: 40px;
            padding: 9px 24px;
            font-family: inherit;
            font-size: 16px;
            font-weight: 600;
            line-height: 1.25;
            color: #fff;
            background: var(--blue);
            border: 0;
            border-radius: 999px;
            cursor: pointer;
        }

            body.trafik .modal .modal-footer .btn:hover {
                background: #1555c8;
            }

    body.trafik .modal-backdrop {
        background-color: var(--navy);
    }

        body.trafik .modal-backdrop.in {
            opacity: .55;
        }

    /* Footer */
    body.trafik .page .footer {
        box-sizing: border-box;
        float: none;
        display: block;
        padding: 20px;
        color: #5a6788;
        background: #f4f5f5;
        text-shadow: none;
        font-size: 14px;
    }

        body.trafik .page .footer .site-name {
            font-size: 14px;
            line-height: 1.4;
        }

body.trafik .control-row select { accent-color: #2167e8; }

body.trafik .control-row select option {
    font-family: 'Zurich Sans', Arial, sans-serif;
    font-size: 16px;
    text-indent: 0;
    padding: 6px 12px;
}

body.trafik .control-row select option:first-child { color: #8894ab; }

@supports (appearance: base-select) {
    body.trafik .control-row select,
    body.trafik .control-row select::picker(select) {
        appearance: base-select;
    }

    body.trafik .control-row select {
        text-indent: 0;
        padding: 0 12px;
        display: flex;
        align-items: center;
        line-height: 1.3;
    }

    body.trafik .control-row select::picker-icon { display: none; }

    body.trafik .control-row select::picker(select) {
        border: 0;
        border-radius: 8px;
        padding: 4px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(35, 54, 111, 0.18);
        max-height: 300px;
    }

    body.trafik .control-row select option {
        border-radius: 6px;
        padding: 4px 12px;
        height: auto;
        min-height: 0;
        line-height: 1.3;
        font-size: 15px;
        color: #23366f;
        background: #fff;
        cursor: pointer;
    }

    body.trafik .control-row select option::checkmark { display: none; }

    body.trafik .control-row select option:first-child { color: #8894ab; }

    body.trafik .control-row select option:checked {
        background: #dceaff;
        color: #23366f;
    }

    body.trafik .control-row select option:hover,
    body.trafik .control-row select option:focus-visible:not(:checked) {
        background: #2167e8;
        color: #fff;
    }
}

@media (max-width: 600px) {
    body.trafik .page .page-header {
        font-size: 20px;
    }

    body.trafik .panel .panel-header {
        font-size: 18px;
    }

    body.trafik .control-row {
        grid-template-columns: 1fr;
        width: calc(100% - 24px);
        margin: 0 12px 16px;
    }

        body.trafik .control-row .label {
            margin-bottom: 4px;
            padding-right: 0;
        }

        body.trafik .control-row .label-empty {
            display: none;
        }

        body.trafik .control-row input[type=text],
        body.trafik .control-row input[type=tel],
        body.trafik .control-row input[type=email],
        body.trafik .control-row input[type=password],
        body.trafik .control-row input[type=number] {
            height: 40px;
            line-height: normal;
            width: 100%;
        }

        body.trafik .control-row input[type=submit],
        body.trafik .control-row input[type=button] {
            width: 100%;
            min-width: 0;
            height: 44px;
        }

    body.trafik .errorClass {
        grid-column: 1;
        position: static;
        margin: 4px 0 0;
        width: auto;
        float: none;
    }

    body.trafik #captcha .label {
        flex: 0 0 100%;
        margin-bottom: 4px;
    }

    body.trafik #captcha .errorClass {
        margin-left: 0;
    }

    body.trafik .check-row {
        width: calc(100% - 24px);
        gap: 12px;
    }
}
