:root
{
    --primary-color: linear-gradient( 270deg, rgb(83,31,172) 20%, rgb(24,78,240) 100%);
    --secondary-color: rgb(215, 215, 215);
    --text-color: ;
    --field-color: ;
}

* {
    font-family: Vazir;
}

.iti {
    width: 100% !important;
}
  
body
{
    width: 100%;
}
main
{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient( 180deg, rgb(83,31,172) 20%, rgb(24,78,240) 100%);
    display: flex;
    flex-direction: column;
    padding: 50px;
    padding-bottom: 100px;
}
/* header */
header
{

    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    margin-bottom: 60px;
} 


#countdown
{
    width: 143px;
    height: 68px;
    border-radius: 10px;
    background: var(--primary-color);
    font-size: 30px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 3px #e0a630;

}
.step-count
{
    font-size: 20px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-transform: uppercase;
}
  


.step-bar
{
    width: 70%;
    margin: 0 auto;
    display: flex;
    line-height: 20px;
    height: 13px;
    justify-content: center;
}
.step-bar .bar
{
    display: flex;
    align-items: center;

}
.step-bar .bar::after
{
    content: "";
    height: 12px;
    width: 50px;
    background: var(--secondary-color);
    position: relative;
    left: -2px;
    transition: 0.5s;
}
.no-line::after
{
    display: none;
}
.step-bar .step-count
{
    border-radius: 50%;
    width: 88px;
    height: 88px;
    font-size: 42px;
    color: rgb(1, 1, 1);
    text-transform: uppercase;
    position: relative;
}
.step-bar .step-count::before
{
    content: "0";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-content: center;
    width: 100%;
    border-radius: 50%;
    height: 100%;
    background: var(--secondary-color);
    z-index: 100;
    transition: 0.5s;
}
.step-bar .st-1::before
{
    content: "1";
}
.step-bar .st-2::before
{
    content: "2";
}
.step-bar .st-3::before
{
    content: "3";
}

.step-bar .st-4::before
{
    content: "4";
}

.step-bar .st-5::before
{
    content: "5";
}
.step-bar .st-6::before
{
    content: "6";
}
.step-bar .st-7::before
{
    content: "7";
}
.step-bar .st-8::before
{
    content: "8";
}
.bar.active .step-count::before
{
    content: url(../images/check.png);
    background: var(--primary-color);
}
.bar.active::after
{
    background: rgb(83, 31, 172);
}

form
{
    background-image: url(bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    border-radius: 25px;
    background-color: rgb(255, 255, 255);
    min-height: 90%;
    flex: 1;
    position: relative;
}
.steps
{
    width: 100%;
    margin: 0 auto;
    padding-top: 100px;
}
.quiz-question
{
    border-radius: 10px;
    background: var(--primary-color);
    width: 70%;
    margin: 0 auto;
    height: 155px;
    font-size: 22px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    display: grid;
    place-content: center;
    padding: 0 50px;
    line-height: 1.5;
  }
  .quiz-question-alert
{
    border-radius: 10px;
    background: var(--primary-color);
    width: 70%;
    margin: 0 auto;
    height: 50px;
    font-size: 15px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    display: grid;
    place-content: center;
    padding: 0 30px;
  }
fieldset
{
    padding: 50px;
    position: relative;
    width: 55%;
    margin: 0 auto;
    overflow: hidden;
}
.radio-field
{
    width: 100%;
    height: 90px;
    position: relative;
    display: grid;
    place-content: center;
    margin-bottom: 20px;
}
.radio-field input
{
    -webkit-appearance: none;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 20px;
    background: var(--secondary-color);
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: 0.5s;
    overflow: hidden;
}
.radio-field label
{
    font-size: 28px;
    color: rgb(13, 20, 36);
    font-weight: bold;
    position: relative;
    z-index: 100;
    pointer-events: none;
    transition: 0.5s;
}
.radio-field input::before
{
    content: "";
    background: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    transition: 0.5s;
    width: 0;
    height: 100%;
}
.radio-field input:checked:before
{
    width: 100%;
}
.radio-field input:checked~label
{
    color: rgb(255, 255, 255);
}
.question
{
    position: absolute;
    left: 50px;
    top: 220px;
    width: 15%;
    height: auto;
}
.next-prev
{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    position: absolute;
    bottom: -50px;

}
.next-prev button
{
    background-color: rgb(128, 128, 128);
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    width: 278px;
    height: 101px;
    border: 0;
    font-size: 16px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-transform: uppercase;
}
.next-prev button i
{
    background-color: rgb(255, 255, 255);
    width: 45px;
    height: 40px;
    font-size: 18px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: rgb(13, 20, 36);
    text-align: center;
    line-height: 40px;
    margin: 0 15px;
}
.next-prev .next
{
    border-radius: 0;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background: var(--primary-color);
}
.next-prev .next i
{
    border-radius: 0;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    color: rgb(255, 255, 255);
    background-color: rgb(0,0,0);
}





#error div
{
    position: fixed;
    top: 20px;
    left: 20px;
}

.custom-input {
    border-radius: 10px;
}

.custom-input:focus {
    border-color: rgb(24,78,240);
    box-shadow: 0 2px 4px rgb(24,78,240);
    outline: none;
}


.custom-button {
    background-color: var(--primary-color);
    color:#333333;
    border-radius: 5px;
    padding: 10px 30px;
    border: none;
    font-weight: bold;
    box-shadow: 0 0 0 0.2rem rgb(24,78,240);
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.custom-button:hover {
    color: rgb(24,78,240);
}

.custom-button:focus {
    outline: none;
    color:rgb(24,78,240);
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1040; /* Make sure it is above the content but below the modal */
}

.special-section {
    border: 2px solid #007bff;
    border-radius: 15px;
    padding: 1rem;
    margin-top: 1.5rem;
    background-color: #f8f9fa;
    animation: fadeIn 1.5s ease-in-out;
}


.logo {
    height: 100px;
}

.steps-countdown{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 100px !important;
}

.title {
    color: white;
    font-weight: bold;
    padding: 30px;
}

/* Animation Keyframes */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
