﻿/* Curves Spinwheel Main Styles */

/* Stage 1 - Form */
.curves-stage-1 {
    animation: fadeIn 0.5s ease-in;
}

/* Stage 2 - Spinwheel */
.curves-stage-2 {
    animation: fadeIn 0.5s ease-in;
}

#curves-spinwheel {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive spinwheel container */
.curves-wheel-container-responsive {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    max-width: 100%;
}

.curves-wheel-wrap-responsive {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    max-width: 100%;
}

/* Stage 3 - Reward */
.curves-stage-3 {
    animation: fadeIn 0.5s ease-in;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */

/* Extra small mobile - 425px and below */
@media (max-width: 425px) {
    .curves-wheel-container-responsive {
        width: 250px !important;
        height: 250px !important;
    }

    .curves-wheel-wrap-responsive {
        width: 250px !important;
        height: 250px !important;
    }

    #curves-spinwheel {
        width: 250px !important;
        height: 250px !important;
    }

    #curves-center-arrow {
        border-left: 10px solid transparent !important;
        border-right: 10px solid transparent !important;
        border-top: 28px solid #dc2626 !important;
    }
}

/* Small mobile - 426px to 640px */
@media (min-width: 426px) and (max-width: 640px) {
    .curves-wheel-container-responsive {
        width: 280px !important;
        height: 280px !important;
    }

    .curves-wheel-wrap-responsive {
        width: 280px !important;
        height: 280px !important;
    }

    #curves-spinwheel {
        width: 280px !important;
        height: 280px !important;
    }

    #curves-center-arrow {
        border-left: 11px solid transparent !important;
        border-right: 11px solid transparent !important;
        border-top: 30px solid #dc2626 !important;
    }
}

/* Tablet - 641px to 1023px */
@media (min-width: 641px) and (max-width: 1023px) {
    .curves-wheel-container-responsive {
        width: 320px !important;
        height: 320px !important;
    }

    .curves-wheel-wrap-responsive {
        width: 320px !important;
        height: 320px !important;
    }

    #curves-spinwheel {
        width: 320px !important;
        height: 320px !important;
    }

    #curves-center-arrow {
        border-left: 12px solid transparent !important;
        border-right: 12px solid transparent !important;
        border-top: 34px solid #dc2626 !important;
    }
}

/* Desktop - 1024px and above uses default 400px from base styles */

/* Form styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Button hover effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

/* Spinwheel container */
.curves-spinwheel-container {
    position: relative;
    width: 100%;
}

/* Pointer indicator for the wheel - fixed (does not rotate with the wheel) */
#curves-wheel-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

#curves-wheel-pointer {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 28px solid #c0262c;
    z-index: 9999;
    pointer-events: none;
}

/* Slightly smaller pointer on mobile */
@media (max-width: 768px) {
    #curves-wheel-container {
        width: 300px;
        height: 300px;
    }
    #curves-wheel-pointer {
        transform: translateX(-50%) translateY(50%);
        border-left: 14px solid transparent;
        border-right: 14px solid transparent;
        border-top: 22px solid #c0262c;
    }
}

/* Print styles */
@media print {
    .curves-stage-3 button {
        display: none;
    }
}
