/* =========================
   REGISTRATION SECTION
========================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body{
    font-family: 'Poppins', sans-serif;
}


.registration-section{
    width: 100%;

    padding: 100px 0;

    background: #f5f7fa;
}

/* CONTAINER */

.registration-container{
    width: 92%;
    max-width: 1150px;

    margin: auto;

     padding: 35px 20px;

    border-radius: 34px;

    background:
    rgba(255,255,255,0.78);

    backdrop-filter: blur(18px);

    border:
    1px solid rgba(255,255,255,0.35);

    box-shadow:
    0 20px 60px rgba(0,0,0,0.08);
}

/* HEADER */

.registration-header{
    text-align: center;

    margin-bottom: 50px;
}

/* TITLE */

.registration-header h2{
    font-size: 48px;

    color: #0b2c6b;

    margin-bottom: 18px;
}

/* TEXT */

.registration-header p{
    font-size: 18px;

    color: #666666;

    line-height: 1.8;
}

/* =========================
   FORM STEPS
========================= */

.form-steps{
    position: relative;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 70px;
    flex-wrap: wrap;
    gap: 20px;
}

.form-step h3{
    font-size: 40px;

    color: #0b2c6b;

    margin-bottom: 45px;

    font-weight: 700;

    position: relative;

    padding-bottom: 16px;
}


.form-step h3::after{
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 80px;
    height: 4px;

    border-radius: 10px;

    background: #e31b23;
}


/* CONNECTING LINE */

.form-steps::before{
    content: "";

    position: absolute;

    top: 28px;
    left: 0;

    width: 100%;
    height: 4px;

    background: #dddddd;

    z-index: 1;
}



/* ACTIVE PROGRESS */

.progress-bar{
    position: absolute;

    top: 28px;
    left: 0;

    width: 0%;

    height: 4px;

    background: #e31b23;

    z-index: 1;

    transition: 0.4s ease;
}

/* STEP ITEM */

.step-item{
    position: relative;

    z-index: 2;

    flex: 1;
    min-width: 90px;

    text-align: center;
}

/* CIRCLE */

.step-circle{
    width: 56px;
    height: 56px;

    margin: auto;

    border-radius: 50%;

    background: #dddddd;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 700;

    margin-bottom: 16px;

    transition: 0.3s ease;
}

/* TEXT */

.step-item p{
    font-size: 20px;

    color: #666666;

    transition: 0.3s ease;
}

/* ACTIVE STEP */

.step-item.active .step-circle{
    background: #e31b23;
}

.step-item.active p{
    color: #e31b23;

    font-weight: 600;
}

/* MOBILE */

@media(max-width:768px){

    .form-steps{
        gap: 10px;
    }

    .step-circle{
        width: 45px;
        height: 45px;

        font-size: 18px;
    }

    .step-item p{
        font-size: 14px;
    }

    .next-btn,
    .prev-btn,
    .submit-btn{
        width: 100%;
    }

}




/* =========================
   PASSPORT UPLOAD
========================= */

.passport-upload{
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* UPLOAD BOX */

.passport-box{
    width: 220px;
    height: 260px;

    background:
    rgba(255,255,255,0.75);

    border:
    2px dashed #ccd5e2;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    overflow: hidden;

    transition: 0.35s ease;
}

/* HOVER */

.passport-box:hover{
    border-color: #0b2c6b;

    transform: translateY(-4px);

    box-shadow:
    0 20px 35px rgba(11,44,107,0.10);
}

/* PLUS ICON */

.passport-box i{
    font-size: 50px;

    color: #555555;
}

/* TEXT */

.passport-upload p{
    margin-top: 20px;

    font-size: 20px;

    color: #666666;
}

/* PASSPORT PREVIEW */

#passportPreview{
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 14px;

    display: none;
}


/* =========================
   FORM GRID
========================= */

.form-grid{
    display: grid;

    grid-template-columns:
    repeat(3, 1fr);

    gap: 30px;

    margin-bottom: 35px;
}

/* FORM GROUP */

.form-group{
    display: flex;

    flex-direction: column;
    width: 100%;
    min-width: 0;
}




/* LABEL */

.form-group label{
    font-size: 18px;

    font-weight: 600;

    color: #222222;

    margin-bottom: 12px;
}

/* INPUTS */

.form-group input,
.form-group select{
    width: 100%;

    padding: 20px 22px;

    border:
    1px solid #d9e0ea;

    border-radius: 16px;

    outline: none;

    font-size: 16px;

    background:
    rgba(255,255,255,0.95);

    transition: 0.35s ease;

    box-shadow:
    0 4px 10px rgba(0,0,0,0.02);
}

/* FOCUS */

.form-group input:focus,
.form-group select:focus{
    border-color: #0b2c6b;

    box-shadow:
    0 0 0 5px rgba(11,44,107,0.10);

    transform: translateY(-2px);
}








/* =========================
   FORM NAVIGATION
========================= */

.form-navigation{
    margin-top: 60px;

    display: flex;

    align-items: center;
}

/* BETWEEN */

.form-navigation.between{
    justify-content: space-between;
}

/* =========================
   NEXT BUTTON
========================= */

.next-btn{
    border: none;

    min-width: 220px;

    padding: 20px 30px;

    border-radius: 16px;

    background:
    linear-gradient(
        135deg,
        #0b2c6b,
        #123d91
    );

    color: #ffffff;

    font-size: 20px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    cursor: pointer;

    transition: 0.35s ease;

    box-shadow:
    0 15px 35px rgba(11,44,107,0.25);
}

/* HOVER */

.next-btn:hover{
    transform: translateY(-3px);

    box-shadow:
    0 20px 40px rgba(11,44,107,0.30);
}

/* ICON */

.next-btn i{
    transition: 0.3s ease;
}

.next-btn:hover i{
    transform: translateX(6px);
}

/* =========================
   PREVIOUS BUTTON
========================= */

.prev-btn{
    border: none;

    min-width: 180px;

    padding: 20px 30px;

    border-radius: 16px;

    background: #eef1f5;

    color: #333333;

    font-size: 20px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    cursor: pointer;

    transition: 0.35s ease;
}

/* HOVER */

.prev-btn:hover{
    background: #dfe5ec;
}

/* ICON ANIMATION */

.prev-btn i{
    transition: 0.3s ease;
}

.prev-btn:hover i{
    transform: translateX(-5px);
}


/* =========================
   TERMS
========================= */

.terms-box{
    margin-top: 20px;
    margin-bottom: 40px;
}

.terms-box label{
    display: flex;

    align-items: flex-start;

    gap: 12px;

    font-size: 17px;

    line-height: 1.7;

    color: #444444;
}

/* CHECKBOX */

.terms-box input{
    margin-top: 5px;
}

/* =========================
   SUBMIT BUTTON
========================= */

.submit-btn{
    border: none;

    padding: 18px 45px;

    border-radius: 14px;

    background: #e31b23;

    color: #ffffff;

    font-size: 18px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}

/* HOVER */

.submit-btn:hover{
    background: #0b2c6b;
}


/* =========================
   SUBMIT LOADER
========================= */

.submit-loader{
    display: none;

    margin-left: 12px;
}

/* LOADING STATE */

.submit-btn.loading{
    opacity: 0.8;

    pointer-events: none;
}

/* SHOW SPINNER */

.submit-btn.loading
.submit-loader{
    display: inline-block;
}

/* =========================
   STEP DISPLAY
========================= */

.form-step{
    display: none;

    opacity: 0;

    transform: translateX(40px);

    transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* ACTIVE */

.form-step.active{
    display: block;

    opacity: 1;

    transform: translateX(0);
}





/* =========================
   COMPLETED STEP
========================= */

.step-item.completed .step-circle{
    background: #16a34a;
}

/* CHECKMARK */

.step-item.completed .step-circle span{
    display: none;
}

.step-item.completed .step-circle::after{
    content: "✓";

    color: #ffffff;

    font-size: 24px;

    font-weight: 700;
}

/* TEXT */

.step-item.completed p{
    color: #16a34a;

    font-weight: 600;
}







/* =========================
   REVIEW SECTION
========================= */

.review-container{
    display: grid;

    grid-template-columns:
    260px 1fr;

    gap: 50px;

    align-items: start;
}

/* PASSPORT */

.review-passport img{
    width: 100%;

    border-radius: 20px;

    box-shadow:
    0 15px 35px rgba(0,0,0,0.10);
}

/* GRID */

.review-grid{
    display: grid;

    grid-template-columns:
    repeat(2, 1fr);

    gap: 30px;
}

/* ITEM */

.review-item{
    padding: 25px;

    border-radius: 18px;

    background:
    rgba(255,255,255,0.80);

    border:
    1px solid #edf1f5;
}

/* TITLE */

.review-item h4{
    font-size: 16px;

    color: #777777;

    margin-bottom: 12px;
}

/* VALUE */

.review-item p{
    font-size: 20px;

    font-weight: 600;

    color: #111111;

    line-height: 1.6;
}


@media(max-width:992px){

    .form-grid{
        grid-template-columns:
        repeat(2, 1fr);
    }

}

@media(max-width:600px){

    .form-grid{
        grid-template-columns:
        1fr;
    }

        .review-grid{
        grid-template-columns: 1fr;
    }


}
/* MOBILE */

@media(max-width:768px){

    .review-container{
        grid-template-columns: 1fr;
    }

    .form-navigation{
    flex-direction: column;
    gap: 15px;
}

}




/* =========================
   SUCCESS SCREEN
========================= */

.success-screen{
    display: none;

    text-align: center;

    padding: 100px 20px;
    width: 100%;
}

/* ACTIVE */

.success-screen.active{
    display: block;
}

/* ICON */

.success-icon{
    width: 120px;
    height: 120px;

    margin: auto auto 35px;

    border-radius: 50%;

    background:
    linear-gradient(
        135deg,
        #16a34a,
        #22c55e
    );

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 50px;

    box-shadow:
    0 20px 40px rgba(34,197,94,0.25);
}

/* TITLE */

.success-screen h2{
    font-size: 42px;

    color: #0b2c6b;

    margin-bottom: 25px;
}

/* TEXT */

.success-screen p{
    max-width: 700px;

    margin: auto;

    font-size: 20px;

    line-height: 1.9;

    color: #666666;

}




/* =========================
   ERROR SCREEN
========================= */

.error-screen{
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    background:
    rgba(0,0,0,0.45);

    z-index: 999999;

    justify-content: center;

    align-items: center;

    padding: 20px;
}



.error-screen.active{
    display: flex;
}



.error-card{
    position: relative;

    width: 100%;

    max-width: 650px;

    background: #ffffff;

    border-radius: 28px;

    padding: 70px 50px;

    text-align: center;

    box-shadow:
    0 20px 60px rgba(0,0,0,0.2);

    animation:
    popupFade 0.3s ease;
}



@keyframes popupFade{

    from{
        opacity: 0;
        transform:
        translateY(-20px)
        scale(0.95);
    }

    to{
        opacity: 1;
        transform:
        translateY(0)
        scale(1);
    }

}



.error-icon{
    width: 120px;
    height: 120px;

    margin: auto auto 30px;

    border-radius: 50%;

    background: #e31b23;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 50px;

    color: #ffffff;
}

.error-card h2{
    font-size: 42px;

    color: #0b2c6b;

    margin-bottom: 20px;
}

.error-card p{
    font-size: 18px;

    color: #666666;

    line-height: 1.8;

    margin-bottom: 40px;
}

.error-btn{
    border: none;

    padding: 16px 40px;

    border-radius: 14px;

    background: #e31b23;

    color: #ffffff;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}

.error-btn:hover{
    background: #0b2c6b;
}




.required-label::after{
    content: " *";
    color: red;
    font-weight: 700;
}







