﻿
.financing {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem 0rem;
    margin: 1rem 0;
    width: 100%;
}

    .financing > div {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        max-width: 1100px;
        width: 100%;
    }

        /* Başlık */
        .financing > div > h4 {
            text-align: center;
            font-size: 22px;
            font-weight: 700;
            color: var(--green-hover);
            margin-bottom: 0.5rem;
            position: relative;
        }

            .financing > div > h4::after {
                content: "";
                display: block;
                width: 60px;
                height: 2px;
                margin: 0.5rem auto 0;
                background: var(--green-hover);
                border-radius: 2px;
            }

        /* Form kartı */
        .financing > div > div:first-of-type {
            gap: 3rem;
            padding: 1.5rem;
            border: 1px solid #c8c8c8;
            border-radius: 16px;
            background: var(--white);
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .financing > div > div:first-of-type div {
                width: 100%;
                display: grid;
                grid-template-columns: 1fr 1fr 100px;
                gap: 1.7rem;
                max-width: 700px;
            }

            .financing > div > div:first-of-type label {
                display: flex;
                flex-direction: column;
                gap: 8px;
                font-size: 12px;
                font-weight: 600;
                color: var(--dark-gray);
                width: 100%;
                position: relative;
            }

                .financing > div > div:first-of-type label svg {
                    position: absolute;
                    right: 10px;
                    bottom: 10px;
                    width: 15px;
                }

                .financing > div > div:first-of-type label select, .financing > div > div:first-of-type label input {
                    border: 0;
                    padding: 10px 12px;
                    border-bottom: 1px solid #c8c8c8;
                    font-size: 14px;
                    transition: all 0.2s ease;
                    width: 100%;
                }

                .financing > div > div:first-of-type label input {
                    width: calc(100% - 30px);
                }

                    .financing > div > div:first-of-type label select:focus,
                    .financing > div > div:first-of-type label input:focus {
                        outline: none;
                    }

            /* Hesapla butonu */
            .financing > div > div:first-of-type .btnGreen {
                grid-column: span 1;
                align-self: end;
                color: var(--white);
                border: none;
                padding: 11px 26px;
                border-radius: 5px;
                cursor: pointer;
                font-size: 12px;
                transition: all .2s ease;
                margin-top: 12px;
                align-self: center;
                justify-self: center;
            }



        /* Ödeme detay kartı */
        .financing > div > div:last-of-type {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            border: 1px solid #c8c8c8;
            border-radius: 16px;
            padding: 1.4rem;
            background: #f2f8f6;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        }

            .financing > div > div:last-of-type h5 {
                font-size: 17px;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 700;
                text-align: center;
                color: var(--green-hover);
            }

                .financing > div > div:last-of-type h5 a {
                    font-size: 12px;
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    color: var(--black);
                    position: absolute;
                    right: 10px;
                    cursor: pointer;
                }

                    .financing > div > div:last-of-type h5 a svg {
                        width: 13px;
                        stroke: var(--black);
                        height: 13px;
                    }

            .financing > div > div:last-of-type div {
                display: flex;
                gap: 1.6rem;
                width: 100%;
                align-items: center;
                justify-content: center;
                font-weight: 600;
            }

                .financing > div > div:last-of-type div p {
                    display: flex;
                    flex-direction: column;
                    gap: 13px;
                    cursor: pointer;
                    text-align: center;
                    padding: 1.5rem;
                    border: 1px solid #c8c8c8;
                    border-radius: 8px;
                    width: 170px;
                    font-size: 12px;
                    background: var(--white);
                    font-weight: 500;
                    color: var(--dark-gray);
                    transition: transform .2s, box-shadow .2s;
                }

                    .financing > div > div:last-of-type div p:hover {
                        transform: translateY(-3px);
                        box-shadow: 0 6px 14px rgba(0,0,0,0.08);
                    }

                    .financing > div > div:last-of-type div p b {
                        font-size: 22px;
                        color: var(--green);
                        font-weight: 900;
                    }

                    .financing > div > div:last-of-type div p:last-of-type b,
                    .financing > div > div:last-of-type div p:first-of-type b {
                        color: var(--black);
                    }

                    .financing > div > div:last-of-type div p:nth-of-type(2) b {
                        color: var(--green-hover);
                    }

                .financing > div > div:last-of-type div:last-of-type {
                    display: flex;
                    align-items: center;
                    gap: 13px;
                    border-top: 1px solid #c8c8c8;
                    padding-top: 1.3rem;
                    margin-top: 1rem;
                    width: 700px;
                    align-self: center;
                }

                    .financing > div > div:last-of-type div:last-of-type span {
                        color: var(--green);
                        font-weight: normal;
                    }

                        .financing > div > div:last-of-type div:last-of-type span b {
                            color: var(--green);
                        }



                    .financing > div > div:last-of-type div:last-of-type svg {
                        stroke: var(--green);
                    }

.basvuruFormuBtn {
    align-self: center;
    padding: 14px 56px;
    font-size: 15px;
    margin-top: 10px;
}

.formSection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.carOfferForm {
    padding: 3rem;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 500px;
}

    .carOfferForm div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-bottom: 1rem;
    }

    .carOfferForm h4 {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: normal;
        font-size: 18px;
        margin-bottom: 30px;
    }

    .carOfferForm div label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
        font-weight: normal;
    }

    .carOfferForm div input {
        border: 0;
        border-bottom: 1px solid #dedede;
        padding: 6px 0;
        outline: 0;
    }

    .carOfferForm button {
        padding: 9px;
        border: none;
        background: var(--green);
        border-radius: 5px;
        transition: 300ms;
        color: white;
        cursor: pointer;
        transition: 300ms;
        width: max-content;
        padding: 12px 2rem;
        align-self: center;
        margin-top: 1.4rem;
    }

        .carOfferForm button:hover {
            background: var(--green-hover);
        }

    .carOfferForm > p {
        font-size: 12px;
        margin: 2px 0;
    }

        .carOfferForm > p span {
            color: black;
            font-weight: 600;
            cursor: pointer;
            transition: 300ms;
        }

            .carOfferForm > p span:hover {
                color: #21b621;
            }

    .carOfferForm div label select {
        border: 0;
        border-bottom: 1px solid #dedede;
        padding: 6px 0;
        outline: 0;
    }

.popupBasvuru {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    background: #0000006b;
    top: 0;
    left: 0;
    align-self: center;
}

    .popupBasvuru > div > div {
        position: fixed;
        width: 1200px;
        height: 38vw;
        align-items: center;
        justify-content: center;
        background: var(--white);
        top: 0;
        align-self: center;
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        border-radius: 5px;
        border: 1px solid #e4e4e4;
    }

    .popupBasvuru > div > div {
        max-width: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 500px;
    }


@media (max-width: 768px) {
    .financing > div > div:last-of-type div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

        .financing > div > div:last-of-type div p {
            width: calc(100% - 3rem);
        }

        .financing > div > div:last-of-type div:last-of-type {
            width: 500px;
        }
}

@media (max-width: 576px) {
    .financing > div > div:first-of-type {
        grid-template-columns: 1fr 1fr;
    }

    .financing > div > div:last-of-type div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .financing > div > div:last-of-type div:last-of-type {
            width: 100%;
        }

        .financing > div > div:last-of-type div p {
            padding: 0.8rem;
        }

            .financing > div > div:last-of-type div p b {
                font-size: 16px;
            }

    .financing > div > div:first-of-type {
        grid-template-columns: 1fr;
    }

        .financing > div > div:first-of-type label select, .financing > div > div:first-of-type label input {
            width: calc(100% - 30px);
            background: var(--white) !important;
        }

    .financing > div > div:last-of-type h5 a {
        display: none;
    }

    .financing > div > div:last-of-type div p {
        padding: 0.3rem;
    }

    .financing > div > div:last-of-type div p {
        gap: 8px;
        text-align: center;
        padding: 30px 10px !important;
        width: calc(100% - 20px);
        font-size: 12px;
    }

    .financing > div > div:last-of-type div {
        gap: 0.3rem;
    }

    .financing > div > div:first-of-type div {
        grid-template-columns: 1fr;
    }

    .popupBasvuru > div {
        width: 250px;
    }

    .carOfferForm h4 {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: normal;
        font-size: 18px;
        margin-bottom: 30px;
        text-align: center;
    }

    .carOfferForm div {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
        max-height: 340px !important;
        overflow: scroll !important;
    }

    .carOfferForm {
        padding: 2rem;
        border-radius: 10px;
        background: var(--bg);
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: calc(100% - 0rem);
        height: 450px;
    }

        .carOfferForm > p {
            font-size: 11px;
            margin: 2px 0;
        }

    .popupBasvuru > div > div {
        max-width: 470px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 500px;
    }

    .popupBasvuru {
        position: fixed;
        width: 100vw;
        height: 100vh;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 999;
        background: #0000006b;
        top: 0;
        left: 0;
        align-self: center;
        /* height: 2600px; */
        align-items: center;
        justify-content: center;
    }

    .carOfferForm div {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
        max-height: 480px !important;
        overflow: scroll !important;
    }

    .fa-xmark {
        position: fixed;
        right: 1rem;
        top: 1rem;
        align-self: center;
        justify-self: center;
    }

    .financing > div > div:last-of-type div:last-of-type span {
        color: var(--green);
        font-size: 14px;
    }

    .financing > div > div:last-of-type div:last-of-type svg {
        stroke: var(--green);
        display: none;
    }

    .financing > div > div:first-of-type label select {
        width: 100%;
        background: var(--white) !important;
    }

    .financing > div > div:first-of-type .btnGreen {
        padding: 11px 46px;
    }
}

@media (max-width: 476px) {
    .financing > div > div:first-of-type {
        grid-template-columns: 1fr 1fr;
    }

    .financing > div > div:last-of-type div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .financing > div > div:last-of-type div:last-of-type {
            width: 100%;
        }

        .financing > div > div:last-of-type div p {
            padding: 0.8rem;
        }

            .financing > div > div:last-of-type div p b {
                font-size: 16px;
            }

    .financing > div > div:first-of-type {
        grid-template-columns: 1fr;
    }

        .financing > div > div:first-of-type label select, .financing > div > div:first-of-type label input {
            width: 100%;
            max-width: 250px;
            background: var(--white) !important;
        }

    .financing > div > div:last-of-type h5 a {
        display: none;
    }

    .financing > div > div:last-of-type div p {
        padding: 0.3rem;
    }

    .financing > div > div:last-of-type div p {
        gap: 8px;
        text-align: center;
        padding: 20px 10px !important;
        width: 123px;
        font-size: 12px;
    }

    .financing > div > div:last-of-type div {
        gap: 0.3rem;
    }

    .financing > div > div:first-of-type div {
        grid-template-columns: 1fr;
    }

    .popupBasvuru > div:first-of-type {
        width: 300px;
        height: 100vw;
        align-items: center;
        justify-content: center;
        background: var(--white);
        top: 0;
        align-self: center;
        border-radius: 5px;
        border: 1px solid #e4e4e4;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 99999;
    }

    .carOfferForm h4 {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: normal;
        font-size: 18px;
        margin-bottom: 30px;
        text-align: center;
    }

    .carOfferForm div {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
        max-height: 340px !important;
        overflow: scroll !important;
    }

    .carOfferForm {
    }

        .carOfferForm > p {
            font-size: 11px;
            margin: 2px 0;
        }

    .popupBasvuru > div > div {
        max-width: 310px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 500px;
        align-items: center;
        justify-content: center;
    }

    .popupBasvuru {
    }

    .carOfferForm div {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
        max-height: 480px !important;
        overflow: scroll !important;
    }

    .fa-xmark {
    }

    .financing > div > div:last-of-type div:last-of-type span {
        color: var(--green);
        font-size: 14px;
    }

    .financing > div > div:last-of-type div:last-of-type svg {
        stroke: var(--green);
        display: none;
    }

    .financing > div > div:first-of-type label select {
        max-width: 270px;
        width: 100%;
        background: var(--white) !important;
    }
}



.ct-popup, .kvkk-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ct-content, .kvkk-content {
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.ct-pdf-viewer, .kvkk-pdf-viewer {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
}

    .ct-pdf-viewer canvas, .kvkk-pdf-viewer canvas {
        height: auto;
        display: block;
        margin: 0 auto 1rem;
        width: 100% !important;
    }

.ct-accept:disabled,
.kvkk-accept:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .ct-content, .kvkk-content {
        width: calc(100% - 5rem);
        padding: 0.75rem;
    }

    .ct-pdf-viewer, .kvkk-pdf-viewer {
        max-height: 50vh;
        padding: 0.25rem;
    }
}


.popupSuccess {
    display: none;
}

