.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20000 !important;
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    padding-bottom: 100px;
    /* Added space to avoid button overlap on mobile */
}

.modal-content {
    background: #2a3042;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
    z-index: 20001 !important;
}

#ebook {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 10000;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    background-color: #ef7f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#spinbtn {
    position: fixed;
    bottom: 155px;
    right: 20px;
    z-index: 10000;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    background-color: #ef7f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-btn {
    font-size: 16px;
    padding: 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    background: #ef7f1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
    z-index: 20002 !important;
    position: relative;
    margin-bottom: 20px;
    /* Ensures spacing from bottom or any overlapping elements */
}

.submit-btn:hover,
.submit-btn:active {
    background: #d66f17;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #4a5065;
    border-radius: 6px;
    background: #3a4055;
    color: #fff;
}

/* SweetAlert2 fix */
.swal2-container {
    z-index: 20003 !important;
}

/* Botman widget */
#botmanWidgetRoot {
    z-index: 999 !important;
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    display: none;
}

/* Wheel styles */
.hero-div {
    display: flex;
    margin: auto;
    position: relative;
}

.wheel {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 4px solid;
    margin: 20px auto;
}

.wheel::before {
    content: "";
    position: absolute;
    /* border: 4px solid rgba(255, 255, 255, 0.1); */
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 100;
}

#inner-wheel {
    width: 100%;
    height: 100%;
    transition: all 6s cubic-bezier(0, .99, .4, .99);
}

.wheel div.sec {
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    transform-origin: 0% 100%;
}

.wheel div.sec:nth-child(1) {
    transform: rotate(0deg) skewY(-30deg);
    /* background: #369FEB; */
    /* background: #ed7d22; */
    background: #742ab3 ;
}

.wheel div.sec:nth-child(2) {
    transform: rotate(60deg) skewY(-30deg);
    /* background: #FFB01F; */
    /* background: #202e61; */
    background: #ff0000 ;
}

.wheel div.sec:nth-child(3) {
    transform: rotate(120deg) skewY(-30deg);
    /* background: #B3780B; */
    /* background: #ed7d22; */
    background: #23ccfd ;
}

.wheel div.sec:nth-child(4) {
    transform: rotate(180deg) skewY(-30deg);
    /* background: #369FEB; */
    /* background: #202e61; */
    background: #ff7e00 ;

}

.wheel div.sec:nth-child(5) {
    transform: rotate(240deg) skewY(-30deg);
    /* background: #FFB01F; */
    /* background: #ed7d22; */
    background: #079d00 ;

}

.wheel div.sec:nth-child(6) {
    transform: rotate(300deg) skewY(-30deg);
    /* background: #B3780B; */
    /* background: #202e61; */
    background: #0c60d2 ;

}

.wheel div.sec .label {
    position: absolute;
    z-index: 10000;
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-align: center;
    width: 100%;
    height: 100%;
    top: 60%;
    left: 10%;
    transform: skewY(30deg) rotate(-60deg);
}

#spin {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -40px 0 0 -40px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    z-index: 100;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
}

#spin:hover {
    transform: scale(1.05);
}

#spin::after {
    content: "SPIN";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: #8b0000;
    text-align: center;
    line-height: 1;
    z-index: 102;
}

#spin::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 12px;
    border-style: solid;
    border-width: 0 12px 16px 12px;
    border-color: transparent transparent #fff transparent;
    z-index: 101;
}

#inner-spin {
    width: 70px;
    height: 70px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffd700, #ffaa00);
    border: 3px solid #ef7f1a;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 99;
    transition: transform 0.2s ease;
}

#inner-spin:hover {
    transform: scale(1.05);
}

/* Result Modal */
#result-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 4px solid #4caf50;
    border-radius: 10px;
    padding: 40px 30px;
    z-index: 20004 !important;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.4s ease;
    max-width: 560px;
    width: 90%;
    font-family: 'Segoe UI', sans-serif;
}

#result-text {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

#selected-entry {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

#result-modal button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ef7f1a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@keyframes scaleIn {
    0% {
        transform: scale(0.5) translate(-50%, -50%);
        opacity: 0;
    }

    100% {
        transform: scale(1) translate(-50%, -50%);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .wheel {
        width: 350px;
        height: 350px;
    }

    #ebook {
        width: 60px;
        height: 60px;
    }

    .modal {
        padding-top: 10px;
        padding-bottom: 100px;
        /* Space at bottom for button on small screens */
    }

    .modal-content {
        width: 95%;
        padding: 15px;
        margin: 0 auto;
    }

    .modal-dialog {
        margin: 10px;
    }

    .trk-btn,
    .submit-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Adjust recaptcha scaling on mobile */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        width: 100%;
    }
}


/* @keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(3deg);
    }

    50% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.wiggle {
    animation: wiggle 0.3s ease;
} */

/* ... (Keep all existing styles below #inner-spin unchanged) ... */

/* Responsive adjustments */
/* @media (max-width: 768px) {
    .wheel {
        width: 350px;
        height: 350px;
    }

    #spin {
        width: 70px;
        height: 70px;
        margin: -35px 0 0 -35px;
    }

    #spin::before {
        border-width: 0 10px 14px 10px;
        top: -12px;
    }

    #spin::after {
        font-size: 16px;
    }

    #inner-spin {
        width: 60px;
        height: 60px;
        margin: -30px 0 0 -30px;
    }

    #ebook {
        width: 60px;
        height: 60px;
    }

    .modal {
        padding-top: 10px;
        padding-bottom: 100px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
        margin: 0 auto;
    }

    .modal-dialog {
        margin: 10px;
    }

    .trk-btn,
    .submit-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Adjust recaptcha scaling on mobile */
/* @media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        width: 100%;
    }
} */
