.ctf_star_form {
    clear: both;
}
.ctf_list_checkbox  span.wpcf7-list-item {
    display: block;
    margin-bottom: 5px;
    margin-top: 10px;
}
body .ctf_list_checkbox .wpcf7-list-item-label:before {
    border: 2px solid #43b728;
    width: 14px;
    min-width: 14px;
    height: 14px;
    position: absolute;
    border-radius: 50%;
    top: 0;
}

body .ctf_list_checkbox input[type="radio"] {
    opacity: 0;
}

body .ctf_list_checkbox input[type="radio"]:checked + .wpcf7-list-item-label:before {
    background: #43b728;
    box-shadow: 0px 0 0 2px #fff inset;
}
.ctf_survey {
    margin: 0;
    padding: 90px 30px;
    background-image: url(../img/Food_Store_1.png);
    display: block;
}
.ctf_survey_form {
    background: rgba(255,255,255,0.8);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    width: 90%;
}
.wpcf7-submit {
    background: #43b728;
}

.ctf_left_content {
    background: #eee;
    padding: 20px;
}

.ctf_left_content h4 {
    background: #fff;
    text-align: center;
    padding: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    color: #fe0000;
}

.banner_title {
    background: #fe0000;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    padding-top: 50px;
    padding-bottom: 50px;
    color: #fff;
    margin-bottom: 30px;
}

.banner_title h4 {
    width: 100%;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

h4.ctf_title {
    text-align: center;
    padding: 12px;
    margin-bottom: 15px;
    background: #fe0000;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
}

.submit_recruiment  input.wpcf7-submit {
    width: 100%;
    font-size: 16px;
    min-height: 45px;
    margin-top: 30px;
}

.wpcf7 label.ctf_inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ctf_inline_line span {
    display: inline-block;
}

.ctf_inline_line span:first-child {
    font-weight: 600;
    margin-right: 20px;
}
@media (min-width: 992px){
    .wpcf7 label.ctf_inline > span:first-child {
        font-weight: 600;
        width: 200px;
        padding-top: 7px;
    }

    .wpcf7 label.ctf_inline > span:not(:first-child) {
        width: calc(100% - 220px);
    }
}
/* Chỉ áp dụng cho radio được JavaScript xác định là rating */
.wpcf7-radio[data-star-rating="true"] {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}

.wpcf7-radio[data-star-rating="true"] .wpcf7-list-item {
    display: inline-block;
    margin: 0 !important;
}

/* Giữ radio hoạt động nhưng ẩn khỏi giao diện */
.wpcf7-radio[data-star-rating="true"] input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Ẩn chữ 1 star, 2 stars... */
.wpcf7-radio[data-star-rating="true"] .wpcf7-list-item-label {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 28px;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 28px;
    cursor: pointer;
}

/* Ghi đè icon radio cũ thành ngôi sao */
.wpcf7-radio[data-star-rating="true"] .wpcf7-list-item-label::before {
    content: "★" !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: #c8c8c8 !important;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    line-height: 28px !important;
    transform: none !important;
    transition: color 0.15s ease;
}

/* Chỉ áp dụng cho radio được JavaScript xác định là rating */
.wpcf7-radio[data-star-rating="true"] {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}

.wpcf7-radio[data-star-rating="true"] .wpcf7-list-item {
    display: inline-block;
    margin: 0 !important;
}

/* Giữ radio hoạt động nhưng ẩn khỏi giao diện */
.wpcf7-radio[data-star-rating="true"] input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Ẩn chữ 1 star, 2 stars... */
.wpcf7-radio[data-star-rating="true"] .wpcf7-list-item-label {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 28px;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 28px;
    cursor: pointer;
}

/* Ghi đè icon radio cũ thành ngôi sao */
.wpcf7-radio[data-star-rating="true"] .wpcf7-list-item-label::before {
    content: "★" !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: #c8c8c8 !important;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    line-height: 28px !important;
    transform: none !important;
    transition: color 0.15s ease;
}

/* Hiển thị tiêu đề và nhóm sao trên cùng một hàng */
.ctf_star {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctf_star > span:first-child {
    flex-shrink: 0;
}

/* Nhóm 5 sao */
.ctf_star .wpcf7-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ctf_star .wpcf7-list-item {
    display: inline-block;
    margin: 0 !important;
}

/* Ẩn radio gốc nhưng vẫn giữ khả năng click */
.ctf_star .wpcf7-list-item input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* Kích thước vùng click */
.ctf_star .wpcf7-list-item label {
    display: block;
    margin: 0;
    cursor: pointer;
}

.ctf_star .wpcf7-list-item-label {
    display: block;
    width: 18px;
    height: 18px;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 18px;
    cursor: pointer;
}

.ctf_star .wpcf7-list-item-label::before {
    content: "★" !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #cccccc !important;
    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: normal !important;
    line-height: 20px !important;
    transform: none !important;
    transition: color 0.15s ease,
        transform 0.15s ease;
}
.ctf_star  span.wpcf7-form-control-wrap {
    display: inline-block;
}

.ctf_star .wpcf7-list-item-label::after {
    content: none !important;
    display: none !important;
}

.ctf_star .wpcf7-radio:has(
    .wpcf7-list-item:nth-child(1) input:checked
) .wpcf7-list-item:nth-child(-n + 1) .wpcf7-list-item-label::before,


.ctf_star .wpcf7-radio:has(
    .wpcf7-list-item:nth-child(2) input:checked
) .wpcf7-list-item:nth-child(-n + 2) .wpcf7-list-item-label::before,


.ctf_star .wpcf7-radio:has(
    .wpcf7-list-item:nth-child(3) input:checked
) .wpcf7-list-item:nth-child(-n + 3) .wpcf7-list-item-label::before,


.ctf_star .wpcf7-radio:has(
    .wpcf7-list-item:nth-child(4) input:checked
) .wpcf7-list-item:nth-child(-n + 4) .wpcf7-list-item-label::before,


.ctf_star .wpcf7-radio:has(
    .wpcf7-list-item:nth-child(5) input:checked
) .wpcf7-list-item:nth-child(-n + 5) .wpcf7-list-item-label::before {
    color: #36bd32 !important;
}
.ctf_star > span {
    min-width: 150px;
    display: inline-block;
}
.ctf_star .wpcf7-list-item label:hover
.wpcf7-list-item-label::before {
    transform: scale(1.15) !important;
}

.ctf_star .wpcf7-list-item input[type="radio"]:focus-visible
+ .wpcf7-list-item-label {
    outline: 2px solid #36bd32;
    outline-offset: 2px;
}