/* Floating Feedback Button */
.feedback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #EB252A, #ff4757);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(235, 37, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 24px;
}

.feedback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(235, 37, 42, 0.4);
}

.feedback-btn i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Modal Overlay */
.feedback-modal {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.feedback-modal.active {
    visibility: visible;
    opacity: 1;
}


/* Modal Content */
.feedback-content {
    background-color: #fefefe;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 95vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

/* Modal Header */
.feedback-header {
    background: linear-gradient(135deg, #EB252A, #ff4757);
    color: white;
    padding: 20px 30px;
    text-align: center;
    position: relative;
}

.feedback-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.feedback-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feedback-close:hover {
    transform: rotate(90deg);
}

/* Modal Body */
.feedback-body {
    padding: 30px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #EB252A;
    box-shadow: 0 0 0 3px rgba(235, 37, 42, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Rating System */
.rating-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.rating-item:hover {
    border-color: #EB252A;
    background: #fff;
}

.rating-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.rating-options {
    display: flex;
    gap: 10px;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rating-option:hover {
    background: rgba(235, 37, 42, 0.1);
}

.rating-option.selected {
    background: rgba(235, 37, 42, 0.2);
    border-color: #EB252A;
}

.rating-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.rating-icon.bad {
    background: #ff4757;
}

.rating-icon.normal {
    background: #ffa502;
}

.rating-icon.good {
    background: #2ed573;
}

.rating-text {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

/* Submit Button */
.feedback-submit {
    background: linear-gradient(135deg, #EB252A, #ff4757);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.feedback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 37, 42, 0.3);
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.feedback-success {
    display: none;
    text-align: center;
    padding: 40px 30px;
    color: #2ed573;
}

.feedback-success i {
    font-size: 48px;
    margin-bottom: 20px;
}

.feedback-success h3 {
    margin: 0 0 10px 0;
    color: #2ed573;
}

.feedback-success p {
    margin: 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-content {
        margin: 0;
        width: 98%;
        max-width: 98vw;
        max-height: 98vh;
    }
    .feedback-modal {
        padding: 10px 0;
    }
    
    .feedback-body {
        padding: 20px;
    }
    
    .rating-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .rating-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .feedback-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
} 