.width600{
    width: 600px !important;
}
.height40{
    height: 40px !important;
}
.padd-left-0{
    padding-left: 0;
}
.padd-right-0{
    padding-right: 0;
}
.text-right{
    text-align: right;
}
.f-bold{
    font-weight: bold;
}
.tvtop.clearfix {
    font-size: 15px;
    margin-bottom: 30px;
}
.tvtop a {
    color: #ed6203;
}
.form-control{
    height: 40px;
}
.mar-top-30{
    margin-top: 30px;
}
.mar-top-100{
    margin-top: 100px !important;
}
/* =========================
   WRAPPER BACKGROUND
========================= */
.thanhvien-bg {
    position: relative;
    background-image: url(../images/thanhvien-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    margin-top: 0px;
    padding: 60px 0;
}

/* =========================
   OVERLAY TRẮNG MỜ
========================= */
.overlay {
    position: absolute;
    inset: 0;
    background-color: rgb(255 255 255 / 81%);
    z-index: 1;
}

/* =========================
   CONTENT TRÊN OVERLAY
========================= */
.content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

/* =========================
   BOX CHÍNH (HIỆN RÕ NHẤT)
========================= */
.bgf6666 {
    position: relative;
    z-index: 5;
    /*width: 800px;*/
    width: 1000px;
    max-width: 95%;
    padding: 30px;
    background: #F6F6F6; /* ép nền trắng đặc */
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    margin: 0 auto;
}
.e-catalog h1 {
    margin-top: 0;
    font-size: 18px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .bgf6666 {
        width: 100%;
        padding: 24px;
    }
}
.tv-lines.mar-bottom-20.clearfix {
    margin: 0 -15px 30px -15px;
}
.tv-lines .col-md-4,
.tv-lines .col-md-6,
.tv-lines .col-md-12{
    font-size: 15px;
}
.tv-lines .col-md-4 e,
.tv-lines .col-md-6 e,
.tv-lines .col-md-12 e{
    color: red;
}
.mar-bottom-10{
    margin-bottom: 10px;
}
.mar-bottom-15{
    margin-bottom: 15px;
}
.mar-bottom-20{
    margin-bottom: 20px;
}
.iti {
    width: 100%;
}
.checkbox-bg {
    background-image: linear-gradient(90deg, #fcfbfb, #fef9f6 9%, #fff3eb 50%, #fbdcc7);
    padding: 12px;
    width: 100%;
}
/* label làm hàng ngang */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}
/* Ẩn checkbox mặc định */
.custom-checkbox input {
    display: none;
}
/* Ô checkbox custom */
.custom-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
}
/* Khi checked → nền vàng */
.custom-checkbox input:checked + .checkmark {
    background: #f4c400; /* vàng */
    border-color: #f4c400;
}
/* Dấu tick */
.custom-checkbox input:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* text */
.custom-checkbox .text {
    line-height: 1.4;
}
.form-group i {
    color: #c7c8c8;
    font-size: 24px;
}
.check-mocuahang input[type=checkbox] {
    height: 20px;
    width: 20px;
    position: relative;
    top: 4px;
}
.f-size16{
    font-size: 16px;
}





/* bọc checkbox + label cho đẹp */
.checkbox-modern {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    gap: 8px;
}

/* ẩn mặc định */
.checkbox-modern input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

/* custom box */
.checkbox-modern .box {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* tick dấu */
.checkbox-modern .box:after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.6);
    transition: all .2s ease;
}

/* khi được check */
.checkbox-modern input[type="checkbox"]:checked + .box {
    background: #ED6203; /* màu vàng */
    border-color: #ED6203;
}

.checkbox-modern input[type="checkbox"]:checked + .box:after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

/* hover */
.checkbox-modern:hover .box {
    border-color: #888;
}
label.checkbox-modern span {
    font-weight: normal;
}
.col-md-12.xline {
    color: #ccc;
    letter-spacing: 4.6px;
}
button#create-acc {
    background: #ED6203;
    color: #fff;
    padding: 15px 71px;
    border: #ED6203;
    font-size: 17px;
    border-radius: 50px;
    cursor: pointer;
}
button#create-acc:hover{
    background: #D73A04;
}
button#dropdownBtn i,
.dropdown i {
    text-align: right;
    position: absolute;
    right: 15px;
    font-size: 25px;
}
label.checkbox-modern a {
    color: #ED6203;
}
.infoline {
    color: #007bff;
    font-weight: bold;
    border-left: 5px solid #007bff;
    padding-left: 10px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid-3 {
    display: grid;
    /*grid-template-columns: repeat(3, 1fr);*/
    grid-template-columns: 40% 28% 28%;
    gap: 0 20px;
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}


/****cuahang*******/
/* Cấu trúc cho phần Chứng chỉ */
.certificate-list {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.certificate-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr 0.5fr; /* Tên, Ngày cấp, Ngày hết hạn, Upload, Xóa */
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
}

.certificate-row:last-of-type {
    border-bottom: none;
}

.certificate-row .form-group {
    margin-bottom: 0;
}

.add-cert-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: auto;
}
.add-cert-btn:hover {
    background-color: #1e7e34;
}

.remove-cert-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 12px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    height: 42px; /* Đồng bộ với chiều cao input */
}
.remove-cert-btn:hover {
     background-color: #c82333;
}
.certificate-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr 0.5fr;
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
}
.certificate-row:last-of-type {
    border-bottom: none;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    background-color: #f9f9f9;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
input[type="checkbox" i] {
    background-color: initial;
    cursor: default;
    appearance: auto;
    box-sizing: border-box;
    margin: 3px 3px 3px 4px;
    padding: initial;
    border: initial;
}
.checkbox-item label {
    display: block;
    margin-bottom: 0px;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    background: #f9f9f9;
}
.checkbox-item input{
    width: auto !important;
}
.form-group input {
    padding: 0px 10px !important; 
}
input[type="file"] {
    height: 40px;
    width: 244px;
    font-size: 15px;
}
select.form-control option{
    color: #000;
}

select.form-control:not([size]):not([multiple]) {
    height: auto;
    color: #999;
}



.form-group {
    position: relative;
}

.form-control.error {
    border-color: #e74c3c;
}

.error-msg {
    font-size: 13px;
    color: #e74c3c;
    margin-top: 5px;
}

.select-placeholder {
    color: #999;
}
.iti__selected-flag{
    height: 38px !important;
}
.toggle-password{
    top: 20px !important;
}
/*Tắt mũi tên mặc định của browser*/
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    height: 40px;
    padding-right: 40px; /* chừa chỗ cho icon */
}

/* mũi tên dropdown */
.select-wrapper::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 22px;
    width: 0;
    height: 0;
    pointer-events: none;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #888;

    transform: translateY(-50%);
}
.selectedBox.placeholder.error{
    border-color: #e74c3c;
}
.selectedBox.error::after{
    top: 22px !important;
}
label.checkbox-modern.mar-bottom-10 {
    display: grid;
    grid-template-columns: 2% 1fr;
    padding-top: 5px;
}

/************/
/* ===== ERROR ===== */
.form-group .error {
    border-color: #e74c3c;
}

.form-group .error-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    left: 10%;
    bottom: -80px;/* nằm dưới */
    transform: translateX(-50%);
    min-width: 200px;
    padding: 14px 22px;
    text-align: center;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
}
.toast-success {
    background: #2ecc71;
}
.toast.show {
    bottom: 30px; /* trượt lên */
    opacity: 1;
}
.toast.hide {
    bottom: -80px;/* trượt xuống */
    opacity: 0;
}
.topimg {
    text-align: center;
}
.topimg img {
    max-width: 280px;
}

.toptext {
    text-align: center;
    font-size: 30px;
    font-style: italic;
    margin: 20px 0 30px 0;
}
.col-md-12.dangnhap-button {
    text-align: center;
    margin: 20px 0 60px;
}
.dk-hotrothem {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 cột đều nhau */
    align-items: center;                   /* căn giữa theo chiều dọc */
    /*justify-items: center;*/                 /* căn giữa nội dung mỗi cột */
}
.dk-hotrothem a {
    color: #212121;
    font-size: 14px;
}
.dk-hotrothem a:hover{
    font-weight: bold;
}
.dk-hotrothem a:first-child {
    text-align: left;
}
.dk-hotrothem a:last-child {
    text-align: right;
}


.global-thanhvien{
    background: aliceblue;
    padding: 10px 0;
}
.header-thanhvien{
    width: 1000px;
    margin: 0 auto;
}
.thanhvien-logo img {
    max-width: 250px;
}

.header-thanhvien {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: relative;
    height: 70px; /* tùy chỉnh */
}

.thanhvien-logo {
    grid-column: 1;
}
.thanhvien-text {
    grid-column: 2;
    font-size: 20px;
    font-weight: 600;
    padding-left: 100px;
}

