/* استایل‌های فرم ویرایش پروفایل */
.chinyab-profile-edit-form-wrapper {
    max-width: 100%;
}

.chinyab-profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chinyab-profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 16px;
}

.chinyab-profile-avatar-preview {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 31% !important;
    overflow: hidden;
    border: 4px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chinyab-profile-avatar-preview:hover {
    border-color: #3b82f6;
}

.chinyab-profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chinyab-profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chinyab-profile-avatar-preview:hover .chinyab-profile-avatar-overlay {
    opacity: 1;
}

.chinyab-profile-avatar-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
}

.chinyab-profile-avatar-upload-icon {
    width: 32px;
    height: 32px;
}

.chinyab-profile-avatar-upload-text {
    font-size: 14px;
    font-weight: 500;
}

.chinyab-profile-avatar-info {
    text-align: center;
}

.chinyab-profile-avatar-hint {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.chinyab-profile-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chinyab-profile-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chinyab-profile-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chinyab-profile-form-field-full {
    grid-column: 1 / -1;
}

.chinyab-profile-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.chinyab-profile-form-field input,
.chinyab-profile-form-field textarea,
.chinyab-profile-form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Vazir', 'IRANYekan', 'Tahoma', 'Arial', sans-serif !important;
    cursor: pointer;
}

.chinyab-profile-form-field input:focus,
.chinyab-profile-form-field textarea:focus,
.chinyab-profile-form-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chinyab-profile-form-field select {
    appearance: none;
    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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-left: 16px;
    padding-right: 40px;
    direction: rtl;
}

.chinyab-profile-form-field select:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
    opacity: 0.6;
}

.chinyab-profile-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.chinyab-profile-form-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
}

.chinyab-profile-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.chinyab-profile-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

.chinyab-profile-form-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.chinyab-profile-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.chinyab-profile-save-btn:hover {
    background: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: #ffffff !important;
    border: none !important;
}

.chinyab-profile-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    color: #ffffff !important;
}

.chinyab-profile-save-btn-loading {
    display: none;
}

.chinyab-profile-save-btn.loading .chinyab-profile-save-btn-text {
    display: none;
}

.chinyab-profile-save-btn.loading .chinyab-profile-save-btn-loading {
    display: inline-block;
}

/* ریسپانسیو فرم پروفایل */
@media (max-width: 768px) {
    .chinyab-profile-form-row {
        grid-template-columns: 1fr;
    }
    
    .chinyab-profile-avatar-section {
        padding: 20px;
    }
    
    .chinyab-profile-avatar-preview {
        width: 120px;
        height: 120px;
    }
}

