
/* Keep existing CSS styles */

    :root {
        --primary-color: #2563eb;
        --error-color: #dc2626;
        --border-color: #e5e7eb;
        --text-color: #374151;
        --bg-color: #f3f4f6;
        --success-color: #10B981;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: system-ui, -apple-system, sans-serif;
        background-color: var(--bg-color);
        color: var(--text-color);
        line-height: 1.5;
    }

    .container {
        width: 40%;
        margin: 2rem auto;
        padding: 2rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .form-title {
        font-size: 1.875rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .form-section {
        margin-bottom: 1.5rem;
        padding: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 6px;
    }

    .section-title {
        font-size: 1.25rem;
        font-weight: 500;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="url"],
    input[type="tel"],
    select,
    textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 1rem;
        transition: border-color 0.2s;
    }

    .file-input {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

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

    input:required + label::after {
        content: " *";
        color: var(--error-color);
    }

    .submit-btn {
        background-color: var(--primary-color);
        color: white;
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 4px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        width: 100%;
        transition: background-color 0.2s;
    }

    .submit-btn:hover {
        background-color: #1d4ed8;
    }

    @media (max-width: 640px) {
        .container {
            margin: 1rem;
            padding: 1rem;
            width: 100%;
        }
    }

            .username-wrapper {
        position: relative;
    }

    .username-status {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
    }

    .status-text {
        font-size: 0.75rem;
        margin-right: 24px;
    }

    .status-text.available {
        color: var(--success-color);
    }

    .status-text.unavailable {
        color: var(--error-color);
    }

    .loader {
        width: 16px;
        height: 16px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        animation: spin 1s linear infinite;
        display: none;
    }

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

    .check-icon, .x-icon {
        position: absolute;
        right: 10px;
        top: 34%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        display: none;
    }

    .check-icon {
        color: var(--success-color);
    }

    .x-icon {
        color: var(--error-color);
    }

    /* Add this to the previous styles */
    input[type="text"].username-input {
        padding-right: 100px;
    }

    .errors {
        color: red;
    }

    .form-label {
        display: block;
        font-size: 0.9rem;
        font-weight: 500;
        color: #374151;
        margin-bottom: 0.5rem;
    }
        .file-input-wrapper {
    position: relative;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-input-label:hover {
    border-color: #5957f9;
    background-color: #f3f4ff;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Add these new styles */
.form-step {
    display: none;
}

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

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prev-button {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.next-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.submit-button {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    margin-bottom: 2rem;
    border-radius: 2px;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7280;
}

.step.active {
    color: var(--primary-color);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
}

input.error,
select.error,
textarea.error {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.required-field {
    color: var(--error-color);
    padding: 2px;
}