/* Alef Signup Form Styles */

.alef-signup-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    direction: rtl;
    text-align: right;
}

/* Progress Bar */
.alef-signup-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.alef-signup-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.alef-signup-progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.alef-signup-progress-step.active .step-number {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.alef-signup-progress-step.completed .step-number {
    background: #46b450;
    color: #fff;
    border-color: #46b450;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step-title {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.alef-signup-progress-step.active .step-title {
    color: #0073aa;
    font-weight: bold;
}

/* Form Steps */
.alef-signup-step {
    display: none;
}

.alef-signup-step.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.step-description {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* Form Fields */
.alef-form-field {
    margin-bottom: 20px;
}

.alef-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.alef-form-field .required {
    color: #dc3232;
    margin-right: 4px;
}

.alef-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.alef-form-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.alef-form-input.error {
    border-color: #dc3232;
}

/* File Upload */
.alef-file-input {
    padding: 8px;
}

.alef-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    display: none;
}

.alef-file-preview.has-file {
    display: block;
}

.alef-file-preview .file-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alef-file-preview .remove-file {
    color: #dc3232;
    cursor: pointer;
    text-decoration: none;
}

/* Mobile Verification */
.alef-mobile-verification {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.verification-code-wrapper {
    margin-bottom: 10px;
}

.verification-code-inputs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    direction: ltr;
}

.alef-verification-code-digit {
    width: 50px;
    height: 50px;
    padding: 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s;
    background: #fff;
}

.alef-verification-code-digit:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: scale(1.05);
}

.alef-verification-code-digit:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.alef-verification-code-digit.filled {
    border-color: #46b450;
    background: #f0f9f0;
}

.alef-resend-code {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
}

.alef-resend-code:hover {
    color: #005177;
}

/* Buttons */
.alef-signup-btn {
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.alef-signup-btn:hover {
    background: #005177;
}

.alef-signup-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.alef-signup-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.alef-signup-navigation .alef-signup-btn {
    flex: 1;
}

/* Messages */
.alef-signup-messages {
    margin-top: 20px;
}

.alef-signup-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.alef-signup-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alef-signup-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alef-signup-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading State */
.alef-signup-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .alef-signup-form {
        padding: 20px;
    }

    .alef-signup-progress {
        flex-wrap: wrap;
    }

    .step-title {
        font-size: 10px;
    }

    .verification-code-inputs {
        gap: 8px;
    }

    .alef-verification-code-digit {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
