/* css/survey.css - 调查问卷样式 */

/* 问卷模态框背景 */
.survey-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

/* 问卷模态框内容 */
.survey-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

/* 问卷头部 */
.survey-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.survey-header h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
}

.survey-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.survey-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.survey-close-btn:hover {
    opacity: 1;
}

/* 问卷主体 */
.survey-body {
    padding: 30px;
}

/* 优势说明区域 */
.survey-advantages {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.survey-advantages h4 {
    color: #667eea;
    font-size: 16px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.survey-advantages ul {
    margin: 0;
    padding-left: 20px;
}

.survey-advantages li {
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.survey-advantages li:last-child {
    margin-bottom: 0;
}

/* 问卷表单 */
.survey-form .form-group {
    margin-bottom: 25px;
}

.survey-form label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 15px;
}

.required-label::after {
    content: " *";
    color: #e53e3e;
}

/* 评分星星 */
.rating-stars {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rating-star {
    width: 40px;
    height: 40px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #718096;
    background: white;
    transition: all 0.2s;
}

.rating-star:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.1);
}

.rating-star.selected {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.rating-text {
    margin-left: 15px;
    color: #718096;
    font-size: 14px;
}

/* 多选按钮组 */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.radio-item {
    position: relative;
}

.radio-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-item label {
    display: block;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    margin: 0;
    background: white;
    text-align: center;
    font-size: 15px;
}

.radio-item input[type="checkbox"]:checked + label {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.radio-item label:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.radio-item input[type="checkbox"]:checked + label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 输入框样式 */
.form-control-custom {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.form-control-custom:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.other-input-container {
    margin-top: 10px;
    display: none;
}

.other-input-container.show {
    display: block;
}

/* 价格输入 */
.price-input-wrapper {
    position: relative;
}

.price-input-wrapper::before {
    content: "¥";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-weight: 600;
}

.price-input-wrapper .form-control-custom {
    padding-left: 35px;
}

/* 问卷底部 */
.survey-footer {
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-survey {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-survey-cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-survey-cancel:hover {
    background: #cbd5e0;
}

.btn-survey-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-survey-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-survey-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 感谢页面 */
.survey-thank-you {
    text-align: center;
    padding: 40px 30px;
}

.thank-you-icon {
    font-size: 60px;
    color: #48bb78;
    margin-bottom: 20px;
}

.survey-thank-you h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 24px;
}

.survey-thank-you p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 15px;
}

.vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 15px;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .survey-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .survey-header {
        padding: 20px;
    }
    
    .survey-body {
        padding: 20px;
    }
    
    .rating-stars {
        flex-wrap: wrap;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .survey-footer {
        padding: 15px 20px;
    }
}