.feedback-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.material-icons {
    color: #ffffff;
    font-size: 28px;
}

.feedback-fab {
    position: relative;
    background: #000000;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.feedback-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}

.feedback-fab:focus,
.feedback-fab:active,
.feedback-fab:focus-visible {
    background: #000000 !important;
    color: inherit !important;
    outline: none !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35) !important;
}

.feedback-tooltip {
    position: absolute;
    right: 70px;
    bottom: 1px;
    width: 220px;
    padding: 8px;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
    background: #333;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.feedback-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.feedback-box {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 10001;
    animation: fadeInUp 0.3s ease;
    font-family: Arial, sans-serif;

    max-height: calc(100vh - 100px);
    overflow-y: auto;

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.feedback-box.show {
    display: block;
}

.feedback-box h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.feedback-box .form-group {
    margin-bottom: 16px;
    width: 100%;
}

.feedback-box label {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

.feedback-box .radio-group {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.feedback-box .radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.feedback-box .radio-option label {
    margin: 0;
    padding: 0;
}

.feedback-box input[type="radio"] {
    margin: 0;
    transform: scale(1.1);
    cursor: pointer;
}

.feedback-box textarea {
    display: block;
    width: 100%;
    min-height: 140px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    margin-top: 6px;
}

.feedback-box textarea:focus {
    border-color: #C5A572;
    box-shadow: 0 0 4px rgba(197,165,114,0.5);
}

.feedback-box .submit-button {
    background: #C5A572;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    min-width: 100px;
    transition: background 0.2s ease;
}

.feedback-box .submit-button:hover {
    background: #a88a59;
}

.feedback-box .submit-button:focus,
.feedback-box .submit-button:active {
    background: #C5A572;
    outline: none;
    box-shadow: none;
    color: #fff;
}

.feedback-box #cancelar-feedback {
    background: #f5f5f5;
    color: #444;
    border: 1px solid #ccc;
}

.feedback-box #cancelar-feedback:hover {
    background: #e0e0e0;
}

.feedback-box #cancelar-feedback:focus,
.feedback-box #cancelar-feedback:active {
    background: #f5f5f5;
    color: #444;
    outline: none;
    box-shadow: none;
}

.feedback-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-overlay.show {
    display: block;
    opacity: 1;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-right: 6px;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.submit-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

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

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

@media (max-width: 769px) {
    .feedback-box {
        max-height: calc(100vh - 150px);
    }
}