@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
    --thm-font: "Inter", sans-serif;
    --thm-font-2: "reeyregular";
    --thm-base: #ff7a00;
    --thm-base-rgb: 255, 122, 0;
    --thm-primary: #182978;
    --thm-primary-rgb: 24, 41, 120;
    --thm-gray: #515151;
    --thm-gray-rgb: 81, 81, 81;
    --thm-white: #ffffff;
    --thm-white-rgb: 255, 255, 255;
    --thm-black: #202020;
    --thm-black-rgb: 32, 32, 32;
    --thm-gray-bg: #f5f5f5;
    --thm-main-bg: #202020;
}

:root {
    --swiper-theme-color: #007aff;
}

:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0));
}

* {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: var(--thm-font);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

#root,
#__next {
    isolation: isolate;
}


.page-name {
    width: 100%;
    height: 350px;
    background: url(../image/IMG_8529.jpg);
    background-size: cover;

    .cover {
        width: 100%;
        height: 100%;
        display: flex;
        font-size: 35px;
        color: var(--thm-white);
        font-weight: 800;
        align-items: center;
        padding-left: 70px;
        background-color: rgba(0, 0, 0, 0.7);
    }
}

.apply-container {
    width: 100%;
    height: fit-content;
    display: flex;
    background-color: var(--thm-gray-bg);
    padding-top: 120px;
    padding-left: 70px;
    padding-right: 70px;
    padding-bottom: 120px;


    .apply-left {
        width: 43%;
        height: 800px;
        display: flex;
        background-color: #182978;
        justify-content: center;
        align-items: flex-end;
        background: url(../image/loan.jpg);
        background-size: 100% 87%;
        background-repeat: no-repeat;


        .approved {
            width: 75%;
            height: 180px;
            display: flex;
            background-color: var(--thm-white);
            border-bottom: 6px solid var(--thm-base);
            padding: 20px;
            align-items: center;


            .pic-side {
                width: 60%;
                height: 100%;


                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .text-side {
                width: 40%;
                height: 70%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                border-top: 1px solid var(--bs-gray);
                border-bottom: 1px solid var(--bs-gray);

                h2 {
                    font-size: 55px;
                    color: var(--thm-primary);
                    font-weight: 800;
                    line-height: 60px;
                }

                p {
                    color: var(--bs-gray);
                    font-weight: 600;
                }
            }
        }
    }

    .apply-right {
        width: 57%;
        height: 800px;
        padding-left: 100px;

        .top {
            width: 90%;
            height: 280px;
            background-color: var(--thm-gray-bg);


            p {
                color: var(--bs-blue);
                font-size: 15px;
                font-weight: 600;

                .fa-minus {
                    text-align: center;
                    font-weight: 800;
                    color: var(--thm-base);
                }
            }

            h2 {
                font-size: 50px;
                font-weight: 800;
                color: #212529;
                line-height: 55px;
                margin-top: 20px;
            }

            h4 {
                margin-top: 30px;
                color: #343a40;
                font-weight: 500;
            }
        }

        .middle {
            width: 90%;
            height: 400px;


            .apply-online {
                width: 100%;
                height: fit-content;
                padding-bottom: 10px;
                background-color: var(--thm-gray-bg);

                i {
                    font-size: 15px;
                    font-weight: 900;
                    background-color: var(--thm-primary);
                    border-radius: 50%;
                    padding: 5px;
                    color: var(--thm-white);
                    transition: background-color 0.3s ease, color 0.3s ease;
                }

                i:hover {
                    background-color: var(--thm-base);
                }

                span {
                    margin-left: 30px;
                    font-weight: 700;
                    font-size: 22px;
                }
            }

            .note {
                width: 100%;
                height: 85px;
                background-color: var(--thm-gray-bg);
                padding-top: 1px;
                padding-left: 40px;
                margin-top: 10px;
                margin-bottom: 10px;
                margin-left: 12px;
                border-left: 1px solid var(--bs-gray);
                font-weight: 500;
            }

            .wait {
                width: 100%;
                height: fit-content;
                padding-bottom: 10px;
                background-color: var(--thm-gray-bg);

                i {
                    font-size: 15px;
                    font-weight: 900;
                    background-color: var(--thm-primary);
                    border-radius: 50%;
                    padding: 5px;
                    color: var(--thm-white);
                    transition: background-color 0.3s ease, color 0.3s ease;
                }

                i:hover {
                    background-color: var(--thm-base);
                }

                span {
                    margin-left: 30px;
                    font-weight: 700;
                    font-size: 22px;
                }
            }

            .get {
                width: 100%;
                height: fit-content;
                padding-bottom: 10px;
                background-color: var(--thm-gray-bg);

                i {
                    font-size: 15px;
                    font-weight: 900;
                    background-color: var(--thm-primary);
                    border-radius: 50%;
                    padding: 5px;
                    color: var(--thm-white);
                    transition: background-color 0.3s ease, color 0.3s ease;
                }

                i:hover {
                    background-color: var(--thm-base);
                }

                span {
                    margin-left: 30px;
                    font-weight: 700;
                    font-size: 22px;
                }
            }

            .note2 {
                width: 100%;
                height: 85px;
                background-color: var(--thm-gray-bg);
                padding-top: 1px;
                padding-left: 40px;
                margin-top: 5px;
                margin-left: 12px;
                font-weight: 500;
            }
        }

        .down {
            width: 100%;
            height: 120px;
            display: flex;
            align-items: end;


            a {
                text-decoration: none;
                color: var(--thm-white);
            }

            p {
                position: relative;
                background-color: var(--thm-base);
                /* Initial background color */
                padding: 20px 40px;
                font-weight: 700;
                color: var(--thm-white);
                /* Initial text color */
                overflow: hidden;
                transition: background-color 0.3s ease, color 0.3s ease;
                z-index: 1;

                i {
                    margin-left: 5px;
                    background-color: #e6a466;
                    padding: 5px;
                    border-radius: 50%;
                }
            }

            p::after {
                content: "";
                position: absolute;
                top: 0;
                right: -100%;
                width: 100%;
                height: 100%;
                background-color: var(--thm-black);
                transition: right 0.7s ease;
                z-index: -1;
            }

            p:hover::after {
                right: 0;
                /* Slide the background in */
            }

            p:hover {
                background-color: #6c757d;
                /* Change background on hover */
                color: var(--thm-white);
                /* Change text color on hover */
            }

            p:hover i {
                background-color: #f5f5f5;
                /* Change background color of the icon */
                color: var(--thm-gray);
                /* Change icon color */
            }

            i {
                margin-left: 5px;
                background-color: #e6a466;
                /* Initial background color for the icon */
                padding: 5px;
                border-radius: 50%;
                transition: background-color 0.3s ease, color 0.3s ease;
            }
        }
    }
}

/* THE REQUEST CONTAINER STARTS HERE */

.request {
    width: 100%;
    height: fit-content;
    padding-left: 70px;
    padding-top: 120px;
    padding-bottom: 120px;
    background: url(../image/request.JPG);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    .request-left {
        width: 100%;
        max-width: 750px;
        height: fit-content;
        padding: 70px;
        background-color: var(--thm-primary);
        border-left: 6px solid var(--thm-base);


        .request-top {
            width: 90%;
            height: 150px;

            p {
                font-size: 50px;
                color: var(--thm-white);
                font-weight: 800;
                line-height: 60px;
            }
        }

        .request-middle {
            width: 100%;
            height: fit-content;

            .names,
            .mail,
            .tel,
            .date {
                display: flex;
                justify-content: space-between;
                margin-top: 20px;

                p {
                    color: var(--bs-light);
                    font-size: 18px;
                    font-weight: 500;
                    margin-right: 30px;

                    span {
                        color: var(--thm-base);
                    }
                }

                input {
                    width: 67%;
                    background-color: var(--thm-primary);
                    border-bottom: 3px solid var(--thm-gray-bg);
                    border-top: none;
                    border-left: none;
                    border-right: none;
                    padding-bottom: 5px;
                    color: var(--bs-light);
                    font-weight: 500;
                }

                input:focus {
                    border-bottom: 3px solid var(--thm-gray-bg);
                    outline: none; 
                  }



                input::placeholder {
                    font-weight: 500;
                    font-size: 18px;
                    color: var(--bs-light);
                }

                input[type="date"]::-webkit-calendar-picker-indicator {
                    display: none;
                }
            }

            .address {
                display: flex;
                justify-content: space-between;
                margin-top: 20px;


                p {
                    color: var(--bs-light);
                    font-size: 18px;
                    font-weight: 500;
                    margin-right: 30px;

                    span {
                        color: var(--thm-base);
                    }
                }

                .option {
                    width: 67%;
                    display: flex;
                    justify-content: space-between;
                }

                select {
                    width: 45%;
                    background-color: var(--thm-primary);
                    border-bottom: 3px solid var(--thm-gray-bg);
                    border-top: none;
                    border-left: none;
                    border-right: none;
                    padding-bottom: 5px;
                }

                select:focus{
                    border-bottom: 3px solid var(--thm-gray-bg);
                    outline: none;
                }

                select{
                    font-weight: 500;
                    font-size: 18px;
                    color: var(--bs-light);
                }

                select option{
                    font-weight: 500;
                    font-size: 18px;
                    color: var(--bs-light);
                }
            }




            button {
                text-decoration: none;
                color: var(--thm-white);
                background-color: var(--thm-base);
                padding: 20px;
                font-weight: 600;
                font-size: 20px;
                border: none;
                position: relative;
                overflow: hidden;
                transition: background-color 0.7s ease, color 0.7s ease;
                z-index: 1;
                margin-top: 20px;

                i {
                    margin-left: 5px;
                    background-color: #e6a466;
                    border-radius: 100px;
                    padding: 5px 5px;
                }
            }

            button:after {
                content: "";
                position: absolute;
                top: 0;
                right: -100%;
                width: 100%;
                height: 100%;
                background-color: var(--thm-black);
                transition: right 0.7s ease;
                z-index: -1;
            }

            button:hover:after {
                right: 0;
            }

            button:hover i {
                background-color: #9f9696;
                color: var(--thm-gray);
            }

        }
    }
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    margin: 20% auto;

    .cont{
        width: 100%;
        height: fit-content;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        font-size: 70px;
        color: var(--bs-success);
    }

    .note{
        width: 100%;
        height: fit-content;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
        color: var(--bs-gray);
        margin-top: 20px;
    }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}