/* ===============================
   POPUP WRAPPER
================================= */
.rbt-lead-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* ===============================
   POPUP INNER BOX
================================= */
.rbt-lead-popup-inner {
    width: 850px;
    max-width: 100%;
    height: 520px;
    max-height: 95vh;
    background: #ffffff;
    display: flex;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

/* ===============================
   LEFT VIDEO SECTION
================================= */
.rbt-lead-left {
    width: 50%;
    position: relative;
}

.rbt-lead-left video,
.popup-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   RIGHT FORM SECTION
================================= */
.rbt-lead-right {
    width: 50%;
    padding: 50px;
    position: relative;
}

/* Close Button */
.popup-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* ===============================
   INPUT FIELDS
================================= */
.custom-input {
    width: 100%;
    height: 52px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding-left: 18px;
    font-size: 16px;
    outline: none;
}

.custom-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    display: flex;
    width: 100%;
    height: 52px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
}

.country-code {
    flex: 0 0 20%;
    height: 100%;
    border: none;
    background: #f8f9fa;
    padding: 0 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.phone-number {
    flex: 1;
    height: 100%;
    border: none;
    padding-left: 15px;
    font-size: 18px;
    outline: none;
}

.phone-input-wrapper:focus-within {
    border-color: #18b98f;
}

/* ===============================
   BUTTON
================================= */
.signup-btn {
    background: #18b98f;
    border: none;
    padding: 12px;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.3s;
}

.signup-btn:hover {
    background: #149c78;
}

/* ===============================
   SUCCESS POPUP
================================= */
.success-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.success-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    animation: popupFade 0.3s ease;
}

.success-box button {
    margin-top: 15px;
    background: #18b98f;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
}

/* ===============================
   ANIMATION
================================= */
@keyframes popupFade {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

/* ==========================================
   TABLET RESPONSIVE (Below 992px)
============================================= */
@media (max-width: 992px) {

    .rbt-lead-popup-inner {
        width: 95%;
        height: auto;
    }

    .rbt-lead-right {
        padding: 35px;
    }
}

/* ==========================================
   MOBILE RESPONSIVE (Below 768px)
============================================= */
@media (max-width: 768px) {

    .rbt-lead-popup {
        padding: 15px;
    }

    .rbt-lead-popup-inner {
        flex-direction: column;
        width: 100%;
        height: auto;
        max-height: 95vh;
        border-radius: 12px;
    }

    /* Show video on mobile */
    .rbt-lead-left {
        display: block;
        width: 100%;
        height: 180px;   /* 👈 control video height here */
    }

    .rbt-lead-left video {
        position: relative;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .rbt-lead-right {
        width: 100%;
        padding: 25px;
    }

    .rbt-lead-right h4 {
        font-size: 20px;
        text-align: center;
    }

    .custom-input,
    .phone-input-wrapper {
        height: 48px;
        font-size: 14px;
    }

    .signup-btn {
        height: 48px;
        font-size: 14px;
    }
}