:root {
    --primary: #1A73E8; /* Màu xanh lam chủ đạo theo ảnh */
    --primary-hover: #1557B0;
    --bg-color: #FFFFFF;
    --text-main: #000000;
    --border-color: #EEEEEE;
    --required-color: #D32F2F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif; /* Đổi font sang chuẩn hơn với ảnh */
    background: #F3F4F6; /* Nền ngoài có thể hơi xám nhẹ để form nổi bật lên */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: 600px;
}

.form-wrapper, .thank-you-wrapper {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 24px;
}

.question-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.required {
    color: var(--required-color);
}

/* Khung viền xám bọc các options */
.options-box {
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.options-box .radio-label:last-child, 
.options-box .checkbox-label:last-child {
    border-bottom: none;
}

/* Ẩn viền bottom nếu kề bên input Góp ý khác */
.radio-label + .other-input,
.checkbox-label + .other-input {
    border-top: none;
}

input[type="radio"], input[type="checkbox"] {
    margin-right: 12px;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Text Input "Góp ý khác" bên trong khung */
.other-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
}

.other-input:focus {
    outline: none;
    background-color: #FAFAFA;
}

.other-input::placeholder {
    color: #999;
}

/* Text Input riêng lẻ ở Câu 4 */
.standalone-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 14px;
    font-family: inherit;
}

.standalone-input:focus {
    outline: none;
    border-color: #CCCCCC;
}

/* Nút Submit */
.submit-container {
    text-align: center;
    margin-top: 40px;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    min-width: 180px;
}

button:hover {
    background: var(--primary-hover);
}

button:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

/* Văn bản liên hệ dưới form */
.thank-you-text {
    font-style: italic;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 14px;
}

.hotline-text {
    font-style: italic;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

/* Loader */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #FFFFFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Thank you screen */
.thank-you-wrapper {
    text-align: center;
    padding: 60px 40px;
}

.thank-you-wrapper h2 {
    color: var(--primary);
    margin-bottom: 16px;
}
