.form-overlay {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    width: calc(488px - 80px);
    /* height: calc(562px - 87px); */
    min-height: calc(562px - 87px);
    background-image: url('../images/ldp-fcm/bg-form.png');
    background-size: 125%;
    background-repeat: no-repeat;
    background-position: center 98%;
    /* padding: 40px 40px 47px 40px; */
    padding: 25px 40px 25px 40px;
    border-radius: 20px;
    z-index: 10;
    color: white;
    border: 3px solid rgba(255,252,255,0.3);
}


.form-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;

}

.form-subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
}

.form-overlay input {
    width: calc(100% - 30px);
    padding: 0px 15px;
    line-height: 40px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #fff;
    color: #333;
}
.form-overlay .text-arlet {
    color: red;
    font-size: 14px;
    padding-top: 1px;
    line-height: 17px;
    /* display: none; */
}
/* Checkbox dịch vụ nằm ngang */
.checkbox-group-top {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}
.checkbox-group-top .check-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 180px;
    height: 140px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.2s, border 0.2s;
    border: 2px solid transparent;
    margin-bottom: 0;
    padding: 0 8px;
}
.checkbox-group-bottom {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.checkbox-group-bottom .check-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 220px;
    height: 140px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.2s, border 0.2s;
    border: 2px solid transparent;
    margin-bottom: 0;
    padding: 0 8px;
}
/* Căn chỉnh riêng cho 2 checkbox dưới */
.checkbox-group-bottom .check-card1 {
    flex: 1 1 0;
    min-width: 0;
    max-width: 220px;
    height: 140px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.2s, border 0.2s;
    border: 2px solid transparent;
    margin-bottom: 0;
    padding: 0 8px;
    /* Bạn có thể chỉnh width, margin, vị trí... ở đây */
}

/* Hiển thị vòng tròn tick cho check-card1 giống check-card */
.checkbox-group-bottom label.check-card1 input[type="checkbox"] {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}
.checkbox-group-bottom label.check-card1 .checkbox-circle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ff9800;
    background: #fff;
    z-index: 1;
    transition: background 0.2s;
}
.checkbox-group-bottom label.check-card1 input[type="checkbox"]:checked ~ .checkbox-circle {
    background: url('../images/ldp-fcm/checkbox-checked.png') center center no-repeat #ff9800;
    background-size: 18px 18px;
    border-color: #ff9800;
}

/* Hiệu ứng khi checkbox được chọn: thay bg ô tròn bằng .checkbox-checked */
.check-card input[type="checkbox"] {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}
.check-card .checkbox-circle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ff9800;
    background: #fff;
    z-index: 1;
    transition: background 0.2s;
}
.check-card input[type="checkbox"]:checked ~ .checkbox-circle {
    background: url('../images/ldp-fcm/checkbox-checked.png') center center no-repeat #ff9800;
    background-size: 18px 18px;
    border-color: #ff9800;
}



/* Flexbox cho form nhập thông tin */
.fpt-form-redesign .form-row1 {
    display: flex;
    gap: 12px;
    padding-bottom: 5px;
}
.fpt-form-redesign .form-row1>div{
    width: 100%;
    margin-bottom: 15px;

    position: relative;
    display: inline-block;
}
.fpt-form-redesign .form-row1>div input {
  padding-right: 18px; /* chừa chỗ cho dấu * */
}

.fpt-form-redesign .form-row2 {
    flex: 1;
    display: flex;
    min-width: 0;
    padding-bottom: 5px;

}
.fpt-form-redesign .form-row2>div {
    width: 100%;
    margin-bottom: 10px;

    position: relative;
  display: inline-block;

}
.fpt-form-redesign input::placeholder {
  opacity: 0;
}
.required-star {
  position: absolute;
  left: 15px;
  top: 12px;
  color: #666;
  pointer-events: none;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  display: block;
}
.required-star sup{
  color: red;
  font-size: 15px;
  top: -4px;

}
.fpt-form-redesign .form-row1>div input:not(:placeholder-shown) + .required-star {
  display: none;
}
.fpt-form-redesign .form-row2>div input:not(:placeholder-shown) + .required-star {
  display: none;
}
.s{
    opacity: 0;
}

.service-title {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}
.service-title sup{
    color: red;
}
.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 18px;
}

.checkbox-grid label.check-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    width: 180px;
    height: 117px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.2s, border 0.2s;
    border: 2px solid transparent;
    margin-bottom: 0;
    padding: 0 8px;
}
.checkbox-grid label.check-card input[type="checkbox"] {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}
.checkbox-grid label.check-card::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #FF7E00;
    background: #fff;
    z-index: 1;
}
.checkbox-grid label.check-card input[type="checkbox"]:checked ~ span,
.checkbox-grid label.check-card input[type="checkbox"]:checked ~ img {
    /* font-weight: bold;
    color: #ff9800; */
}
.checkbox-grid label.check-card:has(input[type="checkbox"]:checked) {
    border: 2px solid #ff9800;
    box-shadow: 0 4px 16px rgba(255,152,0,0.18);
}
.checkbox-grid label.check-card img {
    display: block;
    margin: 0 auto 8px auto;
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.checkbox-grid label.check-card span {
    text-align: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
/* Chia 3 ô trên, 2 ô dưới */
.checkbox-grid label.check-card {
    flex: 0 0 calc(33.333% - 20px);
    margin-right: 0;
}
.checkbox-grid label.check-card:nth-child(-n+3) {
    /* margin-bottom: 20px; */
}
.checkbox-grid label.check-card:nth-child(n+4) {
    /* flex: 0 0 calc(50% - 20px); */
}

.checkbox-grid .checkbox-group-top:nth-last-of-type(1) label.check-card {
    flex: 0 0 calc(50% - 12px);
    width: 50%;
    max-width: 50%;
}

.check-item {
    background: white;
    color: black;
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.check-item img {
    width: 28px;
    height: 28px;
    transition: background 0.2s, border 0.2s;
}
    .checkbox-grid label.check-card input[type="checkbox"]:checked ~ .checkbox-circle {
        display: none;
    }
    .checkbox-grid label.check-card input[type="checkbox"]:checked ~ span::after {
        content: "";
        position: absolute;
        top: 7px;
        right: 7px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: url('../images/ldp-fcm/checkbox-checked.png') center center no-repeat;
        background-size: 22px;
        /* border: 2px solid #ff9800; */
        z-index: 2;
    }



.check-item.active {
    border-color: #FF7300;
    background: #FFF0E0;
    font-weight: bold;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #FFD600; /* vàng */ 
    color: black;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit:hover {
    background: #ffcc00;
}

.fpt-form-redesign .div-btn{
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    left: 0px;
}
.btn-submit-redesign {
    display: flex;
    align-items: center;
    line-height: 50px;
    background: #FFDF00;
    color: #FF7E00;
    border-radius: 60px;
    font-weight: 600;
    padding: 0 24px;
    cursor: pointer;
}
.btn-submit-redesign .arrow {
    font-size: 18px;
    margin-left: 10px;
}


.form-overlay .div-img {
    width: 100%;
    margin: 20px 0 25px;
    display: flex;
    justify-content: center;
}
.checkbox-grid .text-arlet-bottom {
    color: red;
    font-size: 14px;
    width: 100%;
    margin-top: -12px;
}


/* popup thất bại  */
#fmc_popup_fail .form-overlay {
    height: auto;
    min-height: auto;
}
#fmc_popup_fail .form-overlay .div-img {
    margin-bottom: 0;
}
/* end popup thất bại  */


@media screen and (max-width: 1024px) {
    .form-overlay {
        right: 15px;
    }
}
@media screen and (max-width: 1024px) {
    .form-overlay {
        /* top: 50%;
        left: 50%;
        right: unset;
        transform: translate(-50%, -50%); */
        width: 360px;
        padding: 20px;
    }
}
@media screen and (max-width: 768px) {
    .form-overlay .text-arlet {
        padding-top: 2px;
    }
    .fpt-form-redesign .form-row1{
    padding-bottom: 0;
    }
    .checkbox-grid {
        gap: 12px;
        margin-bottom: 12px;
    }
    .checkbox-group-top {
        gap: 17px;
    }
    .form-overlay {
        padding: 16px 15px;
    }
    .btn-submit-redesign {
        line-height: 42px;
    }
    .checkbox-grid .text-arlet-bottom {
        margin-top: -9px;
    }
    .fpt-form-redesign .form-row2>div {
        margin-bottom: 4px;
    }
    .fpt-form-redesign .div-btn {
        position: unset;
        margin-top: 11px;
    }
}
@media screen and (max-width: 540px) {
    /* banner  */

    /* .parent-banner-fcm .swiper-pagination {
        bottom: 616px;
    }
    .parent-banner-fcm .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    } */

    .form-overlay {
        /* top: 580px; */
        top: 508px;
        width: calc(100% - 80px);
        /* padding: 40px 18px; */
        padding: 25px 18px;
        background-size: 140%;
        background-position: center center;
        border: 3px solid rgba(255,252,255,0.2);
    }
    .form-title {
        font-size: 24px;

    }

    .form-subtitle {
        font-size: 14px;
    }
    .checkbox-grid label.check-card {
        height: 92px;
    }
    .popup-overlay .popup-close {
        right: 13px;
    }

    .popup-overlay .popup-box {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
    }
    .form-overlay .div-img img {
        width: 200px;
    }
}


/* css riêng cho mobile form đăng ký  */
@media screen and (max-width: 768px) {

    .service-title {
        /* display: none; */

    }
    .checkbox-grid {
        /* display: none; */
    }
    .fpt-form-redesign .form-row1 {
        /* display: block; */
    }

    .form-overlay {
        min-height: 200px;
    }
}
@media screen and (max-width: 540px) {

    .service-title {
        display: none;

    }
    .checkbox-grid {
        display: none;
    }
    .fpt-form-redesign .form-row1 {
        display: block;
    }
}