@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;family=Sen:wght@400;700;800&amp;display=swap');

:root
{
    --primary-color: rgb(107, 186, 5);
    --secondary-color: ;
    --text-color: rgb(0, 0, 0);
    --field-color: rgb(255, 255, 255);
}
body
{
    font-family: "Jost";
    width: 100%;
}




main
{
    background-image: url(../images/bg.jpg);
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* header */
header
{
    padding: 15px 60px 30px 60px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}  
.step-count
{
    font-size: 20px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    text-transform: uppercase;
}
#countdown
{
    width: 143px;
    height: 35px;
    border-radius: 10px;
    background-color: rgb(3,3,3);
    font-size: 20px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;

}

.step-bar
{
    width: 100%;
    height: 20px;
    background-color: rgb(192, 192, 192);
    margin-top: 60px;
    position: absolute;
    bottom: 0;
    left: 0;
}
.step-bar .fill
{
    width: 20%;
    height: 100%;
    background-color: var(--primary-color);
    transition: 0.5s;
}


form
{
    flex: 1;
    width: 100%;
    height: 100%;
    background: url(../images/formbg.jpg);
    background-size: cover;
    background-position: center;
    text-align: center;
    display: grid;
    align-content: center;
    padding: 30px 0;
}
.steps
{
    width: 80%;
    margin: 0 auto;
}
.quiz-question
{
    font-size: 35px;
    color: rgb(255, 255, 255);
    font-weight: bold;
}
.radio-field
{
    height: 190px;
    width: 100%;
    position: relative;
    text-align: center;
    display: grid;
    place-content: center;
    margin-top: 60px;

}
.radio-field input
{
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 20px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 46px 0px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    overflow: hidden;
} 
.radio-field input::before
{
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    z-index: 0;
    transition: 0.5s;
}
.radio-field label
{
    font-size: 25px;
    color: var(--text-color);
    font-weight: bold;
    position: relative;
    z-index: 100;
    pointer-events: none;
    height: inherit;
    display: grid;
    align-content: center;
    transition: 0.5s;
    padding: 10px;
}

.radio-field label::before
{
    content: "X";
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 14px 46px 0px rgba(0, 0, 0, 0.09);
    width: 77px;
    height: 77px;
    position: absolute;
    top: -45px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: grid;
    place-content: center;
    transition: 0.5s;

}
.radio-field .op1::before
{
    content: "A";
}
.radio-field .op2::before
{
    content: "B";
}
.radio-field .op3::before
{
    content: "C";
}
.radio-field .op4::before
{
    content: "D";
}
.radio-field input:checked::before
{
    height: 100%;
}

.radio-field input:checked~label
{
    color: rgb(255, 255, 255);
}
.radio-field input:checked~label::before
{
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
}




/* footer */
.btn-area
{
    height: 150px;
}

.next-prev
{
    height: 130px;
    background-color: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
}
.next-prev-inner
{
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 80%;
}
.next-prev button
{
    border: solid 1px rgb(255, 255, 255);
    border-radius: 9px;
    background-color: rgb(218, 215, 215);
    box-shadow: 0px 2px 21px 0px rgba(0, 0, 0, 0.03);
    width: 230px;
    height: 60px;
    font-size: 18px;
    font-family: "Sen";
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
}
.next-prev button i
{
    position: relative;
    top: 1px;
    margin: 0 10px;
}
.next-prev .next
{
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
}

#error div
{
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999999999999999;
}