/* Global stylings */

input, select {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #FFF;
    outline-color: #0CFF0B;
}

/* Form */
.error {
    border: 2px solid #e60707!important;
    outline-color: #e60707!important;
}

.form {
    width: clamp(320px, 30%, 430px);
    margin: 0 auto;
    padding: 1.5rem;
    z-index: 1;
}

.input-group {
    margin: 2rem 0 0;
}

.end .input-group  {
    margin: 1rem 0 0;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    transform-origin: top;
    animation: animate 0.5s;
}

/* Button */
.btn-group {
    display: flex;
    border-radius: 50px!important;
}

.btn {
    margin: 30px 10px 10px 10px;
    padding: 0.7rem 2rem;
    display: block;
    text-decoration: none;
    width: 50%;
    border-radius: 50px!important;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 12px;
}

.btn-next {
    color: #FFF;
    float: right;
}

.btn-prev {
    background-color: #777;
    color: #000;
}

.btn-complete{
    background-color: #000;
    color: #FFF;
    float: right;
}

.btn:hover {
    box-shadow: 0 0 0 2px #333, 0 0 0 2px #000;
    color: #FFF;
}

textarea {
    resize: vertical;
}

/* Prefixes */

.input-box {
    display: flex;
    align-items: center;
    /* max-width: 300px; */
    background: #fff;
    border: 1px solid #a0a0a0;
    border-radius: 4px;
    padding-left: 0.5rem;
    overflow: hidden;
    font-family: sans-serif;
}

.input-box .prefix {
    font-weight: 300;
    font-size: 14px;
    color: rgb(117, 114, 114);
}

.input-box input {
    border: none;
    outline: none;
}

.input-box:focus-within {
    border-color: #777;
}

/* End Prefixes */

/* Progress bar */

.progress-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    counter-reset: step;
    margin-bottom: 30px;
}

.progress-bar::before,
.progress {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #dcdcdc;
    z-index: -1;
}

.progress {
    background-color: var(--blue-color);
    width: 0;
    transition: 0.5s;
}

.progress-step {
    width: 35px;
    height: 35px;
    background-color: #dcdcdc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-step::before {
    counter-increment: step;
    content: counter(step);
}

.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 0.2rem);
    font-size: 0.85rem;
    color: black !important;
}

.progress-step.active {
    background-color: var(--blue-color);
    color: white;
}

@keyframes animate {
    from {
        transform: scale(1, 0);
        opacity: 0;
    }

    to {
        transform: scale(1, 1);
        opacity: 1;
    }
}