/* User Verification Elementor Widgets Styles - Enhanced */

/* Widget Container Styles */
.elementor-user-verification-widget,
.elementor-bank-account-widget {
    position: relative;
}

/* Import all frontend styles for Elementor widgets */
.elementor-user-verification-widget .user-verification-container,
.elementor-bank-account-widget .user-verification-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 30px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%) !important;
    border-radius: 7px !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(37, 99, 235, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.elementor-user-verification-widget .user-verification-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa) !important;
    border-radius: 20px 20px 0 0 !important;
}

/* Preview Notice in Elementor Editor */
.elementor-preview-notice {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    margin-top: 20px;
}

.elementor-preview-notice p {
    margin: 10px 0;
    font-size: 14px;
}

.elementor-preview-notice strong {
    color: #2563eb;
    font-size: 16px;
}

.elementor-preview-notice ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.elementor-preview-notice li {
    margin: 5px 0;
    font-size: 13px;
}

/* Complete Form Styles for Elementor Widgets */
.elementor-user-verification-widget .uv-form-label,
.elementor-bank-account-widget .uv-form-label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #333333 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    position: relative !important;
    transition: color 0.3s ease !important;
}

.elementor-user-verification-widget .uv-form-label.required::after,
.elementor-bank-account-widget .uv-form-label.required::after {
    content: " *" !important;
    color: #dc3545 !important;
    font-weight: 700 !important;
    margin-left: 2px !important;
}

.elementor-user-verification-widget .uv-form-input,
.elementor-user-verification-widget .uv-form-textarea,
.elementor-user-verification-widget .uv-form-select,
.elementor-bank-account-widget .uv-form-input,
.elementor-bank-account-widget .uv-form-textarea,
.elementor-bank-account-widget .uv-form-select {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #333333 !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

/* Enhanced Select Field for Elementor */
.elementor-user-verification-widget .uv-form-select,
.elementor-bank-account-widget .uv-form-select {
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 20px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 50px !important;
}

.elementor-user-verification-widget .uv-form-select:focus,
.elementor-bank-account-widget .uv-form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
}

/* Select Options Styling for Elementor */
.elementor-user-verification-widget .uv-form-select option,
.elementor-bank-account-widget .uv-form-select option {
    background-color: #ffffff !important;
    color: #333333 !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
}

.elementor-user-verification-widget .uv-form-select option:hover,
.elementor-bank-account-widget .uv-form-select option:hover {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

.elementor-user-verification-widget .uv-form-select option:checked,
.elementor-bank-account-widget .uv-form-select option:checked {
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.elementor-user-verification-widget .uv-form-select option:focus,
.elementor-bank-account-widget .uv-form-select option:focus {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    outline: none !important;
}
    background: #fafbfc !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.elementor-user-verification-widget .uv-form-input:focus,
.elementor-user-verification-widget .uv-form-textarea:focus,
.elementor-user-verification-widget .uv-form-select:focus,
.elementor-bank-account-widget .uv-form-input:focus,
.elementor-bank-account-widget .uv-form-textarea:focus,
.elementor-bank-account-widget .uv-form-select:focus {
    outline: none !important;
    border-color: #2563eb !important;
    background: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 4px 20px rgba(37, 99, 235, 0.15),
        0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.elementor-user-verification-widget .uv-form-input.error,
.elementor-user-verification-widget .uv-form-textarea.error,
.elementor-bank-account-widget .uv-form-input.error,
.elementor-bank-account-widget .uv-form-textarea.error {
    border-color: #dc3545 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.elementor-user-verification-widget .uv-form-error.show,
.elementor-bank-account-widget .uv-form-error.show {
    display: block !important;
    opacity: 1 !important;
    color: #dc3545 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    padding: 8px 12px !important;
    background: rgba(220, 53, 69, 0.05) !important;
    border-radius: 8px !important;
    border-left: 4px solid #dc3545 !important;
}

.elementor-user-verification-widget .uv-button,
.elementor-bank-account-widget .uv-button {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    min-width: 160px !important;
    box-shadow: 
        0 4px 12px rgba(255, 107, 53, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.elementor-user-verification-widget .uv-button:hover,
.elementor-bank-account-widget .uv-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 25px rgba(37, 99, 235, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Widget Responsive Adjustments */
@media (max-width: 768px) {
    .elementor-user-verification-widget .uv-form-row,
    .elementor-bank-account-widget .uv-form-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .elementor-user-verification-widget .user-verification-container,
    .elementor-bank-account-widget .user-verification-container {
        padding: 20px !important;
        border-radius: 7px !important;
    }
}

/* Elementor Editor Specific Styles */
.elementor-editor-active .elementor-user-verification-widget,
.elementor-editor-active .elementor-bank-account-widget {
    min-height: 200px;
}

.elementor-editor-active .user-verification-container {
    pointer-events: none;
}

.elementor-editor-active .elementor-preview-notice {
    pointer-events: all;
}

/* Widget Icon Styles for Elementor Panel */
.elementor-element .icon {
    width: 28px;
    height: 28px;
}

/* Form Validation in Elementor Widget */
.elementor-user-verification-widget .uv-form-error,
.elementor-bank-account-widget .uv-form-error {
    font-size: 12px;
    margin-top: 5px;
}

/* Widget Loading States */
.elementor-user-verification-widget .uv-loading,
.elementor-bank-account-widget .uv-loading {
    border-width: 2px;
}

/* Override Elementor Default Margins */
.elementor-widget-user-verification-form .elementor-widget-container,
.elementor-widget-user-bank-account .elementor-widget-container {
    margin: 0;
    padding: 0;
}

/* Ensure proper spacing in Elementor */
.elementor-user-verification-widget .user-verification-container,
.elementor-bank-account-widget .user-verification-container {
    margin-bottom: 0;
}

/* File Upload Styles in Elementor Widget */
.elementor-user-verification-widget .uv-file-upload {
    position: relative;
    z-index: 1;
}

.elementor-user-verification-widget .uv-file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Progress Indicator in Elementor */
.elementor-user-verification-widget .uv-progress-container {
    position: relative;
    z-index: 1;
}

/* Bank Account Status Badges in Elementor */
.elementor-bank-account-widget .uv-bank-status {
    display: inline-block;
    z-index: 1;
}

/* Responsive Typography for Widgets */
@media (max-width: 480px) {
    .elementor-user-verification-widget .user-verification-title,
    .elementor-bank-account-widget .user-verification-title {
        font-size: 1.5rem;
    }
    
    .elementor-user-verification-widget .uv-button,
    .elementor-bank-account-widget .uv-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Widget Animation Compatibility */
.elementor-invisible {
    visibility: hidden;
}

/* Ensure widgets work with Elementor's motion effects */
.elementor-motion-effects-element {
    position: relative;
}

.elementor-motion-effects-element .user-verification-container {
    position: relative;
    z-index: 1;
}

/* Form Row Styles - Iranian Style (Compact Spacing) */
.elementor-user-verification-widget .uv-form-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}



/* Responsive - Even more compact on mobile */
@media (max-width: 768px) {
    .elementor-user-verification-widget .uv-form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    .elementor-user-verification-widget .uv-form-row {
        gap: 8px !important;
        margin-bottom: 10px !important;
    }
}

/* Print Styles */
@media print {
    .elementor-preview-notice {
        display: none;
    }
} 