﻿
.step-label {
    font-size: 0.75rem;
    text-align: center;
    min-height: 2.5em; /* ป้องกันความสูงไม่เท่ากัน */
    line-height: 1.2;
    white-space: normal; /* ตัดคำขึ้นบรรทัดใหม่ได้ */
}

.step-divider {
    width: 36px;
    height: 1px;
    background-color: #ced4da;
}

@media (max-width: 576px) {
    .d-flex.justify-content-center {
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .step-divider {
        width: 8px;
    }
}

.bg-gray {
    background-color: #f7f7f7;
}

#searchInput {
    padding-left: 1.5rem;
    height: 44px;
}

.card h6 {
    font-weight: 600;
}

.card {
    transition: transform 0.2s ease;
}

    .card:hover {
        transform: translateY(-3px);
    }


/* Button*/

/*size button*/
.custom-btn-back, .custom-btn-primary, .btn-decline, .btn-accept {
    /*width: 40%;*/
    text-align: center;
}

.custom-btn-primary {
    background-color: #004a99;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 17px;
    padding: 16px 40px;
    border-radius: 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    margin-bottom: 15px;
    display: inline-block;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

    .custom-btn-primary:hover {
        background-color: #003b7a;
        color: #ffffff;
    }

    .custom-btn-primary:disabled {
        background-color: #cccccc;
        color: #666;
        cursor: not-allowed;
        box-shadow: none;
    }

.custom-btn-secondary {
    background-color: #E6F0F7;
    border: none;
    color: #004a99;
    font-weight: bold;
    font-size: 17px;
    padding: 16px 40px;
    border-radius: 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    margin-bottom: 15px;
    display: inline-block;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.custom-btn-primary:hover {
    background-color: #003b7a;
    color: #ffffff;
}

.custom-btn-primary:disabled {
    background-color: #cccccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.custom-btn-back {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #333333;
    font-weight: bold;
    font-size: 17px;
    padding: 16px 40px;
    border-radius: 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    margin-bottom: 15px;
    display: inline-block;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
    /* สไตล์เมื่อ hover */
    .custom-btn-back:hover:not(:disabled) {
        background-color: #e0e0e0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* เปลี่ยน shadow เล็กน้อย */
        color: #000; /* เข้มขึ้นเล็กน้อย */
    }

    /* สไตล์เมื่อถูกกด (active) */
    .custom-btn-back:active:not(:disabled) {
        background-color: #d4d4d4;
    }

    /* สไตล์เมื่อ disabled */
    .custom-btn-back:disabled,
    .custom-btn-back[disabled] {
        background-color: #f0f0f0;
        border-color: #ddd;
        color: #999999;
        cursor: not-allowed;
        box-shadow: none;
    }


a.custom-btn-primary:hover {
    color: #ffffff;
    text-decoration: none !important;
}

.bg-warning {
    background-color: #ffc107;
    color: #fff;
    border-radius: 8px !important;
}

.bg-success {
    background-color: #28a745;
    color: #fff;
    border-radius: 8px !important;
}

/* Button decline accept*/
.btn {
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    color: white;
}

    .btn:focus {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

.btn-decline {
    background-color: #999999;
}

    .btn-decline:hover {
        background-color: #808080;
    }

.btn-accept {
    background-color: #005194;
}

    .btn-accept:hover {
        background-color: #0063b5;
        color: white;
    }

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}





/* % ไล่สี ปุ่ม */
.interest-rate-badge {
    display: inline-block;
    padding: 4px 12px;
    font-weight: bold;
    font-size: 14px;
    color: white;
    background: linear-gradient(90deg, #0056a6, #0078d7); /* ไล่สีฟ้าสดใส */
    border-radius: 20px; /* มน ๆ */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 160px;
    text-align: center;
}



/* pagination */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

    .pagination a {
        padding: 0.5rem 0.75rem;
        background: #fff;
        border: 1px solid #ccc;
        text-decoration: none;
        color: #333;
        border-radius: 5px;
    }

        .pagination a.active {
            background: #007bff;
            color: white;
            font-weight: bold;
        }





/* dropdown ค้นหา */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

    .custom-dropdown .dropdown-toggle {
        background-color: #fff;
        border: 1px solid #ccc;
        padding: 8px 15px;
        border-radius: 50rem;
        cursor: pointer;
        font-weight: bold;
        min-width: 220px;
        text-align: center;
    }

    .custom-dropdown .dropdown-menu {
        display: none;
        position: absolute;
        z-index: 1000;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 0.75rem;
        list-style: none;
        margin-top: 8px;
        width: 100%;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

        .custom-dropdown .dropdown-menu li {
            padding: 10px 15px;
            cursor: pointer;
        }

            .custom-dropdown .dropdown-menu li:hover,
            .custom-dropdown .dropdown-menu li.active {
                background-color: #f0f0f0;
            }

        .custom-dropdown .dropdown-menu.show {
            display: block;
        }

/*  */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu li {
        padding: 10px 15px;
        cursor: pointer;
    }

        .dropdown-menu li:hover {
            background-color: #f5f5f5;
        }

        .dropdown-menu li.active {
            font-weight: bold;
        }



/*  FAQ  */
a.btn.btn-faq.w-100.mb-2.d-flex.justify-content-between.align-items-center {
    background-color: #ccc;
}

.meduim.text-blue {
    padding-bottom: 20px;
}

button.btn.btn-faq.w-100.mb-2.d-flex.justify-content-between.align-items-center span {
    color: #005194 !important;
    text-align: left;
}

.faq-content {
    transition: all 0.3s ease;
    padding-left: 0.5rem;
}

i.fa-solid.fa-angle-down.toggle-icon {
    color: #005194;
}


/*Checkbox*/
label.form-check-label {
    margin-left: 10px;
}

.form-check-input {
    width: 1.5em !important;
    height: 1.5em !important;
    margin-right: .5em !important;
    border: 2px solid rgb(0 0 0 / 18%) !important;
}

.btn-accept.btn-disabled {
    background-color: darkgray !important;
    border-color: darkgray !important;
    color: white !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 1; /* ชัดเจน ไม่ต้องจาง */
    transition: background-color 0.3s ease;
}
/*Terms*/

.termsdetails {
    height: 500px !important;
}

label.form-check-label.text-color-grey {
    padding-left: 20px;
}

/* Terms Risk*/
label.form-check-label.text-white {
    padding-left: 10px;
}


.form-check-input, input#acceptRisk1, input#acceptRisk2 {
    margin-right: 0px !important;
}

/*<!-- Step Navigation -->*/
.bg-primary {
    background-color: #005194 !important;
}

.text-primary {
    color: #005194 !important;
}

i.fas.fa-bars.fa-lg {
    color: #fff !important;
}

i.fas.fa-times.fa-lg {
    color: #005194 !important;
}
