
/* Reset & Base Styles */
.fw-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
}

/* Wheel Wrapper */
.fw-wheel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.fw-wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Wheel Styles */
.fw-wheel {
    width: 100%;
    height: 100%;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    will-change: transform;
}

.fw-wheel.spinning {
    pointer-events: none;
}

/* Arrow/Pointer */
.fw-arrow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #F5004E;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Form Container */
.fw-form-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.fw-form-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #363636;
    font-weight: 600;
}

/* Form Styles */
#fw-spin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

#fw-phone {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    text-align: center;
    direction: ltr;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
}

#fw-phone:focus {
    outline: none;
    border-color: #12623F;
    box-shadow: 0 0 0 3px rgba(18, 98, 63, 0.1);
}

#fw-phone::placeholder {
    direction: rtl;
    font-family: 'Tahoma', sans-serif;
    color: #999;
}

/* Button Styles */
#fw-submit-btn {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #12623F 0%, #0D9488 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(18, 98, 63, 0.3);
}

#fw-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 98, 63, 0.4);
}

#fw-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

#fw-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message Styles */
.fw-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

.fw-message.show {
    display: block;
}

.fw-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.fw-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Winner Message */
.fw-message.winner {
    background: linear-gradient(135deg, #12623F 0%, #0D9488 100%);
    color: white;
    font-size: 20px;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(18, 98, 63, 0.3);
}

/* Loser Message */
.fw-message.loser {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fw-wheel.winner {
    animation: pulse 0.5s ease 3;
}

/* Loading State */
.fw-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fw-container {
        padding: 15px;
    }
    
    .fw-wheel-container {
        width: 320px;
        height: 320px;
    }
    
    .fw-form-container {
        padding: 30px 20px;
    }
    
    .fw-form-container h2 {
        font-size: 20px;
    }
    
    #fw-phone {
        font-size: 16px;
        padding: 14px 16px;
    }
    
    #fw-submit-btn {
        font-size: 16px;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .fw-wheel-container {
        width: 280px;
        height: 280px;
    }
    
    .fw-arrow {
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 30px solid #F5004E;
    }
}