/* assets/css/components/_multi-step-modal.css */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.step-indicator {
    width: 100%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    color: #6b7280; /* gray-500 */
    transition: color 0.3s ease;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #374151; /* gray-700 */
    border: 2px solid #4b5563; /* gray-600 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.step-label {
    font-size: 12px;
    margin-top: 8px;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: #4b5563; /* gray-600 */
    margin: 0 8px;
    transform: translateY(-16px); /* Alinha com o meio do ícone */
    transition: background-color 0.3s ease;
}

/* Active Step Styles */
.step.active .step-icon {
    background-color: #A367FF;
    border-color: #CB99FF;
    color: #F9F6F2;
}
.step.active .step-label {
    color: #F9F6F2;
}

/* Completed Step Styles */
.step.completed .step-icon {
    background-color: #A367FF;
    border-color: #A367FF;
    color: #F9F6F2;
    /* Remove the number when completed */
    font-size: 0;
}

.step.completed ~ .step-connector {
    background-color: #A367FF;
}

.step.completed .step-label {
    color: #A367FF;
}

/* Add a checkmark for completed steps */
.step.completed .step-icon::after {
    content: '✔';
    font-size: 16px;
    color: #F9F6F2;
}

/* Loading animation for submission button */
button.loading {
    cursor: not-allowed;
}

.loading span.dots {
    display: inline-block;
    width: 1em; /* Adjust width as needed */
    text-align: left;
    vertical-align: bottom;
}

@keyframes dots-animation {
    0%, 20% {
        content: ".";
    }
    40%, 60% {
        content: "..";
    }
    80%, 100% {
        content: "...";
    }
}

.loading span.dots::after {
    content: ".";
    animation: dots-animation 1.4s infinite;
}

/* Garante que as opções do dropdown tenham fundo escuro e texto claro para legibilidade */
#registration-modal select option {
    background: #0A090F;
    color: #F9F6F2;
}
