/* UV: Steps and Buttons refinement */
.uv-steps .uv-step { display: none; }
.uv-steps .uv-step.uv-step-active { display: block; }

.uv-step-nav {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 10px 0;
  contain: layout;
}

.uv-terms-wrapper {
  width: 100%;
  margin: 12px 0 8px;
}

.uv-checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uv-checkbox-group .uv-checkbox-label a { text-decoration: underline; }

.uv-button, .uv-step-next, .uv-step-prev, .uv-submit-form {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  margin: 0 8px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.uv-button:hover, .uv-step-next:hover, .uv-step-prev:hover, .uv-submit-form:hover {
  transform: none;
}

.uv-step-prev, .uv-step-next { cursor: pointer; position: relative; z-index: 1; }
/* OTP Countdown Button Styles */
.uv-shahkar-otp-send-btn.countdown-active {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.uv-shahkar-otp-send-btn.countdown-active:hover {
    background-color: #ccc !important;
    color: #666 !important;
    transform: none !important;
}

/* User Verification Frontend Styles - Modern Blue Theme */

/* Theme conflict guard: ensure our styles have higher specificity than Woodmart */
.user-verification-container .uv-form-input,
.user-verification-container .uv-form-select,
.user-verification-container .uv-form-textarea {
    all: unset;
    display: block;
    width: 100%;
    box-sizing: border-box;
    font: inherit;
}

/* Re-apply our base input styles after reset */
.user-verification-container .uv-form-input,
.user-verification-container .uv-form-select,
.user-verification-container .uv-form-textarea {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--uv-text-dark);
    background: #fafbfc;
}

/* Prevent theme buttons from overriding our buttons */
.user-verification-container .uv-button,
.user-verification-container .uv-step-next,
.user-verification-container .uv-step-prev,
.user-verification-container .uv-submit-form {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

/* Primary visual styles back */
.user-verification-container .uv-button,
.user-verification-container .uv-step-next,
.user-verification-container .uv-submit-form { 
    background: linear-gradient(135deg, var(--uv-primary-blue) 0%, var(--uv-secondary-blue) 100%);
    color: #ffffff;
}

.user-verification-container .uv-step-prev { 
    background: #ffffff; 
    color: var(--uv-text-dark);
    border: 2px solid #e5e7eb; 
}

/* Upload area guard against theme inputs */
.user-verification-container .uv-file-upload-area,
.user-verification-container .uv-file-upload-input {
    all: revert;
}

:root {
    --uv-primary-blue: #004cff;
    --uv-secondary-blue: #0066ff;
    --uv-light-blue: #e6f2ff;
    --uv-dark-blue: #0040cc;
    --uv-accent-blue: #66b3ff;
    --uv-text-dark: #333333;
    --uv-text-light: #666666;
    --uv-border-light: #e0e0e0;
    --uv-success: #28a745;
    --uv-error: #dc3545;
    --uv-warning: #ffc107;
    --uv-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    --uv-shadow-hover: 0 6px 20px rgba(37, 99, 235, 0.25);
}

/* ========================================
   REVISION NOTIFICATION STYLES - Beautiful Orange Theme
   ======================================== */
.uv-revision-notification {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(71, 85, 105, 0.12),
        0 2px 6px rgba(71, 85, 105, 0.06);
    position: relative;
}

.uv-revision-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64748b, #475569, #334155);
}

.uv-revision-header {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px 8px;
    gap: 8px;
}

.uv-revision-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #64748b, #475569);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.uv-revision-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.uv-revision-icon svg path {
    stroke: #ffffff;
    stroke-width: 2.5;
}

.uv-revision-content {
    flex: 1;
    min-width: 0;
}

.uv-revision-title {
    color: #334155;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.uv-revision-message {
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.uv-revision-feedback {
    background: rgba(71, 85, 105, 0.08);
    border-top: 1px solid #cbd5e1;
    padding: 8px 15px;
}

.uv-feedback-label {
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uv-feedback-content {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.4;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 4px rgba(71, 85, 105, 0.08);
    font-weight: 500;
}

/* Responsive Design - Iranian Style */
@media (max-width: 768px) {
    .uv-revision-header {
        padding: 14px 16px 12px;
        gap: 10px;
    }
    
    .uv-revision-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .uv-revision-title {
        font-size: 1.2rem;
    }
    
    .uv-revision-feedback {
        padding: 12px 16px;
    }
    
    .uv-feedback-content {
        padding: 10px 14px;
    }
}

/* Animation and Hover Effects */
.uv-revision-notification {
    animation: revisionSlideIn 0.5s ease-out;
    transition: all 0.3s ease;
}

.uv-revision-notification:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(71, 85, 105, 0.2),
        0 6px 18px rgba(71, 85, 105, 0.12);
}

.uv-revision-icon {
    transition: all 0.3s ease;
}

.uv-revision-notification:hover .uv-revision-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(71, 85, 105, 0.4);
}

.uv-feedback-content {
    transition: all 0.3s ease;
}

.uv-revision-notification:hover .uv-feedback-content {
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.15);
    border-color: #64748b;
}

@keyframes revisionSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .uv-revision-notification {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: #475569;
    }
    
    .uv-revision-icon {
        background: linear-gradient(135deg, #475569, #334155);
    }
    
    .uv-revision-title {
        color: #e2e8f0;
    }
    
    .uv-revision-message {
        color: #cbd5e1;
    }
    
    .uv-feedback-label {
        color: #e2e8f0;
    }
    
    .uv-feedback-content {
        background: #0f172a;
        color: #cbd5e1;
        border-color: #475569;
    }
}

/* ========================================
   FORM LAYOUT & COLUMN SYSTEM 
   ======================================== */

/* Form Row System - Iranian Style (Ultra Compact Spacing) */
.uv-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.uv-form-row.uv-full-width {
    margin-bottom: 10px;
}

/* Form Field Columns */
.uv-form-field {
    flex: 1;
    min-width: 0; /* Allow shrinking */
    position: relative;
    box-sizing: border-box;
}

.uv-form-field.uv-col-full {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

.uv-form-field.uv-col-half {
    flex: 1 1 calc(50% - 6px);
    width: calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 100%;
}

.uv-form-field.uv-col-auto {
    flex: 1 1 auto;
    min-width: 200px;
}

/* Ensure form inputs fill their containers */
.uv-form-field .uv-form-input,
.uv-form-field .uv-form-textarea,
.uv-form-field .uv-form-select {
    width: 100%;
    box-sizing: border-box;
}

/* Single half-width field optimization */
.uv-form-row:has(.uv-form-field.uv-col-half:only-child) .uv-form-field.uv-col-half,
.uv-form-row .uv-form-field.uv-col-half:only-child {
    flex: 1 1 60%;
    width: 60%;
    max-width: 60%;
}

/* Better spacing for mixed layouts */
.uv-form-row:has(.uv-form-field.uv-col-half) {
    align-items: stretch;
}

.uv-form-row .uv-form-field.uv-col-half + .uv-form-field.uv-col-half {
    /* Two half fields side by side - perfect 50/50 split */
    flex: 1 1 calc(50% - 6px);
}

/* Responsive Column System - Iranian Style */
@media (max-width: 768px) {
    .uv-form-row {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .uv-form-field.uv-col-half,
    .uv-form-field.uv-col-auto {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .uv-form-row {
        gap: 5px;
        margin-bottom: 6px;
    }
    
    .user-verification-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
}

/* Form Fields Container - Iranian Style */
.uv-form-fields {
    margin-bottom: 12px;
}

/* Development Helper - Column Width Indicators */
/* Uncomment for debugging layout issues */
/*
.uv-form-field.uv-col-full::before {
    content: "FULL";
    position: absolute;
    top: -5px;
    right: 5px;
    font-size: 10px;
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
}

.uv-form-field.uv-col-half::before {
    content: "HALF";
    position: absolute;
    top: -5px;
    right: 5px;
    font-size: 10px;
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
}

.uv-form-field.uv-col-auto::before {
    content: "AUTO";
    position: absolute;
    top: -5px;
    right: 5px;
    font-size: 10px;
    background: #ffc107;
    color: black;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
}
*/

/* Enhanced Container Styles */
.user-verification-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 20px;
    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(255, 107, 53, 0.05);
    position: relative;
    overflow: hidden;
}

.user-verification-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--uv-primary-blue), var(--uv-secondary-blue), var(--uv-accent-blue));
    border-radius: 20px 20px 0 0;
}

/* Responsive Container */
@media (max-width: 768px) {
    .user-verification-container {
        margin: 10px;
        padding: 25px 20px;
        border-radius: 16px;
    }
}

@media (min-width: 1200px) {
    .user-verification-container {
        max-width: 1000px;
        padding: 50px;
    }
}

/* Enhanced Header - Iranian Style (Ultra Compact) */
.user-verification-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    position: relative;
}

.user-verification-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--uv-primary-blue), var(--uv-secondary-blue));
    border-radius: 2px;
}

.user-verification-title {
    color: var(--uv-primary-blue);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--uv-primary-blue), var(--uv-secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.user-verification-description {
    color: var(--uv-text-light);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Header */
@media (max-width: 768px) {
    .user-verification-title {
        font-size: 1.6rem;
    }
    
    .user-verification-description {
        font-size: 0.9rem;
    }
    
    .user-verification-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
}

/* Progress Indicator */
.uv-progress-container {
    margin-bottom: 40px;
    padding: 20px 0;
}

.uv-progress-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 60px;
}

.uv-progress-line-bg {
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    z-index: 1;
}

.uv-progress-line-active {
    position: absolute;
    top: 24px;
    left: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--uv-primary-blue), var(--uv-secondary-blue));
    border-radius: 2px;
    z-index: 2;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.uv-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 3;
}

.uv-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.uv-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.uv-step-circle.pending {
    border-color: #e5e7eb;
    background: white;
    color: #9ca3af;
}

.uv-step-circle.active {
    border-color: var(--uv-primary-blue);
    background: var(--uv-primary-blue);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.uv-step-circle.completed {
    border-color: var(--uv-success);
    background: var(--uv-success);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.uv-step-number,
.uv-step-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.uv-step-check {
    display: none;
    font-size: 18px;
    font-weight: 900;
}

.uv-step-circle.completed .uv-step-check {
    display: block;
}

.uv-step-circle.completed .uv-step-number {
    display: none;
}

.uv-step-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.uv-step-label.active {
    color: var(--uv-primary-blue);
    font-weight: 700;
    transform: translateY(-2px);
}

.uv-step-label.completed {
    color: var(--uv-success);
    font-weight: 600;
}

.uv-step-label.pending {
    color: #9ca3af;
}

/* Responsive Design for Progress */
@media (max-width: 768px) {
    .uv-progress-wrapper {
        padding: 0 30px;
    }
    
    .uv-progress-line-bg,
    .uv-progress-line-active {
        left: 30px;
        right: 30px;
    }
    
    .uv-step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .uv-step-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .uv-step-label {
        display: none;
    }
    
    .uv-progress-wrapper {
        padding: 0 20px;
    }
    
    .uv-progress-line-bg,
    .uv-progress-line-active {
        left: 20px;
        right: 20px;
    }
}

/* Form Styles */
.uv-form {
    margin-bottom: 15px;
}

.uv-form-step {
    display: none;
}

.uv-form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Form Layout */
.uv-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    padding: 0 5px;
}

.uv-form-row.uv-full-width {
    grid-template-columns: 1fr;
}

.uv-form-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.uv-form-field.uv-col-full {
    grid-column: 1 / -1;
}

.uv-form-field.uv-col-half {
    /* Automatic with minmax */
}

.uv-form-field.uv-col-auto {
    /* Automatic with minmax */
}

/* Responsive Grid Override */
@media (max-width: 768px) {
    .uv-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .uv-form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1025px) {
    .uv-form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Enhanced Field Labels */
.uv-field-label,
.uv-form-label,
.uv-file-upload-label {
    display: block;
    margin-bottom: 4px;
    color: var(--uv-text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    transition: color 0.3s ease;
}

.uv-field-label .uv-required,
.uv-form-label .uv-required,
.uv-form-label.required::after {
    color: var(--uv-error);
    font-weight: 700;
    margin-left: 2px;
}

.uv-form-label.required::after {
    content: " *";
}

/* Enhanced Input Fields */
.uv-form-input,
.uv-form-textarea,
.uv-form-select,
.uv-form-number {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--uv-text-dark);
    background: #fafbfc;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.uv-form-input::placeholder,
.uv-form-textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

/* Focus States - Beautiful and Engaging */
.uv-form-input:focus,
.uv-form-textarea:focus,
.uv-form-select:focus {
    outline: none;
    border-color: var(--uv-primary-blue);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 20px rgba(255, 107, 53, 0.15),
        0 0 0 4px rgba(255, 107, 53, 0.1);
}

.uv-form-input:focus::placeholder,
.uv-form-textarea:focus::placeholder {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* Hover States */
.uv-form-input:hover:not(:focus),
.uv-form-textarea:hover:not(:focus),
.uv-form-select:hover:not(:focus) {
    border-color: #d1d5db;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Enhanced Textarea */
.uv-form-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.4;
    font-family: inherit;
}

/* Enhanced Select Field */
.uv-form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    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");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.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");
}

/* Select Options Styling */
.uv-form-select option {
    background-color: #ffffff;
    color: var(--uv-text-dark);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.uv-form-select option:hover {
    background-color: var(--uv-light-blue);
    color: var(--uv-primary-blue);
}

.uv-form-select option:checked {
    background-color: var(--uv-primary-blue);
    color: #ffffff;
    font-weight: 600;
}

.uv-form-select option:focus {
    background-color: var(--uv-light-blue);
    color: var(--uv-primary-blue);
    outline: none;
}

/* RTL Support for Select */
[dir="rtl"] .uv-form-select {
    background-position: left 12px center;
    padding-left: 40px;
    padding-right: 12px;
}

/* Filled State */
.uv-form-input:not(:placeholder-shown),
.uv-form-textarea:not(:placeholder-shown) {
    background: #ffffff;
    border-color: #d1d5db;
}

/* Error States - Enhanced */
.uv-form-input.error,
.uv-form-textarea.error,
.uv-form-select.error {
    border-color: var(--uv-error);
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    animation: errorShake 0.4s ease-in-out;
}

@keyframes errorShake {
    0%, 20%, 40%, 60%, 80% { transform: translateX(0); }
    10%, 30%, 50%, 70% { transform: translateX(-3px); }
    15%, 35%, 55%, 75% { transform: translateX(3px); }
}

/* Error Messages - Enhanced */
.uv-form-error {
    color: var(--uv-error);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(220, 53, 69, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--uv-error);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.uv-form-error.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideInError 0.3s ease-out;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State for Inputs */
.uv-form-input.loading,
.uv-form-textarea.loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    pointer-events: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* File Upload Styles */
.uv-file-upload {
    border: 2px dashed var(--uv-border-light);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: var(--uv-light-blue);
}

.uv-file-upload:hover {
    border-color: var(--uv-primary-blue);
    background: rgba(255, 107, 53, 0.05);
}

.uv-file-upload.dragover {
    border-color: var(--uv-primary-blue);
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.02);
}

.uv-file-upload-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.uv-file-upload-icon {
    font-size: 3rem;
    color: var(--uv-primary-blue);
    margin-bottom: 15px;
}

.uv-file-upload-text {
    color: var(--uv-text-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.uv-file-upload-hint {
    color: var(--uv-text-light);
    font-size: 0.9rem;
}

.uv-file-preview {
    margin-top: 20px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid var(--uv-border-light);
    border-radius: 8px;
    display: none;
}

.uv-file-preview.show {
    display: block;
}

.uv-file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.uv-file-info {
    display: flex;
    align-items: center;
}

.uv-file-icon {
    width: 40px;
    height: 40px;
    background: var(--uv-light-blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uv-primary-blue);
    margin-right: 12px;
}

.uv-file-name {
    color: var(--uv-text-dark);
    font-weight: 500;
}

.uv-file-size {
    color: var(--uv-text-light);
    font-size: 0.85rem;
}

.uv-file-remove {
    background: var(--uv-error);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Upload Progress */
.uv-upload-progress {
    margin-top: 15px;
    display: none;
}

.uv-upload-progress.show {
    display: block;
}

.uv-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--uv-border-light);
    border-radius: 3px;
    overflow: hidden;
}

.uv-progress-fill {
    height: 100%;
    background: var(--uv-primary-blue);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.uv-progress-text {
    text-align: center;
    margin-top: 8px;
    color: var(--uv-text-light);
    font-size: 0.9rem;
}

/* Enhanced Button Styles */
.uv-button {
    background: linear-gradient(135deg, var(--uv-primary-blue) 0%, var(--uv-secondary-blue) 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 3px 8px rgba(255, 107, 53, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1);
    text-transform: none;
    letter-spacing: 0.5px;
}

.uv-button::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.uv-button:hover::before {
    left: 100%;
}

.uv-button:hover {
    background: linear-gradient(135deg, var(--uv-dark-blue) 0%, var(--uv-primary-blue) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.uv-button:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.uv-button:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.uv-button:disabled::before {
    display: none;
}

/* Secondary Button */
.uv-button-secondary {
    background: transparent;
    color: var(--uv-primary-blue);
    border: 2px solid var(--uv-primary-blue);
    box-shadow: 
        0 2px 8px rgba(255, 107, 53, 0.1),
        inset 0 0 0 1px rgba(255, 107, 53, 0.1);
}

.uv-button-secondary::before {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
}

.uv-button-secondary:hover {
    background: var(--uv-primary-blue);
    color: #ffffff;
    border-color: var(--uv-primary-blue);
    transform: translateY(-2px);
}

/* Button Variants */
.uv-button-outline {
    background: transparent;
    color: var(--uv-text-dark);
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.uv-button-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--uv-text-dark);
    transform: translateY(-2px);
}

/* Button with Loading State */
.uv-button.loading {
    pointer-events: none;
    position: relative;
}

.uv-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.uv-button-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.uv-button-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    min-width: 100px;
}

/* Enhanced Form Navigation */
.uv-form-navigation,
.uv-button-group {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #f3f4f6;
    position: relative;
}

.uv-form-navigation::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--uv-primary-blue), var(--uv-secondary-blue));
    border-radius: 2px;
}

/* Navigation Button Variants */
.uv-prev-step {
    background: transparent;
    color: var(--uv-text-light);
    border: 2px solid #e5e7eb;
    font-weight: 600;
}

.uv-prev-step:hover {
    background: #f9fafb;
    color: var(--uv-text-dark);
    border-color: #d1d5db;
}

.uv-next-step {
    background: linear-gradient(135deg, var(--uv-primary-blue), var(--uv-secondary-blue));
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.uv-submit-form {
    background: linear-gradient(135deg, var(--uv-success), #34d399);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    min-width: 120px;
}

.uv-submit-form:hover {
    background: linear-gradient(135deg, #059669, var(--uv-success));
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .uv-form-navigation,
    .uv-button-group {
        flex-direction: column;
        gap: 8px;
        padding: 10px 0;
    }
    
    .uv-form-navigation .uv-button,
    .uv-button-group .uv-button {
        width: 100%;
        min-width: auto;
    }
}

/* Enhanced Checkbox and Terms */
.uv-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #fff7f0 0%, #fff3f0 100%);
    border: 2px solid rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.uv-checkbox-group:hover {
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.08);
}

.uv-checkbox {
    width: 24px;
    height: 24px;
    accent-color: var(--uv-primary-blue);
    cursor: pointer;
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.uv-checkbox:hover {
    transform: scale(1.1);
}

.uv-checkbox:checked {
    transform: scale(1.15);
}

.uv-checkbox-label {
    color: var(--uv-text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s ease;
}

.uv-checkbox-label:hover {
    color: var(--uv-dark-blue);
}

.uv-checkbox-label a {
    color: var(--uv-primary-blue);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.uv-checkbox-label a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--uv-primary-blue);
    transition: width 0.3s ease;
}

.uv-checkbox-label a:hover::after {
    width: 100%;
}

.uv-checkbox-label a:hover {
    color: var(--uv-dark-blue);
    transform: translateY(-1px);
}

/* OTP – tighter spacing and inline alignment */
.uv-shahkar-otp-section { display: none; margin-top: 12px; }
.uv-shahkar-otp-section.show { display: block; }
.uv-shahkar-otp-status { display: inline-block; margin-inline-end: 8px; vertical-align: middle; }
.uv-shahkar-otp-status-message { display: inline-block; color: #4b5563; margin-inline-start: 6px; vertical-align: middle; }
.uv-shahkar-otp-input { margin-inline: 8px; }
.uv-shahkar-otp-error { color: #b91c1c; margin-top: 6px; display: none; }
.uv-shahkar-otp-error.show { display: block; }

/* Remove ugly tracking/spacing on OTP code input */
.user-verification-container input.uv-otp-code-input {
    letter-spacing: normal !important;
    word-spacing: 0 !important;
    text-indent: 0 !important;
    text-transform: none !important;
    direction: ltr !important;
    text-align: center;
    font-variant-numeric: normal;
    font-feature-settings: 'tnum' 0, 'pnum' 1, 'liga' 0;
}
.user-verification-container input.uv-otp-code-input::placeholder {
    letter-spacing: normal !important;
    word-spacing: 0 !important;
}

/* Custom Checkbox Style */
.uv-checkbox-custom {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.uv-checkbox-custom input {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    height: 0;
    width: 0;
}

.uv-checkbox-custom .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.uv-checkbox-custom:hover input ~ .checkmark {
    border-color: var(--uv-primary-blue);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.uv-checkbox-custom input:checked ~ .checkmark {
    background: var(--uv-primary-blue);
    border-color: var(--uv-primary-blue);
    transform: scale(1.1);
}

.uv-checkbox-custom .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.uv-checkbox-custom input:checked ~ .checkmark:after {
    display: block;
}

.uv-checkbox-custom .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Status Messages */
.uv-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.uv-message-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--uv-success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.uv-message-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--uv-error);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.uv-message-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.uv-message-info {
    background: rgba(255, 107, 53, 0.1);
    color: var(--uv-dark-blue);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* Status Display */
.uv-status-container {
    text-align: center;
    padding: 40px;
}

.uv-status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.uv-status-icon.pending {
    color: var(--uv-warning);
}

.uv-status-icon.approved {
    color: var(--uv-success);
}

.uv-status-icon.rejected {
    color: var(--uv-error);
}

.uv-status-icon.revision {
    color: var(--uv-primary-blue);
}

.uv-status-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--uv-text-dark);
}

.uv-status-message {
    color: var(--uv-text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Custom message styling - allows rich HTML content */
.uv-custom-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.uv-custom-message h1,
.uv-custom-message h2,
.uv-custom-message h3 {
    font-weight: 700;
    margin: 20px 0;
    color: var(--uv-text-dark);
}

.uv-custom-message h2 {
    font-size: 1.5rem;
}

.uv-custom-message h3 {
    font-size: 1.2rem;
}

.uv-custom-message p {
    margin: 12px 0;
    line-height: 1.6;
    color: var(--uv-text-light);
}

.uv-custom-message img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
}

.uv-custom-message a {
    color: var(--uv-primary-blue);
    text-decoration: none;
}

.uv-custom-message a:hover {
    text-decoration: underline;
}

.uv-custom-message ul,
.uv-custom-message ol {
    text-align: right;
    margin: 15px 0;
    padding-right: 25px;
}

.uv-custom-message li {
    margin: 8px 0;
}

.uv-status-reason {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: var(--uv-error);
}

/* Bank Account Management */
.uv-bank-accounts {
    margin-top: 30px;
}

.uv-bank-account-item {
    border: 1px solid var(--uv-border-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #ffffff;
}

.uv-bank-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.uv-bank-name {
    font-weight: 600;
    color: var(--uv-text-dark);
    font-size: 1.1rem;
}

.uv-bank-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.uv-bank-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.uv-bank-status.approved {
    background: rgba(40, 167, 69, 0.2);
    color: var(--uv-success);
}

.uv-bank-status.rejected {
    background: rgba(220, 53, 69, 0.2);
    color: var(--uv-error);
}

.uv-bank-details {
    color: var(--uv-text-light);
    font-size: 0.9rem;
}

/* Loading Spinner */
.uv-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--uv-border-light);
    border-radius: 50%;
    border-top-color: var(--uv-primary-blue);
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-verification-container {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .user-verification-title {
        font-size: 1.8rem;
    }
    
    .uv-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .uv-button-group {
        flex-direction: column;
    }
    
    .uv-progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .uv-step-circle {
        width: 35px;
        height: 35px;
    }
    
    .uv-file-upload {
        padding: 20px;
    }
    
    .uv-file-upload-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .user-verification-container {
        padding: 15px 10px;
        margin: 5px;
    }
    
    .user-verification-title {
        font-size: 1.5rem;
    }
    
    .uv-form-input,
    .uv-form-textarea,
    .uv-form-select {
        padding: 10px 12px;
    }
    
    .uv-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Suspension Message */
.user-verification-message {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--uv-shadow);
    text-align: center;
}

.suspension-message {
    border-left: 5px solid var(--uv-error);
}

.user-verification-message h2 {
    color: var(--uv-primary-blue);
    margin-bottom: 20px;
}

.user-verification-message p {
    color: var(--uv-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Number Input Specific Styles */
.uv-form-number {
    text-align: right !important;
    direction: ltr !important;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield; /* Firefox: Hide spinner */
}

/* Hide Chrome/Safari spinners */
.uv-form-number::-webkit-outer-spin-button,
.uv-form-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Number field validation states */
.uv-form-number:invalid {
    border-color: var(--uv-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.uv-form-number:valid {
    border-color: var(--uv-success) !important;
}

/* RTL support for number inputs */
.uv-form-number {
    padding-left: 14px !important;
    padding-right: 40px !important; /* Space for Persian numbers if needed */
}

/* File Upload Styles */
.uv-file-upload-wrapper {
    margin-bottom: 20px;
}

.uv-file-upload-label {
    display: block;
    font-weight: 600;
    color: var(--uv-text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.uv-file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbfc;
    overflow: hidden;
}

.uv-file-upload-area:hover {
    border-color: var(--uv-primary-blue);
    background: var(--uv-light-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.uv-file-upload-area.dragover {
    border-color: var(--uv-primary-blue);
    background: var(--uv-light-blue);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.25);
}

.uv-file-upload-area.uploading {
    pointer-events: none;
    border-color: var(--uv-primary-blue);
    background: var(--uv-light-blue);
}

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

.uv-file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.uv-file-upload-area.uploading .uv-file-upload-content {
    opacity: 0.3;
}

.uv-file-upload-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--uv-primary-blue);
    transition: transform 0.3s ease;
}

.uv-file-upload-area:hover .uv-file-upload-icon {
    transform: scale(1.1);
}

.uv-file-upload-text {
    color: var(--uv-text-dark);
}

.uv-upload-primary {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--uv-text-dark);
}

.uv-upload-secondary {
    display: block;
    font-size: 0.9rem;
    color: var(--uv-text-light);
}

/* Upload Progress */
.uv-file-upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
}

.uv-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.uv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--uv-primary-blue), var(--uv-secondary-blue));
    transition: width 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.uv-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 1.5s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.uv-progress-text {
    text-align: center;
    color: var(--uv-text-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

/* File Preview */
.uv-file-preview {
    margin-top: 15px;
    display: none;
}

.uv-file-preview.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.uv-file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--uv-border-light);
    position: relative;
    overflow: hidden;
}

.uv-file-item.uploading {
    background: var(--uv-light-blue);
    border-color: var(--uv-primary-blue);
}

.uv-file-icon {
    width: 48px;
    height: 48px;
    background: var(--uv-light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uv-primary-blue);
    margin-right: 15px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.uv-file-info {
    flex-grow: 1;
    min-width: 0;
}

.uv-file-name {
    color: var(--uv-text-dark);
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-word;
}

.uv-file-size {
    color: var(--uv-text-light);
    font-size: 0.85rem;
}

.uv-file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.uv-file-remove {
    background: var(--uv-error);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.uv-file-remove:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.uv-field-description {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--uv-text-light);
    line-height: 1.4;
}

/* Image Preview */
.uv-image-preview {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.uv-image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Help System Styles */

/* Field Label Wrapper */
.uv-field-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

/* Help Button */
.uv-help-button {
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    font-family: Arial, sans-serif;
}

.uv-help-button:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.uv-help-button:active {
    transform: scale(0.95);
}

.uv-help-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.uv-help-icon {
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    font-family: Arial, sans-serif;
}
/* Help text color rules */
/* Button text on colored button */
.uv-help-button .uv-help-text { color: #ffffff; font-weight: 600; font-size: 12px; }
/* Modal content text on white modal body */
.uv-help-modal .uv-help-text { color: #374151; }

/* Ensure help button expands to fit text inside field label wrapper (override icon-only size) */
.user-verification-container .uv-field-label-wrapper .uv-help-button {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    padding: 6px 10px !important;
    border-radius: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.user-verification-container .uv-field-label-wrapper .uv-help-button .uv-help-text {
    display: inline !important;
    line-height: 1 !important;
}

/* Disable jumpy animations/hover effects on form buttons to prevent flicker with themes */
.user-verification-container .uv-button,
.user-verification-container .uv-step-next,
.user-verification-container .uv-step-prev,
.user-verification-container .uv-submit-form {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    box-shadow: none !important;
    will-change: auto !important;
}
.user-verification-container .uv-button::before {
    display: none !important;
}
.user-verification-container .uv-button:hover,
.user-verification-container .uv-step-next:hover,
.user-verification-container .uv-step-prev:hover,
.user-verification-container .uv-submit-form:hover {
    transform: none !important;
    box-shadow: none !important;
}
.user-verification-container .uv-button:active,
.user-verification-container .uv-step-next:active,
.user-verification-container .uv-step-prev:active,
.user-verification-container .uv-submit-form:active {
    transform: none !important;
    box-shadow: none !important;
}
.user-verification-container .uv-form-navigation,
.user-verification-container .uv-button-group {
    position: static !important;
    box-shadow: none !important;
}

/* Help Modal */
.uv-help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.uv-help-modal.show {
    opacity: 1;
    visibility: visible;
}

.uv-help-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.uv-help-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    opacity: 1;
}

.uv-help-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.uv-help-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.uv-help-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.uv-help-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.uv-help-modal-body {
    padding: 0px;
    max-height: 60vh;
    overflow-y: auto;
}

.uv-help-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.uv-help-image {
    text-align: center;
}

.uv-help-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.uv-help-content-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.uv-help-content-text p {
    margin: 0 0 12px 0;
}

.uv-help-content-text p:last-child {
    margin-bottom: 0;
}

/* Body scroll lock when modal is open */
body.uv-modal-open {
    overflow: hidden;
}

/* Responsive Design for Help Modal */
@media (max-width: 768px) {
    .uv-help-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
    }
    
    .uv-help-modal-header {
        padding: 15px 20px;
    }
    
    .uv-help-modal-title {
        font-size: 16px;
    }
    
    .uv-help-modal-body {
        padding: 20px;
    }
    
    .uv-help-button {
        width: 18px;
        height: 18px;
    }
    
    .uv-help-icon {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .uv-field-label-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .uv-help-button {
        align-self: flex-end;
        margin-left: 0;
    }
}

/* Pulse effect removed - simple style only */

/* Smooth scrollbar for help modal body */
.uv-help-modal-body::-webkit-scrollbar {
    width: 6px;
}

.uv-help-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.uv-help-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.uv-help-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Fixed Help System Styles - No Duplicates */

/* Field Label Wrapper */
.uv-field-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.uv-field-label-wrapper .uv-form-label {
    margin-bottom: 0;
}

/* Help Button - Single Definition */
.uv-help-button {
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    font-family: Arial, sans-serif;
}

.uv-help-button:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.uv-help-button:active {
    transform: scale(0.95);
}

.uv-help-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.uv-help-icon {
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    font-family: Arial, sans-serif;
}

/* Form Container Fix - Smart Height Management */
.user-verification-container {
    padding: 20px;
    box-sizing: border-box;
    /* Remove max-height to prevent hiding buttons */
}

.uv-form {
    /* Remove height restrictions */
    max-height: none;
    overflow: visible;
}

.uv-step {
    min-height: auto;
    max-height: none;
    overflow: visible;
}

/* Only limit form content area, not the entire form */
.uv-form-step {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Ensure form buttons are always visible - Sticky Bottom */
.uv-form-navigation,
.uv-button-group {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 20px 0;
    border-top: 2px solid #f3f4f6;
    margin-top: 20px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* Responsive Help Button */
@media (max-width: 768px) {
    .uv-field-label-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .uv-help-button {
        width: 26px;
        height: 26px;
        align-self: flex-end;
        margin-top: -4px;
        margin-left: 0;
    }
    
    .uv-help-icon {
        font-size: 14px;
    }
    
    .user-verification-container {
        padding: 15px;
    }
    
    .uv-form-step {
        max-height: 65vh;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .uv-help-button {
        width: 24px;
        height: 24px;
    }
    
    .uv-help-icon {
        font-size: 12px;
    }
    
    .user-verification-container {
        padding: 10px;
    }
    
    .uv-form-step {
        max-height: 60vh;
        padding: 10px 0;
    }
    
    .uv-form-navigation,
    .uv-button-group {
        padding: 15px 0;
    }
}



/* Province and City Fields */
.uv-province-city-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.uv-province-field,
.uv-city-field {
    display: flex;
    flex-direction: column;
}

.uv-province-label,
.uv-city-label {
    font-weight: 600;
    color: var(--uv-text-dark, #1f2937);
    margin-bottom: 8px;
    font-size: 14px;
}

.uv-province-select,
.uv-city-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--uv-border-light, #e5e7eb);
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 16px;
    color: var(--uv-text-dark, #1f2937);
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 45px;
}

.uv-province-select:focus,
.uv-city-select:focus {
    outline: none;
    border-color: var(--uv-primary-blue, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.uv-province-select:disabled,
.uv-city-select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.uv-city-select:disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239ca3af' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* Loading state for city select */
.uv-city-select.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z' clip-rule='evenodd'/%3E%3C/svg%3E");
    animation: uv-spin 1s linear infinite;
}

@keyframes uv-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .uv-province-city-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .uv-province-select,
    .uv-city-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px;
        padding-right: 45px;
    }
}

/* RTL support */
[dir="rtl"] .uv-province-select,
[dir="rtl"] .uv-city-select {
    background-position: left 12px center;
    padding-left: 45px;
    padding-right: 16px;
}

/* Validation states */
.uv-province-select:invalid,
.uv-city-select:invalid {
    border-color: #ef4444;
}

.uv-province-select:valid,
.uv-city-select:valid {
    border-color: #10b981;
}

/* Hover effects */
.uv-province-select:hover:not(:disabled),
.uv-city-select:hover:not(:disabled) {
    border-color: var(--uv-secondary-blue, #3b82f6);
} 

/* Country and City Field Styles */
.uv-country-city-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.uv-country-field,
.uv-city-field {
    flex: 1;
    min-width: 0;
}

.uv-country-label,
.uv-city-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--uv-text-dark);
    margin-bottom: 6px;
}

.uv-country-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--uv-border-light);
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.uv-country-select:focus {
    outline: none;
    border-color: var(--uv-primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.uv-city-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--uv-border-light);
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.uv-city-input:focus {
    outline: none;
    border-color: var(--uv-primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.uv-city-input.error {
    border-color: var(--uv-error);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .uv-country-city-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .uv-country-field,
    .uv-city-field {
        width: 100%;
    }
}

/* Shahkar Field Styles */
/* ========================================
   SHAHKAR VERIFICATION FIELD - MODERN DESIGN
   ======================================== */
.uv-shahkar-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(71, 85, 105, 0.08),
        0 2px 6px rgba(71, 85, 105, 0.04);
}

.uv-shahkar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64748b, #475569, #334155);
    border-radius: 12px 12px 0 0;
}

.uv-shahkar-wrapper.verifying {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    box-shadow: 
        0 4px 12px rgba(245, 158, 11, 0.15),
        0 2px 6px rgba(245, 158, 11, 0.08);
}

.uv-shahkar-wrapper.verified {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #22c55e;
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.15),
        0 2px 6px rgba(34, 197, 94, 0.08);
}

.uv-shahkar-wrapper.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.15),
        0 2px 6px rgba(239, 68, 68, 0.08);
}

.uv-shahkar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.1);
}

.uv-shahkar-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #64748b, #475569);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.uv-shahkar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.uv-shahkar-status-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: fadeInUp 0.3s ease;
}

.uv-shahkar-wrapper.verifying .uv-shahkar-status-message {
    display: block;
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-bottom: 20px;
}

.uv-shahkar-wrapper.verified .uv-shahkar-status-message {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 20px;
}

.uv-shahkar-wrapper.error .uv-shahkar-status-message {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.uv-shahkar-fields {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.uv-shahkar-field {
    flex: 1;
    position: relative;
}

.uv-shahkar-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
    font-size: 14px;
}

.uv-shahkar-national-input,
.uv-shahkar-mobile-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: left;
    direction: ltr;
}

.uv-shahkar-national-input:focus,
.uv-shahkar-mobile-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.uv-shahkar-national-input:hover,
.uv-shahkar-mobile-input:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.uv-shahkar-status {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
}

.uv-shahkar-status.verifying {
    opacity: 1;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}

.uv-shahkar-status.verified {
    opacity: 1;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
}

.uv-shahkar-status.error {
    opacity: 1;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
}

.uv-shahkar-national-input.verified,
.uv-shahkar-mobile-input.verified {
    border-color: #22c55e;
    background-color: #f0fdf4;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.2);
}

.uv-shahkar-national-input.error,
.uv-shahkar-mobile-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2);
}

.uv-shahkar-national-input:disabled,
.uv-shahkar-mobile-input:disabled {
    background-color: #f8fafc;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #e2e8f0;
}

.uv-shahkar-error {
    display: none;
    color: #991b1b;
    font-size: 14px;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    font-weight: 500;
}

.uv-shahkar-error.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@media (max-width: 768px) {
    .uv-shahkar-wrapper {
        padding: 15px;
        margin: 10px 0;
    }
    
    .uv-shahkar-fields {
        flex-direction: column;
        gap: 12px;
    }
    
    .uv-shahkar-field {
        flex: none;
    }
    
    .uv-shahkar-header {
        margin-bottom: 12px;
    }
    
    .uv-shahkar-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .uv-shahkar-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .uv-shahkar-wrapper {
        padding: 12px;
        border-radius: 10px;
    }
    
    .uv-shahkar-national-input,
    .uv-shahkar-mobile-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .uv-shahkar-status {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

   MODERN OTP DESIGN - Complete Redesign
   ============================================================================= */

/* Main OTP Container - Iranian Style (Compact & Efficient) */
.uv-modern-otp-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.uv-modern-otp-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #1e40af);
}

/* Header Section - Compact Iranian Style */

.uv-otp-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Form Container */
.uv-otp-form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 27px;
}

/* Input Row */
.uv-otp-input-row {
    display: flex;
    align-items: center; /* Vertically center all items */
    gap: 8px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.uv-otp-input-wrapper {
    flex: 1;
    min-width: 280px;
}

.uv-otp-input-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-align: right;
}

.uv-otp-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

.uv-otp-code-input {
    width: 100% !important;
    padding: 8px 40px 8px 12px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-align: center !important;
    letter-spacing: 4px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    direction: ltr !important;
    height: 40px !important;
    min-height: 40px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.uv-otp-code-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.15) !important,
        0 4px 12px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
}

.uv-otp-code-input:disabled {
    background: #f9fafb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    border-color: #e5e7eb !important;
}

.uv-otp-code-input.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    animation: shake 0.5s ease-in-out;
}

.uv-otp-code-input.success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.uv-otp-status-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.uv-status-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.uv-status-icon.uv-status-waiting {
    animation: spin 2s linear infinite;
}

.uv-status-icon.uv-status-success {
    color: #10b981;
    animation: bounce 0.6s ease-in-out;
}

.uv-status-icon.uv-status-error {
    color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

/* Action Buttons - Iranian Style (Horizontal Icons) */
.uv-otp-actions-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icon-Only Buttons - Same Height as Input */
.uv-btn-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #6b7280 !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Button States - Iranian Style */
.uv-btn-icon:hover:not(:disabled) {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
    color: #374151 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.uv-btn-icon:disabled {
    background: #f9fafb !important;
    color: #d1d5db !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

/* Removed Send Button (Automatic System) */

/* Resend Button */
.uv-otp-resend-btn {
    background: #f59e0b !important;
    color: white !important;
    border-color: #f59e0b !important;
}

.uv-otp-resend-btn:hover:not(:disabled) {
    background: #d97706 !important;
    border-color: #d97706 !important;
}

/* Primary Verify Button */
.uv-btn-primary {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

.uv-btn-primary:hover:not(:disabled) {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.uv-btn-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.uv-btn-text {
    font-weight: 600;
}

/* Timer Container - Compact Iranian Style */
.uv-otp-timer-container {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.uv-timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.uv-timer-icon {
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

.uv-timer-content {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #92400e;
    font-weight: 600;
}

.uv-timer-countdown {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #b45309 !important;
    min-width: 40px !important;
    display: inline-block !important;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.uv-timer-progress {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.uv-timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 3px;
    width: 100%;
    transition: width 1s linear;
    position: relative;
}

.uv-timer-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Messages */
.uv-otp-messages {
    margin-top: 16px;
}

.uv-otp-error-message,
.uv-otp-success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.uv-otp-error-message {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #dc2626;
}

.uv-otp-success-message {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.uv-message-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.uv-message-text {
    flex: 1;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .uv-modern-otp-container {
        padding: 20px 16px;
        margin-top: 16px;
    }
    
    /* Header removed */
    
    .uv-otp-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .uv-otp-input-wrapper {
        min-width: 100%;
    }
    
    .uv-otp-actions-wrapper {
        flex-direction: row;
        min-width: 100%;
    }
    
    .uv-btn-modern {
        flex: 1;
        min-height: 52px !important;
    }
    
    .uv-otp-code-input {
        font-size: 22px !important;
        letter-spacing: 8px !important;
        padding: 18px 60px 18px 20px !important;
        min-height: 60px !important;
    }
    
    .uv-timer-display {
        flex-direction: column;
        gap: 8px;
    }
    
    .uv-timer-content {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .uv-otp-actions-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .uv-btn-modern {
        width: 100%;
    }
    
    .uv-otp-code-input {
        font-size: 20px !important;
        letter-spacing: 6px !important;
    }
    
    .uv-timer-countdown {
        font-size: 20px !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .uv-modern-otp-container {
        background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
        border-color: #374151;
        color: #f9fafb;
    }
    
    .uv-otp-title {
        color: #f9fafb;
    }
    
    .uv-otp-subtitle {
        color: #d1d5db;
    }
    
    .uv-otp-input-label {
        color: #e5e7eb;
    }
    
    .uv-otp-code-input {
        background: #374151 !important;
        border-color: #4b5563 !important;
        color: #f9fafb !important;
    }
    
    .uv-otp-code-input:focus {
        border-color: #60a5fa !important;
        background: #1f2937 !important;
    }
}

/* Clean and modern OTP styles only */

/* =============================================================================
   ENHANCED RESPONSIVE & ACCESSIBILITY IMPROVEMENTS
   ============================================================================= */

/* Better focus states for accessibility */
.uv-otp-code-input:focus-visible {
    outline: 3px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

.uv-btn-modern:focus-visible {
    outline: 3px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .uv-modern-otp-container {
        border-width: 3px !important;
        border-color: #000000 !important;
    }
    
    .uv-otp-code-input {
        border-width: 3px !important;
        border-color: #000000 !important;
    }
    
    .uv-btn-modern {
        border: 3px solid #000000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .uv-status-icon,
    .uv-timer-icon,
    .uv-timer-progress-bar::after,
    .uv-btn-modern::before,
    .uv-otp-timer-container.urgent,
    .uv-timer-countdown.urgent,
    .uv-otp-code-input.success {
        animation: none !important;
        transition: none !important;
    }
    
    .uv-btn-modern:hover {
        transform: none !important;
    }
}

/* Enhanced mobile experience - Iranian Style */
@media (max-width: 768px) {
    /* Icon buttons remain compact on mobile */
    .uv-btn-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }
    
    .uv-otp-code-input {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 16px !important;
        letter-spacing: 3px !important;
        padding: 8px 35px 8px 10px !important;
    }
    
    /* Compact container on mobile */
    .uv-modern-otp-container {
        margin: 8px 0;
        padding: 12px;
        border-radius: 6px !important;
    }
    
    /* Smaller timer on mobile */
    .uv-timer-countdown {
        font-size: 20px !important;
        padding: 4px 8px !important;
    }
    
    .uv-otp-actions-wrapper {
        gap: 6px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .uv-modern-otp-container {
        padding: 16px 12px !important;
    }
    
    .uv-otp-title {
        font-size: 18px !important;
    }
    
    .uv-otp-subtitle {
        font-size: 13px !important;
    }
    
    .uv-btn-modern {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .uv-modern-otp-container {
        padding: 16px 20px !important;
    }
    
    /* Header removed */
    
    .uv-otp-input-row {
        flex-direction: row !important;
        align-items: flex-end !important;
    }
    
    .uv-otp-actions-wrapper {
        flex-direction: column !important;
        min-width: 120px !important;
    }
}

/* Print styles */
@media print {
    .uv-modern-otp-container {
        border: 2px solid #000 !important;
        background: #fff !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .uv-btn-modern,
    .uv-otp-timer-container {
        display: none !important;
    }
    
    .uv-otp-code-input {
        border: 2px solid #000 !important;
        background: #fff !important;
    }
}

/* Loading states for icon buttons */
.uv-btn-icon.loading {
    pointer-events: none;
}

.uv-btn-icon.loading i {
    animation: spin 1s linear infinite;
}

/* Success states */
.uv-modern-otp-container.verified {
    border-color: #10b981 !important;
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

.uv-modern-otp-container.verified::before {
    background: linear-gradient(90deg, #10b981, #059669, #047857) !important;
}

/* Error states */
.uv-modern-otp-container.error {
    border-color: #ef4444 !important;
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%) !important;
}

.uv-modern-otp-container.error::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c) !important;
}

/* Tooltip support for better UX */
.uv-otp-tooltip {
    position: relative;
}

.uv-otp-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.uv-otp-tooltip:hover::after,
.uv-otp-tooltip:focus::after {
    opacity: 1;
}

/* Enhanced visual feedback */
.uv-field-success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.uv-field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Modern OTP Design Styles */

/* User Verification Critical CSS Fixes */
/* This file contains critical CSS fixes for form layout, notifications, and WordPress icons */

/* ========================================
   WORDPRESS ICON FONTS CRITICAL FIX
   ======================================== */

/* CRITICAL: Fix WordPress Dashicons when Persian fonts are used */
.dashicons,
.dashicons-before::before,
[class*="dashicons-"]::before,
#wpadminbar .ab-icon::before,
#wpadminbar .ab-item::before,
#wpadminbar .ab-icon,
#wpadminbar .ab-item .ab-icon,
.wp-menu-image::before,
.ab-icon {
    font-family: dashicons !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    speak: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Admin bar specific fix */
#wpadminbar * {
    font-family: inherit;
}

#wpadminbar .ab-icon,
#wpadminbar .dashicons {
    font-family: dashicons !important;
}

/* REMOVE ALL HEIGHT RESTRICTIONS */
.user-verification-container,
.uv-verification-form,
.uv-form-container,
.uv-form,
.uv-form-step {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.user-verification-container {
    padding: 16px !important;
    box-sizing: border-box !important;
}

/* UNIFIED REVISION NOTIFICATION - Single Box */
.uv-revision-notification {
    background: #f8fafc !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.15) !important;
}

.uv-revision-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1) !important;
    border-bottom: 1px solid #64748b !important;
}

.uv-revision-icon {
    font-size: 24px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.uv-revision-content {
    flex-grow: 1 !important;
}

.uv-revision-title {
    margin: 0 0 8px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    line-height: 1.3 !important;
}

.uv-revision-message {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.uv-revision-feedback {
    padding: 14px 20px !important;
    background: #fff !important;
}

.uv-feedback-label {
    display: block !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

.uv-feedback-content {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border-left: 3px solid #64748b !important;
}

/* Remove old notification styles */
.uv-message.uv-message-warning,
.uv-status-reason {
    display: none !important;
}

/* FORCE NORMAL BUTTON FLOW - NO STICKY */
.uv-form-navigation,
.uv-button-group,
div.uv-button-group {
    position: static !important;
    display: flex !important;
    gap: 20px !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 40px !important;
    padding: 25px 0 40px 0 !important;
    border-top: 2px solid #f3f4f6 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* Ensure all buttons are visible */
.uv-button,
.uv-next-step,
.uv-prev-step,
.uv-submit-form {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    bottom: auto !important;
    transform: none !important;
}

/* Natural flow for multi-step forms */
.uv-form-steps {
    margin-bottom: 30px !important;
}

.uv-step-content {
    min-height: auto !important;
    padding-bottom: 0 !important;
}

/* Form field improvements */
.uv-form-fields .uv-form-row {
    margin-bottom: 25px !important;
}

.uv-form-fields .uv-form-field {
    margin-bottom: 20px !important;
}

/* Field label wrapper improvements */
.uv-field-label-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
    flex-wrap: nowrap !important;
}

/* Help Button Styles */
.uv-help-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
    white-space: nowrap !important;
    min-width: auto !important;
    height: auto !important;
}

.uv-help-button:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.uv-help-button:active {
    transform: translateY(0) !important;
}

/* Removed duplicate uv-help-text - handled in frontend.css */

/* File upload wrapper alignment */
.uv-file-upload-wrapper {
    width: 100% !important;
}

/* Ensure proper alignment for all field types */
.uv-form-label {
    margin: 0 !important;
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 14px !important;
}

.uv-form-label.required::after {
    content: ' *' !important;
    color: #dc2626 !important;
}

/* Fix for help modals and overlays */
.uv-help-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.uv-help-modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: white !important;
    border-radius: 12px !important;
    padding: 30px !important;
    max-width: 600px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

/* Help Modal Header - Gray Color */
.uv-help-modal-header {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: white !important;
}

.uv-help-modal-title {
    color: white !important;
    font-weight: 600 !important;
}

/* Help Modal Content - Zero Padding */
.uv-help-content {
    padding: 0 !important;
    margin: 0 !important;
}

.uv-help-image {
    margin: 0 !important;
    padding: 0 !important;
}

/* Help text override removed - handled in frontend.css only */

/* Responsive fixes */
@media (max-width: 768px) {
    .user-verification-container {
        padding: 15px !important;
        margin: 10px !important;
    }
    
    .uv-form-navigation,
    .uv-button-group {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .uv-button {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .uv-help-modal-content {
        margin: 20px !important;
        max-width: calc(100% - 40px) !important;
        padding: 20px !important;
    }
    
    /* Help button mobile adjustments */
    .uv-help-button {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
    
    /* Field label wrapper mobile */
    .uv-field-label-wrapper {
        gap: 8px !important;
    }
    
    .uv-form-label {
        font-size: 13px !important;
    }
}

/* File upload improvements */
.uv-file-upload-area {
    border: 2px dashed #d1d5db !important;
    border-radius: 8px !important;
    padding: 30px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    background: #f9fafb !important;
}

.uv-file-upload-area:hover,
.uv-file-upload-area.dragover {
    border-color: #64748b !important;
    background: #f8fafc !important;
}

.uv-file-preview {
    margin-top: 15px !important;
    padding: 15px !important;
    background: #f3f4f6 !important;
    border-radius: 8px !important;
}

/* Progress indicator removed - no longer needed for single-page forms */

/* FORCE COMPACT SPACING FOR ELEMENTOR - Override Any Large Spacing */
.elementor-user-verification-widget .uv-form-row,
.elementor-bank-account-widget .uv-form-row {
    gap: 12px !important;
    margin-bottom: 16px !important;
}

/* No more "کله خر" spacing! */
.elementor-user-verification-widget .uv-form-row.uv-full-width,
.elementor-bank-account-widget .uv-form-row.uv-full-width {
    margin-bottom: 16px !important;
} /**
 * User Verification - Conflict Resolution CSS
 * Fixes conflicts with other plugins like Elementor Pro
 */

/* Fix for jQuery migrate warnings */
.uv-form-container {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Ensure our styles take precedence over Elementor Pro */
.user-verification-container,
.user-verification-container * {
    box-sizing: border-box !important;
}

/* Fix z-index conflicts */
.uv-shahkar-otp-section {
    position: relative;
    z-index: 10;
}

.uv-help-modal {
    z-index: 9999 !important;
}

/* Prevent Elementor from affecting our form inputs */
.uv-form-input,
.uv-form-textarea,
.uv-form-select,
.uv-shahkar-otp-input {
    font-family: inherit !important;
    line-height: inherit !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

/* Fix for Persian date picker conflicts */
.uv-persian-date {
    position: relative;
    z-index: 1;
}

/* Ensure buttons work properly */
.uv-shahkar-otp-send-btn,
.uv-shahkar-otp-verify-btn,
.uv-submit-form {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Fix for mobile responsive issues */
@media (max-width: 768px) {
    .user-verification-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 15px !important;
    }
    
    .uv-form-row {
        flex-direction: column !important;
    }
    
    .uv-shahkar-otp-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* Frontend Inline Styles Replacement */
.uv-shahkar-otp-section--visible {
    display: block;
}

.uv-file-upload-progress--hidden {
    display: none;
}

.uv-progress-fill--empty {
    width: 0%;
}

.uv-shahkar-otp-section--hidden {
    display: none;
}

.uv-otp-timer-container--hidden {
    display: none;
}

.uv-otp-error-message--hidden {
    display: none;
}

.uv-otp-success-message--hidden {
    display: none;
}

.uv-help-modal--hidden {
    display: none;
}

.uv-help-image--hidden {
    display: none;
}

/* Default hidden states for dynamic elements */
.uv-file-upload-progress,
.uv-shahkar-otp-section,
.uv-otp-timer-container,
.uv-otp-error-message,
.uv-otp-success-message,
.uv-help-modal,
.uv-help-image {
    display: none;
}

/* Visible states */
.uv-file-upload-progress.uv-visible,
.uv-shahkar-otp-section.uv-visible,
.uv-otp-timer-container.uv-visible,
.uv-otp-error-message.uv-visible,
.uv-otp-success-message.uv-visible,
.uv-help-modal.uv-visible,
.uv-help-image.uv-visible {
    display: block;
}

/* Special case for progress fill */
.uv-progress-fill {
    width: 0%;
    transition: width 0.3s ease;
}

/* Bank Account Form - Verification Notice */
.uv-verification-required-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #6c757d;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.uv-notice-icon {
    font-size: 32px;
    opacity: 0.8;
}

.uv-notice-content {
    flex: 1;
}

.uv-notice-content h3 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.uv-notice-content p {
    margin: 8px 0;
    color: #6c757d;
    line-height: 1.5;
}

.uv-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 12px;
    transition: background 0.2s;
}

.uv-btn:hover {
    background: #005a87;
    color: white;
}

/* Bank Account Form - Verification Status */
.uv-verification-status {
    margin-top: 5px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.uv-verification-status.uv-verifying {
    color: #f39c12;
}

.uv-verification-status.uv-verified {
    color: #27ae60;
}

.uv-verification-status.uv-failed {
    color: #e74c3c;
}

.uv-form-input.uv-verifying {
    border-color: #f39c12;
    box-shadow: 0 0 0 1px #f39c12;
}

.uv-form-input.uv-verified {
    border-color: #27ae60;
    box-shadow: 0 0 0 1px #27ae60;
}

.uv-form-input.uv-failed {
    border-color: #e74c3c;
    box-shadow: 0 0 0 1px #e74c3c;
}

.uv-button.uv-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.uv-verification-status .dashicons {
    font-size: 14px;
}

.uv-verification-status.uv-verifying .dashicons {
    animation: spin 1s linear infinite;
}
} 

/* Bank account form submit button: disable animations/jumps */
#submit-bank-account {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

#submit-bank-account::before {
    display: none !important;
}

#submit-bank-account:hover,
#submit-bank-account:active,
#submit-bank-account:focus {
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   NEW COMPACT OTP STYLES 
   ======================================== */

.uv-otp-form-container {
    padding-top: 0;
}

.uv-otp-input-row {
    display: flex;
    align-items: flex-end; /* Align items to the bottom */
    gap: 8px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.uv-otp-input-wrapper {
    flex: 1 1 180px; /* Grow and shrink, with a base width */
}

.uv-otp-actions-wrapper {
    display: flex;
    gap: 6px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.uv-otp-timer-container {
    display: none; /* Hidden by default, shown by JS */
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    padding: 0 10px; /* Adjusted padding for height */
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    height: 42px; /* Set consistent height */
    box-sizing: border-box; /* Include padding and border in height */
    /* margin-inline-start: auto; Push to the end */
}

.uv-otp-timer-container.uv-visible {
    display: flex; /* Use flex to show it */
}

.uv-otp-timer-container .uv-timer-icon {
    font-size: 16px;
}

.uv-otp-timer-container .uv-timer-countdown {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    min-width: 20px;
    text-align: center;
}

.uv-otp-input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 4px;
}

.uv-otp-field-container {
    position: relative;
}

.uv-otp-code-input {
    height: 42px !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
    text-align: center !important;
    letter-spacing: 2px !important;
    font-size: 15px !important;
}

.uv-btn-icon {
    width: 42px !important;
    height: 42px !important;
}

/* Hide legacy elements we no longer need */
.uv-modern-otp-container .uv-otp-header,
.uv-otp-timer-container .uv-timer-progress,
.uv-otp-timer-container .uv-timer-label,
.uv-otp-timer-container .uv-timer-unit {
    display: none !important;
}

/* SVG icon styles */
.uv-btn-icon .uv-svg-icon {
    width: 1em;
    height: 1em;
    font-size: 16px;
    vertical-align: middle;
}

.uv-otp-timer-container.uv-visible {
    display: flex; /* Use flex to show it */
}

.uv-otp-timer-container .uv-timer-display {
    display: flex;
    align-items: center; /* This will vertically center the icon and content */
    justify-content: center; /* This will horizontally center them */
    width: 100%;
}

.uv-otp-timer-container .uv-timer-icon {
    font-size: 16px;
    line-height: 1; /* Ensure icon doesn't add extra height */
}

.uv-timer-icon .uv-svg-icon {
    width: 1em;
    height: 1em;
    font-size: 16px;
    vertical-align: middle;
}

.uv-timer-container .uv-timer-countdown {
    font-weight: 600;
    font-size: 13px;
}

/* ===== OTP Hardening (theme-proof) ===== */
.user-verification-container .uv-otp-input-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.user-verification-container .uv-otp-timer-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    padding: 0 10px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex: 0 0 auto !important;
    margin-top: 0;
    min-width: 100px;
}

.user-verification-container .uv-otp-input-wrapper {
    flex: 1 1 220px !important;
    min-width: 180px !important;
}

.user-verification-container .uv-otp-actions-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
}

.user-verification-container .uv-otp-code-input {
    height: 42px !important;
    line-height: 42px !important;
    padding: 8px 12px !important;
    direction: ltr !important;
    text-align: center !important;
}

.user-verification-container .uv-btn-icon {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.user-verification-container .uv-timer-icon .uv-svg-icon {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle !important;
}


.uv-otp-input-row {
    margin-top: 15px !important;
  }


/* ========================================
   🔒 v3.3.2: Submission Progress Modal
   ======================================== */

/* Modal Container - Fullscreen Overlay */
.uv-submission-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uv-submission-modal.show {
    opacity: 1;
}

/* Dark Overlay */
.uv-submission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal Content Box - Compact Version */
.uv-submission-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.uv-submission-inner {
    padding: 25px 20px;
}

/* Header with Spinner - Compact */
.uv-submission-header {
    text-align: center;
    margin-bottom: 20px;
}

.uv-submission-icon {
    margin-bottom: 10px;
}

.uv-submission-icon svg {
    width: 50px;
    height: 50px;
}

.uv-spinner {
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.uv-spinner-path {
    stroke: #3b82f6;
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: spinnerDash 1.5s ease-in-out infinite;
}

@keyframes spinnerDash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.uv-submission-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Progress Steps - Compact */
.uv-submission-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.uv-submission-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.uv-submission-step.uv-step-active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.uv-submission-step.uv-step-complete {
    background: #f0fdf4;
    border-color: #10b981;
}

.uv-submission-step.uv-step-error {
    background: #fef2f2;
    border-color: #ef4444;
}

.uv-step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 16px;
}

.uv-submission-step.uv-step-active .uv-step-icon {
    background: #3b82f6;
    color: #ffffff;
    animation: iconPulse 2s ease-in-out infinite;
}

.uv-submission-step.uv-step-complete .uv-step-icon {
    background: #10b981;
    color: #ffffff;
}

.uv-submission-step.uv-step-error .uv-step-icon {
    background: #ef4444;
    color: #ffffff;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
    }
}

.uv-step-content {
    flex: 1;
    min-width: 0;
}

.uv-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.uv-step-status {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.uv-submission-step.uv-step-active .uv-step-status {
    color: #3b82f6;
}

.uv-submission-step.uv-step-complete .uv-step-status {
    color: #10b981;
}

.uv-submission-step.uv-step-error .uv-step-status {
    color: #ef4444;
}

/* Message Section - Compact */
.uv-submission-message {
    text-align: center;
    margin-bottom: 18px;
    padding: 0 5px;
}

.uv-submission-message p {
    margin: 6px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.uv-submission-warning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #fde68a;
}

/* Progress Bar - Compact */
.uv-submission-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.uv-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.uv-submission-percentage {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #3b82f6;
    font-family: 'Segoe UI', monospace;
}

/* Responsive Design - Optimized */
@media (max-width: 640px) {
    .uv-submission-content {
        max-width: 95%;
    }
    
    .uv-submission-inner {
        padding: 20px 16px;
    }
    
    .uv-submission-title {
        font-size: 16px;
    }
    
    .uv-submission-step {
        padding: 10px;
        gap: 10px;
    }
    
    .uv-step-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .uv-step-title {
        font-size: 13px;
    }
    
    .uv-step-status {
        font-size: 11px;
    }
    
    .uv-submission-icon svg {
        width: 40px;
        height: 40px;
    }
}

/* Prevent body scroll when modal is open */
body.uv-modal-open {
    overflow: hidden !important;
}


