/* =========================================================
   NEWSLETTER POPUP
   ========================================================= */


/* =========================================================
   POPUP OVERLAY
   ========================================================= */

.popup-overlay {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;

    /* DARK TRANSPARENT BACKGROUND */
    background: rgba(0, 0, 0, 0.55);

    z-index: 999999;

    /* HIDDEN BY DEFAULT */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* =========================================================
   SHOW POPUP
   ========================================================= */

.popup-overlay.popup-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* =========================================================
   WHITE POPUP BOX
   ========================================================= */

.newsletter-popup {
    position: relative;

    width: min(650px, 100%);

    /* NORMAL POPUP HEIGHT */
    height: 800px;

    max-height: calc(100vh - 50px);

    background: #ffffff;

    border-radius: 34px;

    overflow: hidden;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: translateY(25px) scale(0.96);

    /*
       HEIGHT ADJUSTMENT ADDED
       Success message ke time JS height
       smoothly increase kar sakega.
    */
    transition:
        transform 0.4s ease,
        height 0.35s ease;
}


/* =========================================================
   POPUP OPEN ANIMATION
   ========================================================= */

.popup-overlay.popup-visible .newsletter-popup {
    transform: translateY(0) scale(1);
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.popup-close {
    position: absolute;

    top: 22px;
    right: 22px;

    width: 58px;
    height: 58px;

    border: none;

    border-radius: 50%;

    background: #b7b7b7;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;

    cursor: pointer;

    z-index: 20;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.popup-close:hover {
    background: #999999;

    transform: rotate(90deg);
}


/* =========================================================
   ROCKET SECTION
   ========================================================= */

.popup-rocket {
    width: 100%;

    height: 285px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-top: 35px;

    box-sizing: border-box;
}


/* =========================================================
   ROCKET IMAGE
   ========================================================= */

.popup-rocket img {
    width: 285px;
    height: 285px;

    max-width: 75%;
    max-height: 285px;

    object-fit: contain;

    display: block;

    animation: rocketFloat 3s ease-in-out infinite;
}


/* =========================================================
   ROCKET FLOAT ANIMATION
   ========================================================= */

@keyframes rocketFloat {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }

}


/* =========================================================
   POPUP CONTENT
   ========================================================= */

.popup-content {
    width: 100%;

    max-width: 600px;

    /*
       CONTENT KO THODA NICHE SHIFT KIYA
    */
    padding: 40px 40px 45px;

    box-sizing: border-box;

    text-align: center;
}


/* =========================================================
   HEADING
   ========================================================= */

.popup-content h2 {
    margin: 0 0 22px;

    color: #050505;

    font-family: "Anton", sans-serif;

    font-size: 78px;

    font-weight: 400;

    line-height: 0.95;

    letter-spacing: 1px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.popup-content p {
    margin: 0 auto 42px;

    color: #111111;

    font-family: "Poppins", sans-serif;

    font-size: 24px;

    font-weight: 500;

    line-height: 1.45;
}


/* =========================================================
   FORM
   ========================================================= */

.popup-form {
    width: 100%;

    /* FORM WIDTH */
    max-width: 470px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 20px;
}


/* =========================================================
   EMAIL INPUT
   ========================================================= */

.popup-form input {
    width: 100%;

    height: 70px;

    padding: 0 24px;

    box-sizing: border-box;

    border: 2px solid #dedede;

    border-radius: 12px;

    outline: none;

    background: #ffffff;

    color: #111111;

    font-family: "Poppins", sans-serif;

    font-size: 18px;

    font-weight: 400;

    appearance: none;

    -webkit-appearance: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.popup-form input::placeholder {
    color: #8a8a8a;

    opacity: 1;
}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

.popup-form input:focus {
    border-color: #111111;

    background: #ffffff;

    color: #111111;

    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   CHROME / SAFARI AUTOFILL FIX
   ========================================================= */

.popup-form input:-webkit-autofill,
.popup-form input:-webkit-autofill:hover,
.popup-form input:-webkit-autofill:focus,
.popup-form input:-webkit-autofill:active {

    -webkit-text-fill-color: #111111 !important;

    color: #111111 !important;

    background-color: #ffffff !important;

    -webkit-box-shadow:
        0 0 0 1000px #ffffff inset !important;

    box-shadow:
        0 0 0 1000px #ffffff inset !important;

    border-color: #dedede !important;

    transition:
        background-color 9999s ease-in-out 0s !important;
}


/* =========================================================
   FIREFOX AUTOFILL FIX
   ========================================================= */

.popup-form input:-moz-autofill {
    background-color: #ffffff !important;

    color: #111111 !important;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.popup-submit {
    width: 100%;

    height: 70px;

    border: none;

    border-radius: 12px;

    background: #050505;

    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: 19px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.popup-submit:hover {
    background: #222222;

    transform: translateY(-2px);
}


.popup-submit:active {
    transform: translateY(0);
}


.popup-submit:disabled {
    cursor: default;

    opacity: 0.75;

    transform: none;
}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.popup-success-message {
    margin-top: 20px;

    display: flex;
    flex-direction: column;

    gap: 5px;

    text-align: center;

    font-family: "Poppins", sans-serif;

    /*
       Prevent success message from
       becoming wider than popup content.
    */
    width: 100%;

    box-sizing: border-box;
}


.popup-success-message strong {
    color: #111111;

    font-size: 17px;

    font-weight: 700;
}


.popup-success-message span {
    color: #777777;

    font-size: 14px;

    font-weight: 400;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .popup-overlay {
        padding: 20px;
    }


    .newsletter-popup {
        width: min(620px, 100%);

        height: 760px;

        border-radius: 30px;
    }


    .popup-rocket {
        height: 250px;

        padding-top: 25px;
    }


    .popup-rocket img {
        width: 245px;
        height: 245px;
    }


    .popup-content {
        max-width: 560px;

        /* CONTENT NICHE */
        padding: 30px 35px 35px;
    }


    .popup-content h2 {
        font-size: 68px;

        margin-bottom: 18px;
    }


    .popup-content p {
        font-size: 20px;

        margin-bottom: 32px;
    }


    /* FORM */

    .popup-form {
        max-width: 440px;

        gap: 18px;
    }


    .popup-form input,
    .popup-submit {
        height: 62px;

        font-size: 17px;
    }


    .popup-close {
        width: 52px;
        height: 52px;

        top: 18px;
        right: 18px;

        font-size: 22px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .popup-overlay {
        padding: 15px;
    }


    .newsletter-popup {
        width: 100%;

        height: auto;

        max-height: calc(100vh - 30px);

        border-radius: 26px;

        overflow-y: auto;
    }


    .popup-rocket {
        height: 205px;

        min-height: 205px;

        padding-top: 25px;
    }


    .popup-rocket img {
        width: 190px;
        height: 190px;

        max-width: 65%;
    }


    .popup-content {
        width: 100%;

        /* CONTENT NICHE */
        padding: 25px 25px 32px;
    }


    .popup-content h2 {
        font-size: 55px;

        margin-bottom: 15px;
    }


    .popup-content p {
        font-size: 16px;

        line-height: 1.45;

        margin-bottom: 25px;
    }


    .popup-content p br {
        display: none;
    }


    /* MOBILE FORM */

    .popup-form {
        width: 100%;

        max-width: 360px;

        margin: 0 auto;

        gap: 12px;
    }


    .popup-form input {
        height: 58px;

        padding: 0 18px;

        font-size: 15px;

        border-radius: 10px;
    }


    .popup-submit {
        height: 58px;

        font-size: 16px;

        border-radius: 10px;
    }


    .popup-close {
        width: 46px;
        height: 46px;

        top: 14px;
        right: 14px;

        font-size: 19px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .newsletter-popup {
        border-radius: 22px;
    }


    .popup-rocket {
        height: 175px;

        min-height: 175px;
    }


    .popup-rocket img {
        width: 160px;
        height: 160px;
    }


    .popup-content {
        /* CONTENT NICHE */
        padding: 20px 20px 25px;
    }


    .popup-content h2 {
        font-size: 47px;
    }


    .popup-content p {
        font-size: 14px;
    }


    .popup-form {
        max-width: 320px;

        gap: 10px;
    }


    .popup-form input,
    .popup-submit {
        height: 54px;
    }

}