﻿.wizard-container {
    width: min(800px, 100%);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 90%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
}

.wizard-slide {
    width: 100%;
    transition: transform 0.3s cubic-bezier(.4,1.4,.6,1);
    will-change: transform;
}

    .wizard-slide.pre-slide-in {
        transform: translateX(100%);
        opacity: 0.5;
    }

    .wizard-slide.pre-slide-in-reverse {
        transform: translateX(-100%);
        opacity: 0.5;
    }

    .wizard-slide.slide-in {
        animation: wizard-slide-in 0.3s forwards;
    }

    .wizard-slide.slide-out {
        animation: wizard-slide-out 0.3s forwards;
    }

    .wizard-slide.slide-in-reverse {
        animation: wizard-slide-in-reverse 0.3s forwards;
    }

    .wizard-slide.slide-out-reverse {
        animation: wizard-slide-out-reverse 0.3s forwards;
    }

    .wizard-slide > div {
        width: 100%;
        min-height: 27rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 800px;
    }

.wizard-input {
    width: 100%;
    margin-top: 1em;
    display: grid;
    gap: 0.75rem;
    align-items: start;
}

    .wizard-input.one-col {
        grid-template-columns: 1fr;
    }

    .wizard-input.two-col {
        grid-template-columns: auto 1fr;
    }

        .wizard-input.two-col > label:not(:has(+ textarea)) {
            align-self: center;
        }

.margin-top {
    margin-top: 2rem;
}

input[type=checkbox],
input[type=radio] {
    width: 1.5rem;
    height: 1.5rem;
}

input,
input[type=text],
input[type=url],
textarea {
    width: 100%;
    padding: 5px;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: 1px solid var(--color-medium-gray);
}

.mandatory {
    margin-left: 0.25rem;
    white-space: nowrap;
    color: var(--color-alarm);
}

    .mandatory::after {
        content: "*";
    }

h2 .mandatory {
    font-size: 0.6em;
    vertical-align: super;
}


@keyframes wizard-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0.5;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes wizard-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0.5;
    }
}

@keyframes wizard-slide-in-reverse {
    from {
        transform: translateX(-100%);
        opacity: 0.5;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes wizard-slide-out-reverse {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0.5;
    }
}


@media (max-width: 55rem) {
    .wizard-input.two-col > label:not(.option-label),
    .wizard-input.two-col > input:not([type=checkbox]):not([type=radio]),
    .wizard-input.two-col > textarea {
        grid-column: 1 / -1;
    }
}
