/* 
 * QUAL-IT Promotional Wheel Game CSS
 * Styles for the floating button and spinning wheel promotion
 */

/* ===== FLOATING BUTTON ===== */
.floating-promo-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, bottom 0.5s ease;
    animation: wheel-float 3s ease-in-out infinite alternate, wheel-spin 15s linear infinite;
}

.floating-promo-btn i {
    font-size: 24px;
    color: #fff;
}

.floating-promo-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #3ecf8e;
}

.floating-promo-btn:hover .promo-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.promo-tooltip {
    position: absolute;
    top: -40px;
    background: #3ecf8e;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.promo-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #3ecf8e transparent transparent transparent;
}

.pulse-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #ff3860;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 56, 96, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 0);
    }
}

@keyframes wheel-float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-10px) rotate(360deg);
    }
}

@keyframes wheel-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== MODAL CONTAINER ===== */
.promo-wheel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-wheel-modal[style*="flex"] {
    opacity: 1;
    visibility: visible;
}

body.promo-modal-open {
    overflow: hidden;
}

.promo-wheel-content {
    background: #23243a;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.promo-wheel-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}

.promo-wheel-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.promo-wheel-header {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(45deg, #654c92, #353444);
}

.promo-wheel-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
}

.promo-subheading {
    margin: 8px 0 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== STAGES ===== */
.promo-stages {
    position: relative;
    overflow: hidden;
}

.stage {
    padding: 30px;
    display: none;
}

.stage.active {
    display: block;
    animation: stageFadeIn 0.3s ease;
}

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

/* ===== WHEEL STAGE ===== */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

.wheel {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: rotate(0deg);
    background: #353444;
    box-shadow: 0 0 0 8px #23243a, 0 0 0 10px #654c92;
}

.wheel-section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    transform: rotate(calc(60deg * var(--i)));
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr);
    cursor: pointer;
}

.wheel-section span {
    position: relative;
    transform: rotate(calc(-60deg * var(--i) + 30deg));
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    width: 80px;
    text-align: center;
    display: inline-block;
    margin-top: -60px;
    margin-left: -20px;
}

/* Fine-tuning for specific sections */
.wheel-section[style*="--i:1"] span {
    margin-top: -65px;
    margin-left: -25px;
}

.wheel-section[style*="--i:2"] span {
    margin-top: -60px;
    margin-left: -15px;
}

.wheel-section[style*="--i:3"] span {
    margin-top: -55px;
    margin-left: -15px;
}

.wheel-section[style*="--i:4"] span {
    margin-top: -65px;
    margin-left: -25px;
}

.wheel-section[style*="--i:5"] span {
    margin-top: -60px;
    margin-left: -15px;
}

.wheel-section[style*="--i:6"] span {
    margin-top: -55px;
    margin-left: -15px;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #353444;
    font-weight: 700;
    box-shadow: 0 0 0 8px #353444, 0 5px 15px rgba(0, 0, 0, 0.3);
}

.spinner::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 25px solid #fff;
}

.spin-btn {
    display: block;
    margin: 0 auto;
    background: #3ecf8e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(62, 207, 142, 0.3);
}

.spin-btn:hover {
    background: #32a872;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(62, 207, 142, 0.4);
}

.spin-btn:active {
    transform: translateY(1px);
}

/* ===== RESULT STAGE ===== */
.result-container {
    text-align: center;
    margin-bottom: 30px;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: result-bounce 1s infinite alternate;
}

.result-container h3 {
    font-size: 1.8rem;
    margin: 0 0 15px;
    color: #fff;
}

.prize-text {
    font-weight: 700;
    color: #3ecf8e;
    font-size: 1.2em;
}

.result-description {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes result-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}

/* ===== CLAIM FORM ===== */
.claim-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.claim-form .form-group {
    margin-bottom: 15px;
}

.claim-form label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 500;
}

.claim-form input[type="text"],
.claim-form input[type="email"],
.claim-form input[type="tel"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 1rem;
}

.claim-form input:focus {
    outline: none;
    border-color: #8cc9f0;
    box-shadow: 0 0 0 2px rgba(140, 201, 240, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-checkbox input {
    margin-right: 10px;
}

.claim-btn {
    width: 100%;
    background: #8cc9f0;
    color: #23243a;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.claim-btn:hover {
    background: #7eb9de;
    transform: translateY(-2px);
}

/* ===== THANKS STAGE ===== */
.thanks-container {
    text-align: center;
    padding: 20px 15px;
}

.thanks-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    color: #3ecf8e;
}

.thanks-container h3 {
    font-size: 1.8rem;
    margin: 0 0 15px;
    color: #fff;
}

.thanks-container p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.close-thanks-btn {
    background: #8cc9f0;
    color: #23243a;
    border: none;
    border-radius: 5px;
    padding: 10px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.close-thanks-btn:hover {
    background: #7eb9de;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 600px) {
    .wheel-container {
        width: 260px;
        height: 260px;
    }
    
    .wheel-section span {
        font-size: 0.75rem;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
    
    .promo-wheel-header h2 {
        font-size: 1.5rem;
    }
    
    .promo-subheading {
        font-size: 1rem;
    }
    
    .stage {
        padding: 20px 15px;
    }
    
    .floating-promo-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    
    .floating-promo-btn i {
        font-size: 20px;
    }
}

/* Contact Options Styling */
.contact-options {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-note {
    text-align: center;
    margin: 1.5rem 0 1rem;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.prize-code {
    display: inline-block;
    font-family: monospace;
    font-weight: bold;
    background: var(--primary-color);
    color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

.close-result-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.close-result-btn:hover {
    background: rgba(255, 255, 255, 0.25);
} 