/* AI智能报价表单样式 */

.quote-page {
    padding: 40px 0;
    background: #f5f7fa;
}

/* 页面头部 */
.quote-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.quote-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.quote-subtitle {
    font-size: 16px;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.quote-trust-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
}

/* 表单容器 */
.quote-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 表单板块 */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    margin-right: 10px;
}

.required {
    color: #ff4d4f;
    margin-left: 5px;
}

.section-hint {
    font-size: 14px;
    color: #666;
    margin: -10px 0 20px 0;
}

/* 子板块 */
.sub-section {
    margin-bottom: 25px;
}

.sub-title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin: 0 0 15px 0;
}

/* 单选/复选框组 */
.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.radio-item,
.checkbox-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-item:hover,
.checkbox-item:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-item input[type="radio"]:checked + .radio-label,
.checkbox-item input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.radio-item:has(input:checked),
.checkbox-item:has(input:checked) {
    border-color: #667eea;
    background: #f0f2ff;
}

.radio-label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.checkbox-item span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.price-tag {
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.price-info {
    color: #52c41a;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* 功能分组 */
.feature-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}

.feature-group-title {
    font-size: 15px;
    font-weight: 600;
    color: #666;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

/* 全选按钮 */
.btn-select-all {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-all:hover {
    background: #667eea;
    color: white;
}

/* 文本域 */
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* 表单行 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-col input[type="text"] {
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-col input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.form-tip {
    font-size: 13px;
    color: #999;
    margin: 10px 0 0 0;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

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

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 底部信任文案 */
.quote-footer-trust {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    color: #d48806;
    font-size: 14px;
}

/* 错误提示 */
.form-section.error {
    border-color: #ff4d4f;
    background: #fff1f0;
    padding: 15px;
    border-radius: 8px;
}

.form-section.error .section-title {
    color: #ff4d4f;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quote-page {
        padding: 20px 0;
    }

    .quote-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .quote-title {
        font-size: 24px;
    }

    .quote-form {
        padding: 20px;
    }

    .radio-group,
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .btn-submit {
        font-size: 16px;
        padding: 14px;
    }
}
