/* 人才招聘申请页面样式 */

.job-application-main {
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
    padding: 40px 20px;
    margin-top: 80px;
}

.job-application-container {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.job-application-header {
    background: #ffffff;
    padding: 30px 40px;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
}

.job-application-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.job-application-form {
    padding: 40px;
    max-width: 100%;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    display: block;
    position: relative;
}

.required {
    color: #ff4757;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 67px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 20px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group textarea {
    width: 100%;
    height: 332px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 20px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.radio-group {
    display: flex;
    gap: 20px;
    padding: 8px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    user-select: none;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}



.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e1e5e9;
}

.submit-btn {
    width: 302px;
    background: rgba(242, 243, 245, 1);
    color: rgba(156, 163, 175, 1);
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    margin: 15px auto 0 auto;
    display: block;
    transition: all 0.3s ease;
}

.submit-btn.enabled {
    background: linear-gradient(122.18deg, rgba(142, 136, 255, 1) 0%, rgba(91, 131, 255, 1) 45.14%, rgba(101, 178, 255, 1) 100%);
    color: white;
    cursor: pointer;
}

.submit-btn.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.cancel-btn {
    width: 302px;
    background: rgba(242, 243, 245, 1);
    color: rgba(156, 163, 175, 1);
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 15px auto 0 auto;
    display: block;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(232, 234, 237, 1);
    transform: translateY(-1px);
}

/* 成功提示弹窗样式 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal.show {
    opacity: 1;
}

.success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.success-modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    border: 1px solid #e1e5e9;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #10ac84;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    margin: 0 auto 20px;
    font-weight: bold;
}

.success-modal-content h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.success-modal-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.success-btn {
    background: linear-gradient(122.18deg, rgba(142, 136, 255, 1) 0%, rgba(91, 131, 255, 1) 45.14%, rgba(101, 178, 255, 1) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .job-application-main {
        padding: 20px 10px;
        margin-top: 70px;
    }
    
    .job-application-header {
        padding: 20px;
    }
    
    .job-application-header h1 {
        font-size: 24px;
    }
    
    .job-application-form {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-group input {
        height: 50px;
        padding: 6px 8px;
        font-size: 16px;
    }
    
    .form-group textarea {
        height: 200px;
        padding: 6px 8px;
        font-size: 16px;
    }
    
    .radio-group {
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }
    
    .submit-btn,
    .cancel-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .success-modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .success-modal-content h3 {
        font-size: 20px;
    }
    
    .success-modal-content p {
        font-size: 14px;
    }
    
    .success-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .job-application-container {
        margin: 0 10px;
        border-radius: 20px;
        border: none;
    }
    
    .job-application-header {
        padding: 35px 15px;
    }
    
    .job-application-header h1 {
        font-size: 20px;
    }
    
    .form-group label {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .job-application-form {
        padding: 25px 15px;
    }
    
    .form-group input {
        height: 45px;
        padding: 5px 6px;
        font-size: 14px;
    }
    
    .form-group textarea {
        height: 150px;
        padding: 5px 6px;
        font-size: 14px;
    }
    
    .radio-group {
        gap: 12px;
        flex-direction: column;
    }
    
    .radio-label {
        font-size: 16px;
        justify-content: flex-start;
    }
    
    .submit-btn,
    .cancel-btn {
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .success-modal-content {
        margin: 15px;
        padding: 25px 15px;
        border-radius: 8px;
    }
    
    .success-modal-content h3 {
        font-size: 18px;
    }
    
    .success-modal-content p {
        font-size: 14px;
    }
    
    .success-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .success-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 错误状态样式 */
.form-group.error input,
.form-group.error textarea {
    border-color: #ff4757;
}

.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}
