/* popup_form */
.popup_form {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: .1s ease;
    background-color: rgba(0, 0, 0, .47);
}

.popup_form.active {
    opacity: 1;
    transition: .1s ease;
    visibility: visible;
}

.popup_form.active .popup_form_content {
    top: 50%;
    transition: .2s ease;
}

.popup_form_content {
    position: absolute;
    top: 40%;
    transition: .2s ease;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white-color);
    border-radius: 10px;
    height: auto;
    width: 1050px;
    padding: 2rem;
}

.cancel_btn i {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0 10px 0 0;
    color: var(--white-color);
    font-size: 28px;
    padding: 5px;
    cursor: pointer;
    background: linear-gradient(-45deg, #9C40D4, #D78144);
}

.form_logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form_logo img {
    width: 200px;
}


.progress_bar {
    display: flex;
    background-color: transparent !important;
    margin: 40px 0;
    user-select: none;
}

.progress_bar .step {
    text-align: center;
    width: 100%;
    position: relative;
}

.progress_bar .step p {
    font-weight: 500;
    font-size: 18px;
    color: #D77C3C;
    margin-bottom: 1rem !important;
    text-transform: capitalize;
}

.progress_bar .step .bullet {
    height: 32px;
    width: 32px;
    border: 2px solid #1d1d1d;
    display: inline-block;
    color: #1d1d1d;
    border-radius: 50%;
    position: relative;
    transition: 0.2s;
    font-weight: 500;
    font-size: 17px;
    line-height: 25px;
}

.progress_bar .step .bullet.active {
    border-color: var(--primary);
    background: var(--primary);
}

.bullet span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    display: block;
}

.bullet.active span {
    display: none;
}

.bullet.active .bx {
    display: block !important;
    background-color: var(--secondory-color);
    border-radius: 100%;
    color: var(--white-color);
    border: 1px solid var(--secondory-color);
}

.second_form {
    display: none;
}


.progress_bar .step .bullet.active span {
    display: none;
}

.progress_bar .step .bullet:before,
.progress_bar .step .bullet:after {
    position: absolute;
    content: "";
    bottom: 11px;
    right: -183px;
    height: 3px;
    width: 156px;
    background: var(--secondory-color);
}

.progress_bar .step .bullet.active:after {
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: animate 0.3s linear forwards;
}

.grade_naxt_btn {
    display: flex !important;
}

.grade_naxt_btn button {
    max-width: none !important;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.grade_naxt_btn .next {
    background: linear-gradient(-45deg, #9C40D4, #D78144);
}

@keyframes animate {
    100% {
        transform: scaleX(1);
    }
}

.progress_bar .step:last-child .bullet:before,
.progress_bar .step:last-child .bullet:after {
    display: none;
}

.progress_bar .step p.active {
    color: var(--primary);
    transition: 0.2s linear;
}

.progress_bar .step .bx {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 24px;
    display: none;
}

.progress_bar .step .bx.active {
    display: block;
    color: #fff;
}

.title h4 {
    font-weight: 600;
    color: var(--black-color);
    font-size: 26px;
}



.custom-label {
    display: block;
    cursor: pointer;
    padding: 15px 13px;
    font-size: 20px;
    border: 2px solid var(--secondory-color);
    margin-bottom: 8px;
    text-transform: capitalize;
}

/* .custom-label:hover {
    background-color: #D77C3C;
    color: var(--white-color);
} */

.custom-label.checked {
    background-color: #410200;
    color: #fff;
}

.field {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1rem;
    text-align: center;
}

.field input {
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    padding-left: 15px;
    padding: 10px;
    outline: none;
    margin: 0 1px;
    font-size: 18px;
    transition: border-color 150ms ease;
}

.custom-label input[type="checkbox"] {
    display: none;
}

.next_btn button {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 1rem;
}

.form-outer form .page {
    transition: margin-left 0.3s ease-in-out;
}

@media(max-width:1200px) {
    .popup_form_content {
        width: 98%;
    }
}

@media(max-width:992px) {
    .progress_bar .step p {
        font-size: 16px;
    }

    .progress_bar .step .bullet:before,
    .progress_bar .step .bullet:after {
        right: -144px;
        width: 112px;
    }
}

@media(max-width:768px) {
    .progress_bar {
        display: flex;
        overflow-x: auto;
        /* white-space: nowrap; */
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 10px;
    }

    .step {
        flex: 0 0 auto;
        width: 210px !important;
        /* Adjust based on design */
        text-align: center;
    }

    .custom-label {
        font-size: 16px;
    }

    /* Hide scrollbar for WebKit browsers */
    .progress_bar::-webkit-scrollbar {
        display: none;
    }

}

@media(max-width:576px) {

    .field {
        grid-template-columns: repeat(1, 1fr);
        margin-top: 1rem;
        gap: 10px;
    }

    .field label {
        margin-bottom: 0;
    }

    .title h4 {
        font-size: 20px;
    }

    .form_logo img {
        width: 150px;
    }

    .progress_bar {
        margin: 1rem 0;
    }

    .progress_bar .step .bullet:before,
    .progress_bar .step .bullet:after {
        right: -162px;
        width: 132px;
    }

    .popup_form_content {
        padding: 1.5rem 12px;
    }

    .next_btn button {
        padding: 7px;
    }
}