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

/* Mobile Body */
.mobile-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Survey Container */
.survey-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Header */
.survey-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.survey-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.survey-header p {
    font-size: 14px;
    color: #999;
}

/* Form */
.survey-form {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Error Box */
.error-box {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    color: #f5222d;
    font-size: 14px;
}

.error-box p {
    margin-bottom: 5px;
}

.error-box p:last-child {
    margin-bottom: 0;
}

/* Form Section */
.form-section {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.form-section.hidden {
    display: none;
}

/* Progress Bar */
.progress-bar {
    padding: 20px 15px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.progress-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.progress-step.active {
    background: #1890ff;
    color: white;
}

.progress-step.completed {
    background: #52c41a;
    color: white;
}

.progress-line {
    width: 30px;
    height: 2px;
    background: #e8e8e8;
    margin: 0 5px;
}

.progress-text {
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* Button Styles */
.btn-next, .btn-prev {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-next {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
}

.btn-prev {
    background: #f0f0f0;
    color: #666;
    margin-right: 10px;
}

.btn-next:active, .btn-prev:active {
    transform: scale(0.98);
}

.form-actions {
    display: flex;
    padding: 20px 15px;
    background: #fafafa;
}

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

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

.weight {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

/* Form Group */
.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.required {
    color: #f5222d;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    background-color: white;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.amount-hint {
    font-size: 13px;
    color: #1890ff;
    margin-top: 5px;
    margin-bottom: 0;
}

/* 短信验证码提示 */
.sms-status-msg {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 0;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    line-height: 1.5;
    display: none;
}

.sms-status-msg.error {
    color: #cf1322 !important;
    background: #fff1f0;
    border-left-color: #ff4d4f;
}

.sms-status-msg.success {
    color: #237804 !important;
    background: #f6ffed;
    border-left-color: #52c41a;
}

.sms-status-msg.info {
    color: #0958d9 !important;
    background: #e6f4ff;
    border-left-color: #1677ff;
}

/* 验证码输入框容器 */
.verify-code-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verify-code-wrapper input {
    flex: 1;
}

/* 发送验证码按钮 */
.btn-send-code {
    flex-shrink: 0;
    padding: 12px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-send-code:hover {
    background: #096dd9;
}

.btn-send-code:active {
    transform: scale(0.98);
}

.btn-send-code.disabled,
.btn-send-code:disabled {
    background: #bfbfbf;
    cursor: not-allowed;
}

/* 响应式调整验证码按钮 */
@media (max-width: 375px) {
    .btn-send-code {
        padding: 10px 12px;
        font-size: 13px;
    }

    .verify-code-wrapper {
        gap: 8px;
    }
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-item:active {
    background: #e6f7ff;
}

.radio-item input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #1890ff;
}

.radio-item input[type="radio"]:checked + span {
    color: #1890ff;
    font-weight: 500;
}

.radio-item:has(input:checked) {
    border-color: #1890ff;
    background: #e6f7ff;
}

.radio-item span {
    font-size: 15px;
    color: #333;
}

.btn-submit {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Form Footer */
.form-footer {
    padding: 15px;
    text-align: center;
}

.form-footer p {
    font-size: 12px;
    color: #999;
}

/* Result Page */
.result-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px;
}

.result-header {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #52c41a;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.result-header h1 {
    font-size: 22px;
    color: #333;
}

.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.result-amount-hero {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.hero-label {
    font-size: 14px;
    opacity: 0.92;
    letter-spacing: 1px;
}

.hero-value {
    font-size: 40px;
    font-weight: bold;
    margin: 10px 0 8px;
}

.hero-subtitle {
    font-size: 13px;
    opacity: 0.92;
}

.result-info {
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #999;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 14px;
}

.result-suggestion {
    padding: 20px;
    background: #fafafa;
}

.result-suggestion h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.result-suggestion p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.result-contact {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fffaf0;
}

.result-contact h3 {
    font-size: 14px;
    color: #8a5a00;
    margin-bottom: 10px;
}

.result-contact p {
    font-size: 16px;
    font-weight: 600;
    color: #d46b08;
    line-height: 1.6;
}

.result-footer {
    text-align: center;
    padding: 20px;
}

.result-footer p {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.btn-retry {
    display: inline-block;
    padding: 10px 30px;
    background: #f0f0f0;
    color: #666;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 375px) {
    .survey-header h1 {
        font-size: 20px;
    }

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

    .radio-item span {
        font-size: 14px;
    }
}
