﻿/*form styles*/
#msform {
    /* text-align: center; */
    position: relative;
    margin-top: 20px;
}

#msform .form-floating>label {
    font-weight: bold;
}

#msform fieldset .form-card {
    background: white;
    border: 0 none;
    border-radius: 0px;
    /* box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.2); */
    /* padding: 20px 40px 30px 40px; */
    box-sizing: border-box;
    /* width: 94%; */
    /* margin: 0 3% 20px 3%; */
    position: relative;
}

#msform fieldset {
    /*        background: white;*/
    border: 0 none;
    border-radius: 0.5rem;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding-bottom: 20px;
    /*stacking fieldsets above each other*/
    position: relative;
}

/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
    display: none;
}

#msform fieldset .form-card {
    text-align: left;
    /* color: #9E9E9E; */
}

#msform .previous {
    margin-right: 10px;
}

#msform input[type="button"] {
    width: 250px;
    margin-top: 10px;
}

#msform input,
#msform textarea,
#msform select {
    border-radius: 5px;
    /* background: #9cfbff; */
    background: #fff;
    color: #02376b;
    border: none;
    font-weight: bold;
    clip-path: polygon(5% 0px, 100% 0px, 100.00% 70%, 95% 100%, 0px 100%, 0px 30%);
}

#msform input[type=button] {
    background: #ee1c25;
    color: #fff;
    ;
}

#msform input:focus,
#msform textarea:focus {
    /*                -moz-box-shadow: none !important;
                -webkit-box-shadow: none !important;
                box-shadow: none !important;
                border: none;
                font-weight: bold;
                border-bottom: 2px solid skyblue;
                outline-width: 0;*/
}

/*Blue Buttons*/
/*#msform .btn-outline-danger {
            width: 100px;
            background: skyblue;
            font-weight: bold;
            color: white;
            border: 0 none;
            border-radius: 0px;
            cursor: pointer;
            padding: 10px 5px;
            margin: 10px 5px;
        }*/

/*            #msform .btn-outline-danger:hover, #msform .btn-outline-danger:focus {
                box-shadow: 0 0 0 2px white, 0 0 0 3px skyblue;
            }*/

/*Previous Buttons*/
#msform .btn-outline-danger-previous {
    width: 100px;
    background: #616161;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 0px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
}

#msform .btn-outline-danger-previous:hover,
#msform .btn-outline-danger-previous:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #616161;
}

/*Dropdown List Exp Date*/
select.list-dt {
    border: none;
    outline: 0;
    border-bottom: 1px solid #ccc;
    padding: 2px 5px 3px 5px;
    margin: 2px;
}

select.list-dt:focus {
    border-bottom: 2px solid skyblue;
}

/*The background card*/
.card {
    z-index: 0;
    border: none;
    border-radius: 0.5rem;
    position: relative;
}

/*FieldSet headings*/
.fs-title {
    color: #da3832;
    line-height: 40px;
    text-shadow: 1px 1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
        -1px -1px 0 #fff, 1px 0px 0 #fff, 0px 1px 0 #fff, -1px 0px 0 #fff,
        0px -1px 0 #fff, 1px 1px 0px rgba(255, 255, 255, 0);
    text-transform: uppercase;
}

/*progressbar*/
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    margin-left: 0px;
    padding-left: 0px;
    /* font-style: italic; */
    /*    color: lightgrey;*/
}

#progressbar .active {
    color: #ed1c24;

}

#progressbar li {
    list-style-type: none;
    font-size: 12px;
    width: 20%;
    float: left;
    position: relative;
    text-align: center;
    font-weight: bold;
}

/*Icons in the ProgressBar*/
#progressbar #step1:before,
#progressbar #step2:before,
#progressbar #step3:before,
#progressbar #step4:before,
#progressbar #step5:before {
    /* font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; */
    font-size: 20px;
    padding-top: 3px;
}

#progressbar #step1:before {
    content: "1";
}

#progressbar #step2:before {
    content: "2";
}

#progressbar #step3:before {
    content: "3";
}

#progressbar #step4:before {
    content: "4";
}

#progressbar #step5:before {
    content: "5";
}

/*ProgressBar before any progress*/
#progressbar li:before {
    position: relative;
    width: 63px;
    height: 50px;
    background-color: #a7f1ff;
    color: #03366d;
    /* Màu nền của khối hình */

    /* Bo tròn các góc. Các góc bị cắt sẽ không thấy bo tròn. */
    border-radius: 10px;
    font-size: 18px;
    /* * **ĐÃ CẬP NHẬT** - Dùng clip-path để cắt 2 góc.
         * polygon() định nghĩa các điểm đỉnh của hình đa giác.
         * Đường đi: Bắt đầu từ trên-trái -> cắt góc trên-phải -> đi xuống dưới-phải
         * -> cắt góc dưới-trái -> quay về điểm bắt đầu.
        */
    clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);

    /* Căn giữa nội dung bên trong (số 5) */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
    /* Hiệu ứng đổ bóng nhẹ cho đẹp mắt */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Chrome, Firefox, Opera, Safari 10.1+ */
.form-control:placeholder {
    color: #03366d;
    /* Thay bằng mã màu bạn muốn */
    opacity: 1;
    /* Firefox mặc định có độ mờ thấp hơn */
}

/* Internet Explorer 10-11 */
.form-control:-ms-input-placeholder {
    color: #03366d;
}

/* Microsoft Edge */
.form-control::-ms-input-placeholder {
    color: #03366d;
}

/*ProgressBar connectors*/
#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    /*        background: lightgray;*/
    background: #000;
    position: absolute;
    left: 0;
    top: 25px;
    z-index: -1;
}

/*Color number of the step and the connector before it*/
#progressbar li.active:before,
#progressbar li.active:after {
    background: #ed1c24;
    color: #fff;
    ;
}

/*Imaged Radio Buttons*/
.radio-group {
    position: relative;
    margin-bottom: 25px;
}

.radio {
    display: inline-block;
    width: 204px;
    height: 104px;
    border-radius: 0;
    background: lightblue;
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    cursor: pointer;
    margin: 8px 2px;
}

.radio:hover {
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.3);
}

.radio.selected {
    box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.1);
}

/*Fit image in bootstrap div*/
.fit-image {
    width: 100%;
    object-fit: cover;
}