/* Multi-step Form Styling */
.step-form-container .form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-form-container .form-step-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Tracker */
.progressbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    counter-reset: step;
    margin: 2rem 0 3rem;
    list-style: none;
    padding: 0;
}

.progressbar::before,
.progress {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #dcdcdc;
    z-index: 1;
}

.progress {
    background-color: var(--primary-color, #ff4e00);
    width: 0%;
    transition: 0.3s;
    z-index: 2;
}

.progress-step {
    width: 35px;
    height: 35px;
    background-color: #dcdcdc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: 0.3s;
    font-weight: bold;
    color: #999;
}

.progress-step::before {
    counter-increment: step;
    content: counter(step);
}

.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 10px);
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

.progress-step-active {
    background-color: var(--primary-color, #ff4e00);
    color: #fff;
}

.progress-step-check {
    background-color: var(--primary-color, #ff4e00);
    color: #fff;
}

/* Form Fields Styling */
.step-form-container .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.step-form-container .form-control, 
.step-form-container .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
}

.step-form-container .btn-next,
.step-form-container .btn-submit {
    background-color: var(--primary-color, #ff4e00);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.step-form-container .btn-prev {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.step-form-container .btn-next:hover,
.step-form-container .btn-submit:hover {
    background-color: #e64600;
}

/* Loading Overlay */
#form-loader,
.dots-loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(4px);
    color: white;
}

.dots-loader {
    display: flex;
    gap: 8px;
}

.dots-loader div,
.dot {
    width: 15px;
    height: 15px;
    background: #ff4e00;
    border-radius: 50%;
    animation: dotPulse 1.5s infinite ease-in-out;
}

.dots-loader div:nth-child(2),
.dot:nth-child(2) { animation-delay: 0.2s; }

.dots-loader div:nth-child(3),
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1.2); opacity: 1; }
}
