body {
    font-family: Roboto;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 1%;
    color: #041F4A;
}

.main-content .content-title h2 a,
.main-content .content-title h2 {
    font-weight: 700;
    font-size: 20px;
    line-height: 50px;
    letter-spacing: 0%;
}

.wizard-title {
    /* margin-top: 1rem; */
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-container-before label {
    margin-bottom: 4px;
}

.note {
    font-weight: 400;
    font-style: italic;
    font-size: 10px;
    line-height: 20px;
    letter-spacing: -0.24px;
    color: #AEC7E5;
}

.tab-content {
    width: 100%;
    background: #fff;                /* Nền trắng */
    border-radius: 12px;            /* Bo góc */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Đổ bóng nhẹ */
    margin-top: 1rem;  
}

/* Tùy chỉnh thẻ tab-pane để có nền trắng, bo góc, đổ bóng */
.tab-content .tab-pane {
    max-width: 781px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 1.5rem;
}

select option:not(:disabled) {
    color: #041F4A;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
}

select.invalid-data {
    font-weight: 500;
    color: #AEC7E5 !important;
}

select:focus {
    border-color: transparent;
    outline: none;
}

body input[type=radio] {
    margin: 0 !important;
}

.form-group-radio {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 2rem;
}

.form-group-radio label.form-check-label {
    margin-left: .5rem !important;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #AEC7E5;
}

.form-check-input::after {
    content: "";
    width: 8px !important;
    height: 8px !important;
    border-radius: 100%;
    background: linear-gradient(265.54deg, #0052CC 0%, #28A6FC 100%);
    box-shadow: 0 0 5px rgba(0, 82, 204, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
}

.form-check-input:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

.form-check-input:checked + .form-check-label {
    color: #041F4A;
}

/* CSS custom cho thanh nav-tabs */
.custom-nav-tabs {
    border-bottom: none;       /* Bỏ gạch chân mặc định */
    border-radius: 8px;        /* Bo góc nếu muốn */
    justify-content: flex-start;   /* Căn giữa các tab */
    margin-bottom: 0.5rem; /* hoặc 0 tùy ý */
}

.custom-nav-tabs img {
    height: 24px;
    width: 24px;
    margin: 0 10px 0 0;
}

/* Xóa viền mặc định cho từng nav-item, canh bottom */
.custom-nav-tabs .nav-item {
    margin-bottom: -1px;
}

/* Căn chỉnh icon và text trên cùng 1 hàng */
.custom-nav-tabs .nav-link {
    display: inline-flex;       /* Giúp icon + text cùng dòng */
    align-items: center;        /* Căn giữa theo chiều dọc */
    /*gap: 8px;                   !* Khoảng cách giữa icon và text *!*/
    background-color: #FFFFFF;
    border: 1px solid #F2F3F7;
    border-radius: 12px;         /* Bo góc cho tab */
    padding: 12px;
    margin: 0 1rem 0 0;
    transition: all 0.3s;
    
    color: #A2ACBD;             /* Màu chữ xanh */
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 1%;

}

/* Kích thước icon (tuỳ ý) */
.custom-nav-tabs .nav-link .tab-icon {
    width: 20px;
    height: 20px;
    /* Có thể thêm: object-fit: contain; nếu muốn ảnh thu gọn */
}

/* Hover */
.custom-nav-tabs .nav-link:hover {
    color: #357ab8;
}

/* Tab active: nền trắng, chữ xanh đậm, đổ bóng nhẹ */
.custom-nav-tabs .nav-link.active {
    color: #003B9F;
    background-color: #DEEBFF;
    border: none;
    /* box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05); */
}

.input-group>.custom-select:not(:first-child), .input-group>.form-control:not(:first-child) {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/*css input*/
.form-group input:not(.form-check-input), .form-group select, .select2-container--default .select2-selection {
    width: 100%;
    height: 56px;
    padding: 16px;
    gap: 12px;
    border-radius: 12px;
    background: #F0F5FF !important;
    border: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #041F4A !important;
}
.form-group input::placeholder, .form-group select::placeholder {
    color: #AEC7E5 !important;
}

.form-check-input {
    appearance: none; /* Ẩn radio mặc định */
    width: 16px !important;
    height: 16px !important;
    border-radius: 100% !important;
    background-color: #FFFFFF !important;
    border: 1px solid #0052CC !important;
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding: 0 !important;
}

#id_issue_date {
    border-radius: 12px;

}

.numInputWrapper span {
    opacity: 1 !important;
}

.icon-date-picker-select-black {
    z-index: 1000;
    width: 24px;
    height: 24px;
    top: 15px;
    background-size: cover;
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
}
.form-check-label {
    margin-left: 2rem ;
}

.icon-arrow-up-select-black {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url(../../../images/common/arrow-down.png) no-repeat center/cover;
    position: absolute;
    right: 20px;
    z-index: 1;
}

.form-group select {
    appearance: none; /* Ẩn mũi tên mặc định */
    -webkit-appearance: none; /* Cho trình duyệt WebKit (Chrome, Safari) */
    -moz-appearance: none; /* Cho Firefox */
    background-image: none !important; /* Loại bỏ icon mặc định */
    /*color: #A0AEC0;*/
}

.upload-box {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background-color: #f8f9fa;
}
.upload-box img {
    max-width: 100%;
    height: 200px; /* Cố định chiều cao ảnh */
    object-fit: contain; /* Giữ nguyên tỉ lệ và cắt phần dư */
    display: none;
    border-radius: 8px;
}
.upload-box input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

#btn-continue:disabled,
#btn-search:disabled {
    background-color: #D1D5DB !important; /* Màu xám */
    border-color: #D1D5DB !important;
    cursor: not-allowed; /* Biểu tượng chuột bị vô hiệu hóa */
    opacity: 0.7; /* Làm mờ nút một chút */
}

#btn-continue,
#btn-search {
    background-color: #0060A6 !important; /* Màu xanh */
    border-color: #0060A6 !important;
    color: white;
    transition: background-color 0.3s ease-in-out;
    border-radius: 12px ;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: center;
}

/*màn success đăng kí , error đăng kí*/

.success-screen , .error-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
}

.success-screen .title-info, .error-screen .title-info {
    margin: 1.5rem 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 36px;
    letter-spacing: 1%;
}

.success-screen .content-info, .error-screen .content-info {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
    color: #344A6C;
}

.text-bold {
    font-weight: 700;
}

.img-success ,.img-error {
    width: 224px;
}
.title-info {
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
}
.content-info {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.btn-end {
    background-color: #0060A6;
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    max-width: 172px;
    width: 100%;
    margin-top: 1.5rem;
    height: 44px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 26px;
    letter-spacing: 0px;
}

.btn-end:hover, .btn-end:focus {
    color: white;
}

.captcha-wrapper {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1rem;
}

.help-block {
    font-size: 14px;
}

.captcha-wrapper img {
    max-width: 130px;
    width: 100%;
    height: autos;
}

.captcha-wrapper img {
    width: 130px;
    height: 30px;
}

#reload-captcha {
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
}

/*responsive*/
@media screen and (max-width: 769px) {
    .btn-end {
        margin-top: 1rem;
        max-width: 100%;
    }

    .success-screen .title-info, .success-screen .title-info, .error-screen .title-info {
        margin: 1rem 0;
    }
}

/* Mobile nhỏ (<576px) */
@media (max-width: 575px) {
    .form-group-radio {
        gap: 1rem;
    }
    .custom-nav-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .tab-content .tab-pane {
        padding: 0.5rem 2rem;
    }
    .title-info {
        font-size: 17px;
    }
    .content-info {
        font-size: 11px;
    }
    .img-success ,.img-error {
        width: 150px;
    }

    .captcha-wrapper img {
        max-width: 80px;
        width: 100%;
        height: auto;
    }
}

/* Mobile lớn (≥576px) */
@media (min-width: 576px) and (max-width: 767px) {
    .custom-nav-tabs {
        justify-content: center;
    }
    .tab-content .tab-pane {
        padding: 1rem 3rem;
    }
    .title-info {
        font-size: 20px;
    }
    .content-info {
        font-size: 14px;
    }
    .img-success ,.img-error {
        width: 150px;
    }
}

/* Tablet (≥768px) */
@media (min-width: 768px) and (max-width: 991px) {
    .tab-content .tab-pane {
        padding: 1rem 4rem;
    }
    .img-success ,.img-error {
        width: 200px;
    }
}

/* Laptop nhỏ (≥992px) */
@media screen and (min-width: 992px) {
    .tab-content .tab-pane {
        padding: 1.5rem 6rem;
    }
}

.message-error-upload-image {
    display: none;
    font-family: Roboto;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: -0.24px;
    color: #FF3E3E;
    margin-bottom: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: Roboto;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    vertical-align: middle;
    color: #041F4A;
    padding-left: 0;
}

.reflect-label {
    font-family: Roboto;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    vertical-align: middle;
    color: #041F4A;
    margin-bottom: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #AEC7E5;
}

.contact-title {
    font-family: Roboto;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0;
    vertical-align: middle;
    color: #041F4A;
}

.icon-arrow-up-select-black {
    width: 24px;
    height: 24px;
    background: url(../../../images/common/arrow-down-mnp.svg) no-repeat center/cover
}

@media screen and (max-width: 400px) {
    .form-group-radio .form-check {
        padding-left: 0;
    }
}