/* 提交评测页面专用样式 */

/* 提交流程指示器 */
.submit-flow {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    transition: color 0.3s ease;
}

.flow-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.1);
}

.flow-step.active .step-title {
    color: #667eea;
    font-weight: 600;
}

.flow-step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.flow-step.completed .step-title {
    color: #28a745;
}

/* 连接线 */
.flow-line {
    position: absolute;
    top: 1.5rem;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.flow-line.completed {
    background: #28a745;
}

/* 表单区域样式 */
.form-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSection 0.5s ease-out forwards;
}

@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.section-desc {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 表单分组 */
.form-group-section {
    margin-bottom: 2rem;
}

.group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid #667eea;
}

/* 自定义输入样式 */
.form-control.player-name {
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control.player-name:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-item {
    flex: 1;
    min-width: 120px;
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-label {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.radio-item input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.radio-label:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

/* 年龄输入 */
.age-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.age-input {
    flex: 1;
}

.age-suffix {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

/* 身体数据输入 */
.physical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.physical-input {
    position: relative;
}

.input-addon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
}

.physical-input input {
    padding-right: 3rem;
}

/* 体测数据区域 */
.test-data-section {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.test-data-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.test-data-title::before {
    content: '⚡';
    margin-right: 0.5rem;
}

.test-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* 评分预览 */
.score-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-item {
    text-align: center;
}

.preview-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.preview-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.preview-bar {
    height: 0.5rem;
    background: #e9ecef;
    border-radius: 0.25rem;
    overflow: hidden;
}

.preview-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

/* 评价文本域 */
.comment-section {
    position: relative;
}

.comment-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.comment-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.comment-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* 联系信息输入 */
.contact-section {
    background: #fff3cd;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ffeaa7;
}

.contact-title {
    color: #856404;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-title::before {
    content: '🔒';
    margin-right: 0.5rem;
}

.contact-help {
    color: #856404;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-prev {
    background: #6c757d;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 加载动画 */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 错误提示 */
.form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.form-error.show {
    display: block;
}

/* 成功提示 */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    animation: fadeInUp 0.5s ease-out;
}

/* 提交说明 */
.submit-notice {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #0d47a1;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
    text-align: center;
}

.notice-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.notice-content {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .submit-flow {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .flow-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .flow-line {
        display: none;
    }

    .flow-step {
        flex: none;
    }

    .form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .physical-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .submit-flow {
        padding: 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .step-title {
        font-size: 0.8rem;
    }

    .comment-textarea {
        min-height: 150px;
    }
}

/* 动画效果 */
.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

/* 输入验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: 2.5rem;
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%2328a745' viewBox='0 0 8 8'%3e%3cpath d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: 2.5rem;
}