/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(220, 30, 51, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 76, 76, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: block;
}

h1 {
    font-size: 2.5rem;
    color: #0f4c4c;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #0f4c4c;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Form Styles */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08),
        0 0 0 1px rgba(15, 76, 76, 0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #dc1e33, #0f4c4c);
    border-radius: 30px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.form-container:hover::before {
    opacity: 0.1;
}

.form-container h2 {
    color: #0f4c4c;
    margin-bottom: 35px;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f4c4c;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #e9ecef, #dee2e6) border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover {
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #dc1e33, #0f4c4c) border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #dc1e33, #0f4c4c) border-box;
    box-shadow: 0 0 0 5px rgba(220, 30, 51, 0.15);
    transform: translateY(-1px);
}

/* Consent Section */
.consent-section {
    margin-top: 35px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-radius: 20px;
    border: 1px solid rgba(15, 76, 76, 0.1);
    position: relative;
}

.consent-section h3 {
    margin-bottom: 15px;
    color: #0f4c4c;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-group:hover {
    background-color: #fff;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #dc1e33;
}

.checkbox-group label {
    font-weight: normal;
    cursor: pointer;
    flex: 1;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #dc1e33 0%, #b71829 100%);
    color: white;
    width: 100%;
    margin-top: 30px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(220, 30, 51, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b71829 0%, #941520 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 30, 51, 0.4);
}

.btn-spin {
    background: #dc1e33;
    color: white;
    font-size: 20px;
    font-weight: 700;
    padding: 18px 50px;
    margin-top: 30px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 12px rgba(220, 30, 51, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-spin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-spin:hover::before {
    left: 100%;
}


.btn-spin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 30, 51, 0.4);
    background: #b71829;
}

.btn-secondary {
    background-color: #0f4c4c;
    color: white;
}

.btn-secondary:hover {
    background-color: #0a3636;
}

/* Wheel Container */
.wheel-container {
    text-align: center;
    padding: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08),
        0 0 0 1px rgba(15, 76, 76, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.wheel-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(220, 30, 51, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.wheel-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
    padding: 10px;
}

#wheelCanvas {
    border-radius: 50%;
    box-shadow: 
        0 15px 50px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

#wheelCanvas:hover {
    transform: scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.2),
        0 8px 20px rgba(0,0,0,0.15);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0f4c4c 0%, #0a3636 100%);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.3);
    z-index: 10;
}

.wheel-pointer {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #dc1e33;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3));
    z-index: 11;
}

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

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal h2 {
    color: #0f4c4c;
    margin-bottom: 20px;
    font-size: 2rem;
}

#prizeMessage {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

/* Error Messages */
.error-message {
    background-color: #dc1e33;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Wheel Title */
.wheel-title {
    color: #0f4c4c;
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Prize Celebration */
.prize-celebration {
    font-size: 4rem;
    margin: 20px 0;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Countdown Text */
.countdown-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 30px;
}

#countdown {
    font-weight: bold;
    color: #dc1e33;
    font-size: 1.1rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    #wheelCanvas {
        width: 300px;
        height: 300px;
    }
    
    .wheel-center {
        width: 50px;
        height: 50px;
    }
    
    .wheel-pointer {
        border-left-width: 15px;
        border-right-width: 15px;
        border-top-width: 30px;
    }
}