/**
 * Verta Form Styles - Professional & Clean
 * @version 1.0.0
 */

/* ==================== Variables ==================== */
:root {
    /* Colors - Light Mode */
    --verta-primary: #2563eb;
    --verta-primary-hover: #1d4ed8;
    --verta-success: #10b981;
    --verta-error: #ef4444;
    --verta-warning: #f59e0b;
    --verta-text: #111827;
    --verta-text-secondary: #6b7280;
    --verta-border: #e5e7eb;
    --verta-bg: #ffffff;
    --verta-bg-secondary: #f9fafb;
    --verta-shadow: rgba(0, 0, 0, 0.1);
}


/* ==================== Container ==================== */
.verta-form-container {
    max-width: 440px;
    margin: 0 auto;
    padding: 24px;
}

.verta-form-container button {
    font-family: unset;
}

/* ==================== Logo ==================== */
.verta-form-logo {
    text-align: center;
    margin-bottom: 32px;
}

.verta-form-logo img {
    max-height: 60px;
    width: auto;
}

/* ==================== Header ==================== */
.verta-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.verta-form-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--verta-text);
    margin: 0 0 8px;
}

.verta-form-subtitle {
    font-size: 14px;
    color: var(--verta-text-secondary);
    margin: 0;
}

/* ==================== Progress Indicator ==================== */
.verta-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 20px;
}

.verta-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.verta-progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--verta-bg-secondary);
    border: 2px solid var(--verta-border);
    color: var(--verta-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s;
}

.verta-progress-label {
    font-size: 12px;
    color: var(--verta-text-secondary);
    font-weight: 400;
}

.verta-progress-line {
    flex: 1;
    height: 2px;
    background: var(--verta-border);
    margin: 0 12px;
    position: relative;
    top: -14px;
}

.verta-progress-active .verta-progress-circle {
    background: var(--verta-primary);
    border-color: var(--verta-primary);
    color: white;
}

.verta-progress-done .verta-progress-circle {
    background: var(--verta-success);
    border-color: var(--verta-success);
    color: white;
}

.verta-progress-active .verta-progress-label,
.verta-progress-done .verta-progress-label {
    color: var(--verta-text);
}

/* ==================== Messages ==================== */
/* ==========================================
   Toast Notifications - نسخه حرفه‌ای
   ========================================== */

.verta-messages {
    position: fixed;
    top: 50px;
    right: 50px;
    font-family: unset !important;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
    z-index: 999999;
    display: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideInDown 0.3s ease-out;
}

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

/* Toast Content */
.verta-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
}

.verta-toast-icon-wrapper {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verta-toast-icon {
    width: 24px;
    height: 24px;
}

.verta-toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

/* Progress Bar */
.verta-toast-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    width: 100%;
    transition: width 5000ms linear;
}

/* Success Style */
.verta-message-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.verta-message-success .verta-toast-progress {
    background: rgba(255, 255, 255, 0.5);
}



.verta-message-error .verta-toast-progress {
    background: rgba(255, 255, 255, 0.5);
}

/* Warning Style */
.verta-message-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.verta-message-warning .verta-toast-progress {
    background: rgba(255, 255, 255, 0.5);
}

/* Info Style */
.verta-message-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.verta-message-info .verta-toast-progress {
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .verta-messages {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .verta-toast-content {
        padding: 14px 16px;
    }

    .verta-toast-message {
        font-size: 13px;
    }
}


/* Legacy Compatibility - حذف استایل‌های قدیمی */
.verta-message-icon {
    display: none;
}

/* ==================== Form ==================== */
.verta-form {
    /* No special styles needed */
}

.verta-form-group {
    margin-bottom: 10px !important;
}

.verta-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 14px;
    color: var(--verta-text);
}

.verta-required {
    color: var(--verta-error);
}

.verta-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--verta-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--verta-text);
    background: var(--verta-bg);
    transition: all 0.2s;
    box-sizing: border-box;
    font-family:unset;
}

.verta-input:focus {
    outline: none;
    border-color: var(--verta-primary);
}

.verta-input::placeholder {
    color: var(--verta-text-secondary);
}

.verta-input-otp {
    text-align: center;
    font-size: 20px;
    letter-spacing: 8px;
    font-weight: 400;
}

.verta-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--verta-text-secondary);
}

/* ==================== Password Field ==================== */
.verta-password-wrapper {
    position: relative;
}

.verta-password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.verta-password-toggle:hover {
    opacity: 1;
}

.verta-password-wrapper .verta-input {
    padding-left: 45px;
}

/* ==================== Buttons ==================== */
.verta-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.verta-btn-primary {
    background: var(--verta-primary);
    color: white;
}

.verta-btn-primary:hover:not(:disabled) {
    background: var(--verta-primary-hover);
}

.verta-btn-outline {
    background: transparent;
    color: var(--verta-text);
    border: 1.5px solid var(--verta-border);
}

.verta-btn-outline:hover:not(:disabled) {
    background: var(--verta-bg-secondary);
}

.verta-btn-block {
    width: 100%;
}

.verta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verta-btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.verta-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: verta-spin 0.6s linear infinite;
}

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

.verta-link-btn {
    background: none !important;
    border: none !important;
    color: var(--verta-primary) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    background: none !important;
    padding: 0 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.verta-link-btn:hover {
    text-decoration: underline;
}

/* ==================== Info Box ==================== */


.verta-info-box p {
    margin: 0;
    font-size: 12px;
    display: inline-block;
    margin: 0 3px;
}

/* ==================== Step Info ==================== */
.verta-step-info {
    display: flex;
    align-items: center;
    gap: 7px;
}
.verta-back-btn {
    background: none !important;
    border: none !important;
    color: var(--verta-text-secondary) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 4px 0 !important;
    display: inline-block !important;
}
.verta-back-btn-block {
    display: flex !important;
    width: fit-content !important;
    margin: 0 0 !important;
    padding: 14px 16px !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    background: #e9e9e982 !important;
}
.verta-back-btn-block p {
    margin: auto !important;
}

.verta-back-btn:hover {
    color: var(--verta-text);
}
.verta-info-box {
    text-align: center;
}

.verta-step-description {
    font-size: 14px;
    color: var(--verta-text-secondary);
    margin: 0 0 20px;
}

/* ==================== Form Footer ==================== */
.verta-form-footer {
    margin-top: 16px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.verta-form-footer .verta-link-btn {
    margin: 0 8px;
}

.verta-resend-wrapper {
    text-align: center;
    margin-top: 12px;
}

.verta-resend-otp {
    transition: all 0.2s ease;
}

.verta-resend-otp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verta-resend-otp .verta-spinner {
    margin-left: 5px;
}

/* ==================== Logged In State ==================== */
.verta-logged-in {
    text-align: center;
    padding: 40px 20px;
}

.verta-logged-avatar {
    margin-bottom: 16px;
}

.verta-logged-avatar img {
    border-radius: 50%;
    border: 3px solid var(--verta-border);
}

.verta-logged-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--verta-text);
    margin: 0 0 8px;
}

.verta-logged-text {
    font-size: 14px;
    color: var(--verta-text-secondary);
    margin: 0 0 24px;
}

.verta-logged-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ==================== Responsive ==================== */
@media (max-width: 480px) {
    .verta-form-container {
        padding: 16px;
    }

    .verta-progress {
        padding: 0 10px;
    }

    .verta-progress-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .verta-progress-label {
        font-size: 11px;
    }

    .verta-progress-line {
        margin: 0 8px;
    }

    .verta-form-title {
        font-size: 20px;
    }

    .verta-logged-actions {
        flex-direction: column;
    }

    .verta-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* ==================== Utilities ==================== */
.verta-step {
    display: none;
}

.verta-step-active {
    display: block;
}

.verta-auth-mode {
    display: none;
}

.verta-auth-mode.verta-auth-active {
    display: block;
}

/* ==================== Page Context ==================== */
.verta-login-page {
    background: var(--verta-bg-secondary) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verta-login-box {
    background: var(--verta-bg);
    border-radius: 12px;
    padding: 20px 10px;
    width: 100%;
    max-width: 480px;
}
.verta-countries-list {
    background: var(--verta-bg);
}
.verta-form-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--verta-text);
    margin: 0 0 8px;
}
@media (max-width: 480px) {
    .verta-login-box {
        padding: 24px;
    }
}


/**
 * Verta OTP Inputs Styles
 * استایل اینپوت‌های دینامیک OTP
 *
 * @package Verta
 * @version 1.0.0
 */

/* ==========================================
   OTP Box Container
   ========================================== */

.verta-otp-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    direction: ltr;
    margin: 20px 0;
}

/* ==========================================
   OTP Digit Inputs
   ========================================== */

.verta-otp-digit {
    width: 48px !important;
    height: 56px !important;
    text-align: center;
    font-size: 24px !important;
    font-weight: 400 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fff;
    color: #333 !important;
    transition: all 0.2s ease !important;
    outline: none;
    font-family: unset;
}

.verta-otp-digit:focus {
    background: #f8fff9;
}

.verta-otp-digit:hover {
    border-color: #b0b0b0;
}

/* حالت پر شده */
.verta-otp-digit:valid {
    border-color: #4CAF50;
}

/* حالت خطا */
.verta-otp-digit.error {
    border-color: #f44336;
    background: #fff5f5;
    animation: shake 0.3s ease;
}

/* ==========================================
   Animations
   ========================================== */

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

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

/* ==========================================
   Responsive Design
   ========================================== */

/* تبلت */
@media (max-width: 768px) {
    .verta-otp-digit {
        width: 44px;
        height: 52px;
        font-size: 22px;
    }

    .verta-otp-box {
        gap: 6px;
    }
}

/* موبایل */
@media (max-width: 480px) {
    .verta-otp-digit {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }

    .verta-otp-box {
        gap: 4px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 360px) {
    .verta-otp-digit {
        width: 36px;
        height: 44px;
        font-size: 18px;
    }

    .verta-otp-box {
        gap: 3px;
    }
}

/* ==========================================
   RTL Support
   ========================================== */

.rtl .verta-otp-box {
    direction: ltr; /* OTP همیشه LTR */
}


/* ==========================================
   Accessibility
   ========================================== */

.verta-otp-digit:focus-visible {
    outline: 2px solid #9393931f;
    outline-offset: 2px;
}
/* کاهش حرکت برای کسانی که motion sensitivity دارند */
@media (prefers-reduced-motion: reduce) {
    .verta-otp-digit,
    .verta-otp-digit.error {
        animation: none;
        transition: none;
    }
}


/**
 * Verta Country Selector & Enhanced Styles
 * @version 1.0.0
 */

/* ========================================
   Country Selector
   ======================================== */

.verta-country-selector {
    position: relative;
    z-index: 10;
    order: 1;
    padding: 12px;
    background: #eaf7ff00 !important;
    outline: none;
    border: 1px solid #d1d5db !important;
    border-radius: 10px;
    display: none;
    align-items: center;
    gap: 5px;
    flex-direction: row-reverse;
}
.verta-country-selector.active {
    display: flex !important;
    animation: verta-fade-in 0.2s ease;
}
.verta-country-selected:hover {
    border-color: #6366f1;
    background: #f9fafb;
}

.verta-country-flag {
    width: 20px;
    line-height: 0;
}
.verta-country-flag img {
    border-radius: 50%;
    height: 14px;
    width: 14px;
    border: 1px solid #dee1e559;
}
.verta-country-code {
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    direction: ltr;
}

.verta-country-arrow {
    font-size: 10px;
    color: #9ca3af;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.verta-country-selector:hover .verta-country-arrow {
    transform: translateY(2px);
}

/* Dropdown */
.verta-country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    border: 2px solid #ffffff26;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    min-width: fit-content;
    display: none;
    z-index: 1000;
    overflow: hidden;
}
.verta-country-dropdown.active {
    display: block !important;
    animation: verta-fade-in 0.2s ease;
}

/* استایل disabled برای country selector */
.verta-country-selector.verta-country-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.verta-country-selector.verta-country-disabled:hover {
    border-color: #d1d5db;
    background: white;
}

/* استایل کد کشور ثابت (غیرقابل تغییر) */
.verta-country-fixed {
    position: relative;
    display: inline-flex;
    z-index: 10;
    order: 1;
    padding: 11px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    align-items: center;
    gap: 5px;
    flex-direction: row-reverse;
    pointer-events: none;
    user-select: none;
}

.verta-country-fixed .verta-country-flag {
    width: 20px;
    line-height: 0;
}
.verta-country-fixed .verta-country-flag img {
    border-radius: 50%;
    height: 14px;
    width: 14px;
    border: 1px solid #dee1e559;
}
.verta-country-fixed .verta-country-code {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    direction: ltr;
}

/* انیمیشن */
@keyframes verta-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.verta-country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}


.verta-country-option .verta-country-flag {
    font-size: 24px;
}

.verta-country-option .verta-country-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.verta-country-option .verta-country-code {
    font-size: 13px;
    color: #6b7280;
    direction: ltr;
}

/* ========================================
   Identifier Hint
   ======================================== */

.verta-identifier-hint {
    display: none;
    margin-top: 6px;
    padding: 8px 12px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    border-radius: 6px;
    border-right: 3px solid #3b82f6;
    animation: verta-fade-in 0.3s ease;
}

/* ========================================
   Input Group
   ======================================== */

.verta-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verta-input-group .verta-input {
    flex: 1;
}

/* ========================================
   Mobile Request Form
   ======================================== */

.verta-mobile-request {
    text-align: center;
    padding: 20px;
}

.verta-mobile-request h3 {
    margin: 0 0 24px;
    font-size: 18px;
    font-weight: 400;
    color: #1e40af;
    line-height: 1.6;
}

/* ========================================
   Scrollbar Styling
   ======================================== */

.verta-country-dropdown::-webkit-scrollbar {
    width: 6px;
}

.verta-country-dropdown::-webkit-scrollbar-track {
    background: #f9fafb;
}

.verta-country-dropdown::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.verta-country-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ========================================
   Animations
   ======================================== */

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

@keyframes verta-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.verta-country-dropdown {
    animation: verta-dropdown-in 0.2s ease;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .verta-country-dropdown {
        right: 0;
        left: auto;
        min-width: 200px;
    }

    .verta-country-selected {
        min-width: 90px;
        padding: 8px 10px;
    }

    .verta-mobile-request h3 {
        font-size: 16px;
    }
}


/* ========================================
   RTL Support
   ======================================== */

[dir="rtl"] .verta-country-selector {
    margin-left: 0;
}

[dir="rtl"] .verta-country-dropdown {
    right: auto;
    left: -10px;
}

[dir="rtl"] .verta-identifier-hint {
    border-right: none;
    border-left: 3px solid #3b82f6;
}
/* ==================== جستجوی کشور در Dropdown ==================== */
.verta-country-search {
    width: 100% !important;
    padding: 12px 5% !important;
    border: none  !important;
    border-bottom: 2px solid var(--verta-border,#e5e7eb)  !important;
    background: var(--verta-bg-secondary,#f9fafb)  !important;
    color: var(--verta-text,#111827)  !important;
    font-size: 14px  !important;
    font-family: inherit;
    direction: rtl;
    border-radius: 0 !important;
    outline: none;
    transition: all 0.2s ease;
}

.verta-country-search:focus {
    background: var(--verta-bg, #ffffff);
    border-bottom-color: var(--verta-primary, #2563eb);
}

.verta-country-search::placeholder {
    color: var(--verta-text-secondary, #6b7280);
}

.verta-countries-list {
    max-height: 250px;
    overflow-y: auto;
}

.verta-countries-list::-webkit-scrollbar {
    width: 6px;
}

.verta-countries-list::-webkit-scrollbar-track {
    background: var(--verta-bg-secondary, #f9fafb);
}

.verta-countries-list::-webkit-scrollbar-thumb {
    background: var(--verta-border, #e5e7eb);
    border-radius: 3px;
}

.verta-countries-list::-webkit-scrollbar-thumb:hover {
    background: var(--verta-text-secondary, #6b7280);
}

/* ==========================================
   🎨 Enhanced Styles - Professional UI/UX
   ========================================== */

/* بهبود استایل دکمه‌ها */
.verta-btn {
    padding: 14px 28px !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

/* Ripple effect برای دکمه‌ها */
.verta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.verta-btn:active::before {
    width: 300px;
    height: 300px;
}

.verta-btn-primary {
    background: linear-gradient(135deg, var(--verta-primary) 0%, var(--verta-primary-hover) 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.verta-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
}

.verta-btn-primary:active:not(:disabled) {
    transform: translateY(0) !important;
}

.verta-btn-outline {
    border: 2px solid var(--verta-border) !important;
}

.verta-btn-outline:hover:not(:disabled) {
    border-color: var(--verta-primary) !important;
    color: var(--verta-primary) !important;
    transform: translateY(-1px);
}

/* بهبود استایل input ها */
.verta-input {
    border-radius: 12px !important;
    border: 1px solid var(--verta-border) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.verta-input:focus {
    border-color: var(--verta-primary) !important;
    transform: translateY(-1px);
}

/* بهبود Progress Bar */
.verta-progress-circle {
    width: 40px !important;
    height: 40px !important;
    font-size: 15px !important;
}

.verta-progress-step {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.verta-progress-active {
    transform: scale(1.05);
}

/* بهبود Messages */
.verta-messages {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: verta-slide-down 0.3s ease;
}

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

/* بهبود Form Container */
.verta-form-container {
    transition: all 0.3s ease;
}

/* استایل حرفه‌ای برای Password Toggle */
.verta-password-toggle {
    border-radius: 6px !important;
    transition: all 0.2s;
}

.verta-password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* بهبود Country Selector */
.verta-country-selected {
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.verta-country-selected:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verta-country-dropdown {
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.verta-country-option {
    transition: all 0.2s;
}

.verta-country-option:hover {
    transform: translateX(4px);
}

/* Smooth transitions برای Steps */
.verta-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.verta-step[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
}

.verta-step-active {
    opacity: 1;
    transform: scale(1);
}

/* بهبود Back Button */
.verta-back-btn {
    transition: all 0.2s;
    border-radius: 6px;
    padding: 8px 12px;
}



/* Floating Label Effect (optional) */
.verta-form-group.floating-label {
    position: relative;
}

.verta-form-group.floating-label label {
    position: absolute;
    top: 12px;
    right: 16px;
    transition: all 0.2s;
    pointer-events: none;
    background: var(--verta-bg);
    padding: 0 4px;
}

.verta-form-group.floating-label .verta-input:focus + label,
.verta-form-group.floating-label .verta-input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: var(--verta-primary);
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .verta-btn {
        padding: 12px 24px !important;
    }

    .verta-input {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}



/* Accessibility Improvements */
.verta-btn:focus-visible,
.verta-input:focus-visible {
    outline: none;
    outline-offset: 2px;
}

/* ==================== OTP Sending State (Loading) ==================== */
.verta-otp-sending-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.verta-dots-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.verta-dot {
    width: 12px;
    height: 12px;
    background-color: var(--verta-primary);
    border-radius: 50%;
    animation: verta-dot-pulse 1.4s infinite ease-in-out both;
}

.verta-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.verta-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes verta-dot-pulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.verta-sending-text {
    font-size: 14px;
    color: var(--verta-text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Print Styles */
@media print {
    .verta-popup,
    .verta-popup-overlay,
    .verta-back-btn,
    .verta-progress {
        display: none !important;
    }
}