/* Rating Overlay Styles */
.rating-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #080821 0%, #1a1a3e 100%);
    background-image: url('/image/avatar_gulfair_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.rating-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.rating-overlay.show {
    opacity: 1;
    visibility: visible;
}

.rating-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.6s ease;
}

/* Message styling matching the template */
.rating-message {
    font-size: 24px;
    color: #f7fafc;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Container matching button-scroll-container */
.button-scroll-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

/* Rating faces container */
.rating-faces-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Individual rating face button */
.rating-face {
    background: rgba(26, 29, 46, 0.95);
    border: 1px solid rgba(184, 134, 11, 0.3);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transform: translateZ(0);
}

.rating-face:hover {
    background: rgba(184, 134, 11, 0.2);
    border-color: rgba(184, 134, 11, 0.6);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.rating-face:active {
    transform: translateY(0) scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.rating-face.selected {
    background: rgba(184, 134, 11, 0.4);
    border-color: rgba(184, 134, 11, 0.8);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.5);
    transform: scale(1.15);
}

/* Rating number below face */
.rating-number {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(247, 250, 252, 0.7);
    font-weight: 500;
}

/* Submit button matching gulf-air-button */
.gulf-air-button {
    background: rgba(26, 29, 46, 0.95) !important;
    color: #f7fafc !important;
    border: 1px solid rgba(184, 134, 11, 0.3) !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    width: 200px !important;
    height: 48px !important;
    text-align: center !important;
    position: relative !important;
    overflow: visible !important;
    backdrop-filter: blur(20px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    transform: translateZ(0);
    margin-top: 20px;
}

.gulf-air-button:hover {
    background: rgba(184, 134, 11, 0.2) !important;
    border-color: rgba(184, 134, 11, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.gulf-air-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    background: rgba(184, 134, 11, 0.3) !important;
}

.gulf-air-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Thank you message */
.thank-you-message {
    font-size: 28px;
    color: #f7fafc;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

.thank-you-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rating-overlay {
        background-image: url('/image/avatar_gulfair_background_mobile.png') !important;
    }
    
    .rating-message {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .rating-faces-container {
        gap: 10px;
    }

    .rating-face {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .gulf-air-button {
        width: 100% !important;
        max-width: 280px !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Emoji bounce effect */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.rating-face.bounce {
    animation: bounce 0.3s ease;
}