#main {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Bai Jamjuree', sans-serif;
    padding-top: 50px;
    background-image: url('./img/backgroud.jpeg'); /* Đường dẫn ảnh */
    background-size: cover; /* Căn ảnh để bao phủ toàn bộ khung hình */
    background-position: center; /* Đặt vị trí trung tâm */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Cố định ảnh nền khi cuộn */
    color: rgba(0, 0, 0, 0.785);
}

.main_content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.content {
    width: 850px;
    background-color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 20px;
    position: relative;
    border-radius: 10px;
    height: auto; /* Tự điều chỉnh chiều cao theo nội dung */
    padding-bottom: 50px;
    margin-bottom: 50px;
}

.title {
    padding: 16px 50px 30px 50px;
    background-color: rgba(255, 255, 255, 0.95);
    /* color: rgb(255, 255, 255); */
    border-radius: 10px 10px 0px 0px;
}

.title_head {
    display: flex;
    justify-items: center;
    flex-wrap: wrap;
}

.title_content {
    display: flex;
    align-items: center;
    padding: 20px;
}

.title_logo_img {
    width: 200px;
}

.title_info {
    margin-top: 6px;
    font-size: 16px;
    text-align: justify;
}

.question {
    padding: 20px 50px;
    font-size: 16px;
}

.input_general {
}

.lable {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0px;
    margin-top: 39px;
}

.inputText {
    display: block;
    width: 100%;
    margin-left: 20px;
    font-family: 'Bai Jamjuree', sans-serif;
    background: rgb(255, 255, 255);
    margin: auto 0px;
    font-size: 15px;
    line-height: 32px;
    border: none;
    cursor: text;
    color: rgb(63, 63, 63);
    height: 32px;
    border-radius: 5px;
    text-align: left;
    padding-left: 10px;
    transition: border 0.3s ease;
}

.inputTextarea {
    display: block;
    width: 100%;
    margin-left: 20px;
    font-family: 'Bai Jamjuree', sans-serif;
    background: rgb(255, 255, 255);
    margin: auto 0px;
    font-size: 15px;
    line-height: 28px;
    border: none;
    cursor: text;
    color: rgb(63, 63, 63);
    border-radius: 5px;
    text-align: left;
    padding-left: 10px;
    transition: border 0.3s ease;
}

input:focus {
    outline: none; /* Loại bỏ viền khi focus */
    border: none; /* Bỏ viền khi focus, nếu cần */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.ques_all {
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.ques {
    min-width: 60px;
    width: 6%;
    text-align: center;
    font-weight: bold;
    color: black;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.radio_input {
    display: flex;
    /* padding: 8px; */
    cursor: pointer;
}

.radio_input > label {
    padding: 8px;
    cursor: pointer; /* Thay đổi con trỏ chuột khi hover */
}

input[type='radio'] {
    transform: scale(1.5); /* Phóng to radio button */
    cursor: pointer; /* Thay đổi con trỏ chuột khi hover */
    border: none !important;
    margin-top: 5px;
}

input[type='radio']:checked {
    background-color: #000; /* Đổ màu nền đen khi được chọn */
}

.btn3 {
    font-family: 'Bai Jamjuree', sans-serif;
    box-sizing: border-box;
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 3px;
    outline: none;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    background-color: rgb(39, 170, 225);
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
        0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}

.language {
    font-size: 20px;
    padding: 5px 10px;
    color: rgb(61, 86, 106);
    text-decoration: none;
    background-color: #dbdbdb;
    margin: 0px 10px;
    border-radius: 6px;
}

select {
    cursor: pointer !important;
}

.ratingStar {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}
.ratingStar input {
    display: none;
}
.ratingStar label {
    font-size: 68px;
    color: #ccc;
    cursor: pointer;
    padding: 10px 20px;
    padding-top: 20px;
    transition: color 0.3s, transform 0.2s, text-shadow 0.2s;
}
.ratingStar input:checked ~ label,
.ratingStar label:hover,
.ratingStar label:hover ~ label {
    color: gold;
    transform: scale(1.1);
}

/* ===== Thank You Popup Styles ===== */
.thankyou-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.thankyou-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border-radius: 24px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 60px rgba(39, 170, 225, 0.2);
    max-width: 520px;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: popupSlide 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupSlide {
    from {
        transform: scale(0.5) translateY(-80px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.thankyou-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #27aae1, #00d4aa, #27aae1, #00d4aa);
    background-size: 300% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.thankyou-popup::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(39, 170, 225, 0.05) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.thankyou-icon {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #27aae1 0%, #00d4aa 100%);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(39, 170, 225, 0.4),
        inset 0 -3px 10px rgba(0, 0, 0, 0.1);
}

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(39, 170, 225, 0.4),
            0 0 0 0 rgba(39, 170, 225, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(39, 170, 225, 0.5),
            0 0 40px 15px rgba(39, 170, 225, 0.1);
    }
}

.thankyou-icon svg {
    width: 55px;
    height: 55px;
    stroke: white;
    stroke-width: 3;
    fill: none;
}

.thankyou-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #27aae1, #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.thankyou-subtitle {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thankyou-message {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 30px;
    padding: 0 10px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.thankyou-hearts {
    font-size: 36px;
    animation: heartBeat 1.2s ease infinite;
    margin-bottom: 10px;
}

@keyframes heartBeat {
    0%,
    100% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.15);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.1);
    }
    60% {
        transform: scale(1);
    }
}

.thankyou-countdown {
    font-size: 14px;
    color: #888;
    margin-top: 25px;
    padding: 12px 25px;
    background: rgba(39, 170, 225, 0.08);
    border-radius: 30px;
    display: inline-block;
}

.thankyou-countdown span {
    font-weight: 700;
    color: #27aae1;
    font-size: 16px;
}

.thankyou-logo {
    width: 130px;
    margin-top: 25px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.thankyou-logo:hover {
    opacity: 1;
}

/* Confetti effect decorations */
.thankyou-popup .decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.thankyou-popup .star {
    position: absolute;
    font-size: 20px;
    animation: floatStar 3s ease-in-out infinite;
}

.thankyou-popup .star:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}
.thankyou-popup .star:nth-child(2) {
    top: 15%;
    right: 15%;
    animation-delay: 0.5s;
}
.thankyou-popup .star:nth-child(3) {
    bottom: 20%;
    left: 8%;
    animation-delay: 1s;
}
.thankyou-popup .star:nth-child(4) {
    bottom: 25%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes floatStar {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
}
