#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
    z-index: 999;
}
#overlay.active {
    opacity: 1;
    visibility: visible;
}
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -350%);
    opacity: 0;
    transition:
        transform 0.55s ease,
        opacity 0.55s ease;  
    z-index: 1000;
    pointer-events: none;
}
#popup.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}
.popup-box {
    display: flex;
    width: 1100px;
    max-width: 95%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    padding: 10px;
}
.close-popup {
    position: absolute;
    top: 18px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.6;
    color: #90939F;
}
.close-popup:hover {
    opacity: 1; 
}
.popup-left {
    flex: 1.1;
    padding: 50px 30px 0 40px;
    border-radius: 12px;
    background: #f5fae1 url("../images/new-popup-gif.gif") no-repeat center bottom;
}
.popup_heading {
    font-size: 26px;
    color: #1B1836;
    margin: 30px 0 20px;
}
.popup_content {
    font-size: 15px;
    color: #5E6273;
    line-height: 22px;
}
.popup-left img.popup-avatar {
    width: 100%;
    max-width: 260px;
    margin-bottom: 20px;
}

.popup-left h2 {
    font-size: 24px;
    margin-bottom: 12px;
}
.popup-right {
    flex: 1;
    padding: 40px;
}
.verified {
    font-size: 13px;
    color: #90939F;
}
.popup-right h1 {
    font-size: 32px;
    color: #1B1836;
    margin: 15px 0 35px;
}
.terms, .terms a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #737373;
    font-size: 14px;
}
.terms a{
    text-decoration: underline;
}
.form_submit {
    margin-top: 40px;
    width: 100%;
}
.form_submit .solid_btn {
    width: 100%;
    text-align: center;
    cursor: pointer;
    height: 47px;
    font-size: 16px;
}
.contact-info {
    margin-top: 20px;
}
.contact-info p {
    color: #737373;
    font-size: 15px;
    gap: 5px;
}
.popup_footer {
    gap: 15px;
    margin-top: 20px;
}
.contact-info .popup_footer p:first-child {
    border-right: 1px solid #D9D9D9;
    padding-right: 15px;
}
.popup_footer a {
    color: #1B1836;
    font-size: 16px;
}
#thankYouPopup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.25s ease;
}
#thankYouPopup.show {
    opacity: 1;
    pointer-events: auto;
}
.thank-popup-box {
    background: #ffffff;
    padding: 32px 28px 24px;
    border-radius: 16px;
    max-width: 360px;
    text-align: center;
    position: relative;
}
#thankYouPopup h2 {
    margin: 0 0 10px;
}
#thankYouPopup .popup-icon {
    margin: 4px auto 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5fae1;
    color: #638C1C;
}
@media(max-width: 980px){
    .popup-left {
        display: none;
    }
    .popup-box {
        width: 600px;
        max-width: 100%;
    }
}
@media(max-width: 767px){
    .popup-box {
        width: 400px;
    }
    .popup-right {
        padding: 15px 10px;
    }
    .terms, .terms a {
        flex-wrap: wrap;
        row-gap: 0px;
    }
    .popup-right h1 {
        font-size: 24px;
        margin: 15px 0 25px;
    }
    input, select {
        padding: 15px;
        font-size: 14px;
    }
    .form_submit .solid_btn {
        font-size: 14px;
        padding: 10px 0;
    }
    .form_submit {
        margin-top: 25px;
    }
    .popup_footer a {
        font-size: 14px;
    }
}
@media(max-width: 420px){
    .popup-box {
        width: 350px;
    }
}
