/* ===============================
   Devotee Floating Form
================================== */

/* Make sure your header has position:relative */
.header{
    position:relative;
}

/* Floating Form */
.popup-overlay{
    position:absolute;
    top:10px;              /* Move upward */
    right:60px;
    width:430px;
    z-index:99999;
    background:transparent;
    display:block;
}
.popup-top{
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:55px;
    background:#fff;
    z-index:1000;
}
/* Popup Box */
.popup-box{
    position:relative;
    width:100%;
    height:85vh;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
    animation:popupAnimation .35s ease;
}

/* Scroll only inside form */
.popup-body{
	 height:100%;
   
 position:relative;
    overflow-y:auto;
    overflow-x:hidden;

    padding:60px 25px 25px;
}

/* Scrollbar */
.popup-body::-webkit-scrollbar{
    width:8px;
}

.popup-body::-webkit-scrollbar-thumb{
    background:#8b1c2d;
    border-radius:20px;
}

.popup-body::-webkit-scrollbar-track{
    background:#f2f2f2;
}

/* Animation */
@keyframes popupAnimation{
    from{
        opacity:0;
        transform:translateY(-20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Close Button */
.close-popup{
    position:sticky;
    top:10px;

    float:right;

    width:40px;
    height:40px;

    background:#fff;
    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:32px;
    font-weight:bold;

    color:#8b1c2d;

    cursor:pointer;

    z-index:999999;
}

.close-popup:hover{
    background:#8b1c2d;
    color:#fff;
}

/* Header */
.popup-header{
    text-align:center;
    margin-bottom:20px;
}

.logo-circle{
    width:90px;
    height:90px;
    margin:0 auto 15px;
    border-radius:50%;
    overflow:hidden;
}

.logo-circle img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.popup-header h4{
    color:#c28b00;
    font-size:18px;
    margin-bottom:8px;
}

.popup-header h2{
    color:#8b1c2d;
    font-size:28px;
    line-height:1.3;
}

/* Form */
.form-group{
    margin-bottom:16px;
}

.form-group input,
.form-group textarea{
    width:100%;
    border:2px solid #ddd;
    border-radius:15px;
    padding:15px;
    font-size:15px;
    outline:none;
    transition:.3s;
}

.form-group input{
    height:52px;
}

.form-group textarea{
    resize:none;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color:#8b1c2d;
    box-shadow:0 0 8px rgba(139,28,45,.15);
}

/* Interest */
.interest-title{
    color:#8b1c2d;
    font-size:17px;
    font-weight:600;
    margin-bottom:12px;
}

.checkbox-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-bottom:20px;
}

.checkbox-grid label{
    display:flex;
    gap:8px;
    font-size:14px;
}

/* Agree Box */
.agree-box{
    background:#fff9ef;
    border:1px solid #f0d59d;
    border-radius:12px;
    padding:12px;
    margin-bottom:20px;
}

.agree-box label{
    display:flex;
    gap:10px;
    font-size:13px;
}

/* Button */
.join-btn{
    width:100%;
    height:50px;
    border:none;
    border-radius:15px;
    background:#7b3f00;
    color:#fff;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.join-btn:hover{
    background:#5f2f00;
}

/* Footer */
.popup-footer{
    margin-top:25px;
    padding-top:15px;
    border-top:1px solid #eee;
    text-align:center;
}

.popup-footer p{
    color:#555;
    font-size:14px;
    line-height:1.7;
}

.popup-footer h4{
    color:#8b1c2d;
    font-size:18px;
}

/* Mobile */
@media (max-width:991px){

    .popup-overlay{
        position:fixed;
        top:70px;
        left:50%;
        right:auto;
        transform:translateX(-50%);
        width:95%;
        max-width:420px;
    }

    .popup-box{
        height:80vh;
    }

    .checkbox-grid{
        grid-template-columns:1fr;
    }

    .popup-header h2{
        font-size:22px;
    }
}