﻿/* Multi-step progress indicator */
.signup-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

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

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
    font-size: 18px;
    line-height: 1;
}

.progress-step.active .step-circle {
    background: #0A5F59 !important;
    border-color: #0A5F59 !important;
    color: #F8FAFC !important;
    box-shadow: 0 4px 12px rgba(10, 95, 89, 0.3) !important;
}

.progress-step.completed .step-circle {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

    .progress-step.completed .step-circle::before {
        content: '✓';
        font-weight: bold;
    }

.progress-step.completed .step-circle {
    font-size: 0;
}

    .progress-step.completed .step-circle::before {
        font-size: 18px;
    }

.step-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #0A5F59 !important;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #10b981 !important;
}

/* Form steps */
.form-step {
    display: none;
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation buttons */
.step-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-prev {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-prev:hover {
        background: #e2e8f0;
    }

.btn-next, .btn-submit {
    flex: 1;
}

/* Form validation styles */
#signUpForm.was-validated input:invalid,
#signUpForm.was-validated select:invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#signUpForm.was-validated input:valid,
#signUpForm.was-validated select:valid {
    border-color: #10b981;
}

#signUpForm.was-validated .phone-number-input:invalid {
    border-color: #dc3545 !important;
}

#signUpForm.was-validated .country-select:invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#signUpForm.was-validated #terms:invalid {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 50px;
    padding: 8px 12px;
    font-size: 15px;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 32px;
        color: #374151;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 48px;
        right: 8px;
    }

    .select2-container--default .select2-selection--single:focus,
    .select2-container--default.select2-container--open .select2-selection--single {
        border-color: #84cc16;
        outline: none;
        box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
    }

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #84cc16;
    color: white;
}

.select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

    .select2-search--dropdown .select2-search__field:focus {
        border-color: #84cc16;
        outline: none;
    }

.select2-results__option {
    padding: 10px 12px;
    font-size: 14px;
}

.select2-container {
    width: 100% !important;
}

/* Validation styling for Select2 */
#signUpForm.was-validated .select2-container--default .select2-selection--single.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#signUpForm.was-validated .select2-container--default .select2-selection--single.is-valid {
    border-color: #10b981 !important;
}
