/* Sticky Feedback Widget - Simple Clean Design */
.feedback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.feedback-trigger {
    background-color: #E73439;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 13px;
    font-weight: 400;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.feedback-trigger:hover {
    background-color: #D02F33;
}

.feedback-panel {
    position: absolute;
    bottom: 45px;
    right: 0;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    width: 320px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.feedback-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #5f6368;
    line-height: 1;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feedback-close:hover {
    background-color: #f1f3f4;
    color:#000000;
}

.feedback-step h4 {
    margin-top:0px;
    margin-bottom: 8px;
    color: #202124;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    width:270px;
}

.feedback-step p {
    margin: 0px;
    color: #5f6368;
    font-size: 12px;
    line-height: 1.4;
}

/* Emoji buttons - clean and simple */
.emoji-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.emoji-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    background-color: #f1f3f4;
}

.emoji {
    font-size: 32px;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.emoji svg {
    width: 32px;
    height: 32px;
    fill: #5f6368;
    shape-rendering: auto;
    image-rendering: auto;
}

/* Questionnaire styling */
.checkbox-group {
    margin-bottom: 0px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #202124;
    font-weight: 400;
    gap: 8px;
    padding: 4px 0;
    line-height: 1.4;
}



.checkbox-group input[type="checkbox"] {
    margin: 2px 0 0 0;
    width: 16px;
    height: 16px;
    accent-color: #E73439;
    cursor: pointer;
    flex-shrink: 0;
}

#other-text-container {
    margin-top: 8px;
    margin-left: 0px;
}

#other-text {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    background: white;
    line-height: 1.4;
}

#other-text:focus {
    outline: none;
    box-shadow: 0 0 0 1px #9aa0a6;
}

#other-text::placeholder {
    color: #9aa0a6;
}

.char-counter {
    text-align: right;
    font-size: 11px;
    color: #5f6368;
    margin-top: 4px;
}

.char-counter.warning {
    color: #ea4335;
}

.feedback-submit {
    background-color: #E73439;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin-top: 0px;
}

.feedback-submit:hover {
    background-color: #D02F33;
}

.feedback-submit:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.4);
}

/* Hidden state for widget */
#feedback-widget {
    display: none;
}

#feedback-widget.show {
    display: block;
}

.feedback-step {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .feedback-panel {
        width: calc(100vw - 40px);
        max-width: 300px;
        bottom: 40px;
        padding: 20px;
    }
    
    .emoji-container {
        gap: 12px;
    }
    
    .emoji-btn {
        width: 48px;
        height: 48px;
        padding: 8px;
    }
    
    .emoji {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .feedback-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .feedback-panel {
        width: calc(100vw - 30px);
        max-width: 280px;
        bottom: 35px;
        padding: 16px;
    }
    
    .feedback-step h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .emoji-container {
        gap: 8px;
    }
    
    .emoji-btn {
        width: 44px;
        height: 44px;
        padding: 6px;
    }
    
    .emoji {
        font-size: 26px;
    }
}

/* Simple animations */
.feedback-panel {
    animation: fadeInUp 0.15s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean rendering */
.feedback-widget * {
    box-sizing: border-box;
}