/* ================================================
   用户表单样式
   ================================================ */

.ufp-form-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.ufp-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.ufp-form-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.ufp-form-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.ufp-form {
    margin-top: 20px;
}

.ufp-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.ufp-form-group {
    margin-bottom: 18px;
    padding: 0 10px;
}

.ufp-col-6 {
    width: 50%;
}

.ufp-col-12 {
    width: 100%;
}

.ufp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.ufp-required {
    color: #e74c3c;
}

.ufp-input,
.ufp-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Phone number wrapper */
.ufp-phone-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ufp-country-code {
    flex: 0 0 160px;
    width: 160px;
}

.ufp-custom-code {
    flex: 0 0 80px;
    width: 80px;
}

.ufp-phone-number {
    flex: 1;
    min-width: 150px;
}

.ufp-input:focus,
.ufp-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ufp-textarea {
    resize: vertical;
    min-height: 80px;
}

.ufp-submit-btn {
    width: 100%;
    padding: 12px 30px;
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ufp-submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ufp-submit-btn:active {
    transform: translateY(0);
}

.ufp-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.ufp-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.ufp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ufp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 768px) {
    .ufp-form-container {
        padding: 25px 20px;
        margin: 15px;
    }
    
    .ufp-form-title {
        font-size: 22px;
    }
    
    .ufp-form-subtitle {
        font-size: 14px;
    }
    
    .ufp-col-6 {
        width: 100%;
    }
    
    .ufp-form-row {
        margin: 0;
    }
    
    .ufp-form-group {
        padding: 0;
        margin-bottom: 15px;
    }
}

/* 输入验证样式 */
.ufp-input.error,
.ufp-textarea.error {
    border-color: #e74c3c;
}

.ufp-input.success,
.ufp-textarea.success {
    border-color: #27ae60;
}

/* 加载动画 */
.ufp-btn-loading {
    display: inline-block;
}

.ufp-btn-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ufp-spin 0.6s linear infinite;
}

@keyframes ufp-spin {
    to { transform: rotate(360deg); }
}
