.wizard-header {
    position: relative;
    padding: 50px;
    border-radius: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    text-align: center;
    background-color: var(--color-topbar);
}

.wizard-title {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wizard-subheading {
    font-weight: 300;
    font-size: 1.3rem;
}

.wizard-title, .wizard-subheading {
    color: var(--site-text);
    margin: 0;
}

.wizard-footer {
    padding: 40px;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;
}

.wizard-footer--centered {
    justify-content: center;
}

@media (min-width: 768px) {
    .wizard-footer {
        flex-direction: row;
    }
}

.wizard-steps-count {
    align-self: center;
}

.wizard-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.wizard-content {
    background: var(--color-background-section);
    box-shadow: 0px 0px 10px var(--gray-1);
    border-radius: 5px;
    margin: 0 auto;
}

.wizard-line {
    position: absolute;
    top: 23px;
    left: 50%;
    z-index: -1;
    height: 3px;
    transition: all 0.5s ease;
}

.wizard-line.background {
    background: var(--gray-5);
    width: 100%;
}

.wizard-line.progress {
    background: var(--primary);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
}

.wizard-line.left {
    left: -50%;
    transform: scaleX(1);
}

.wizard-line.right {
    left: 20px;
    z-index: -2;
}

.wizard-panels {
    position: relative;
    overflow: hidden;
}

.wizard-panel {
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s all;
    padding: 40px;
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.wizard-panel.moving-out-backward,
.wizard-panel.moving-out-forward {
    visibility: hidden;
}

.wizard-panel.moving-out-backward {
    transform: translateX(-100%);
}

.wizard-panel.moving-out-forward {
    transform: translateX(100%);
}

.wizard-panel.moving-in {
    transform: translateX(0);
    position: relative;
}

.wizard-steps {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    pointer-events: none;
    position: absolute;
    left: 0;
    width: 100%;
    transform: translateY(54%);
}

.wizard-step {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    border-radius: 5px;
}

.wizard-step.first {
    margin-left: 20px;
}

.wizard-step.last {
    margin-right: 20px;
}

.wizard-step-content {
    position: relative;
}

.wizard-step-number {
    font-size: 1.3rem;
    background: var(--white-1);
    font-weight: 800;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    border: 5px solid var(--gray-5);
    transition: opacity 0.5s;
    box-sizing: content-box;
    color: var(--black-1);
}

.wizard-step.completed .wizard-step-number {
    opacity: 0;
}

.wizard-step.completed .wizard-checkmark {
    z-index: 0;
    animation: fill 0.4s ease-in-out forwards;
}

.wizard-step.completed .wizard-checkmark-check {
    animation: stroke 0.5s linear 0.4s forwards;
}

.wizard-step.completed .wizard-line {
    transform: scaleX(1);
}

.wizard-checkmark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: -1;
}

.wizard-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    stroke: var(--white-1);
    stroke-width: 5;
}

@keyframes stroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px var(--primary);
    }
}
