div#spin-modal * {
    transform-box: border-box;
    margin: auto;
    padding: 0;
}

/* Modal Container */
.spin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0);
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.spin-modal-content {
    border-radius: 5px!important;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px!important;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    text-align: center;
    animation: modalEntrance 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Wheel Container */
div#spin-modal #wheelCanvas {
    width: 400px;
    height: 400px;
    margin: 20px auto;
    display: block;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

}
div#spin-modal p.spintowin_title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 20px!important;
    margin-bottom: 20px !important;
    color: #450738;
}

/* Spin Animation */
@keyframes wheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1440deg); } /* 4 full rotations */
}

.spinning {
    animation: wheelSpin 3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Natural Stop Effect */
@keyframes wheelStop {
    0% { transform: rotate(var(--start-rotation)); }
    100% { transform: rotate(var(--end-rotation)); }
}

.wheel-stop {
    animation: wheelStop 1.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Spin Button */
.spin-now-btn {
    background: #b60f54;
    color: white;
    border: 2px solid #b60f54;
    padding: 10px 40px!important;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-block;
}

.spin-now-btn:hover {
    transform: translateY(-2px);
    background: #b60f54;
}
.spin-now-btn.close {
    background: #ffffff;
    color: #b60f54;
    border: 2px solid #b60f54;
    display: inline-block;
}
button.spin-now-btn.submit {
    margin-top: 24px!important;
    margin-bottom: 19px !important;
}
/* Modal Entrance Animation */
@keyframes modalEntrance {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button */
.spin-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #2c3e50;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

.spin-modal-close:hover {
    transform: rotate(90deg);
}

/* Form Styles */
#winning-form {
    display: none;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#winning-form.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-row {
    margin: 15px 0;
}

#winning-form input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid #450738;
    font-size: 16px;
    transition: border-color 0.3s;
    margin-top: 5px;
}

#winning-form input:focus {
    border-width: 3px;
    outline: none;
}
#winning-form input::placeholder {
    color: #424242;
}
#winning-form input:not(:placeholder-shown) {
    color: #450738;
    font-weight: bold;
}

/* Result Messages */
#coupon-result {
    padding: 18px!important;
    margin: 20px 0;
    border-radius: 5px;
    display: none;
    font-weight: bold;
}

#coupon-result.success {
    background: #dff0d8;
    color: #3c763d;
}
.coupon-message {
    padding: 18px!important;
}
#coupon-result.error {
    background: #f2dede;
    color: #a94442;
}


#spin-wheel-svg {
    margin-bottom: 30px!important;
    margin: auto;
    width: 400px;
    height: 400px;
    transition: transform 5.5s cubic-bezier(.62,0,.45,1.01);
}
.spin-animation {
    transform: rotate(2160deg); /* 6 full rotations (360*6) */
}