/* Custom styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.error {
    color: red;
    font-size: 0.875rem;
}
h2 {
    text-align: center
}
hr {
    padding-bottom: 20px
}

/* Progress bar styles */
.progress-bar {
    margin: 2rem auto;
    padding: 0 1rem;
    max-width: 400px;
}

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

.step-container::before {
    content: "";
    background-color: #e5e7eb;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    z-index: 0;
}

.progress {
    background-color: #3b82f6;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 0%;
    z-index: 1;
    transition: width 0.6s ease-in-out;
}

.step {
    background-color: white;
    border: 3px solid #e5e7eb;
    border-radius: 100%;
    height: 2.5rem;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.step.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.step.active {
    border-color: #3b82f6;
    background-color: #3b82f6;
    color: white;
}

.step.completed {
    border-color: #3b82f6;
    background-color: #3b82f6;
    color: white;
    animation: completeStep 0.5s ease-out forwards;
}

@keyframes completeStep {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.step.completed::after {
    content: '✓';
    display: inline-block;
    animation: checkmark 0.3s ease-in-out forwards;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.step-label {
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
}
