/* ShowMyIP Feedback Widget Styles */

.feedback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.feedback-widget.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.feedback-widget-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
    width: 320px;
    max-width: calc(100vw - 40px);
    overflow: hidden;
}

.feedback-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.feedback-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.feedback-body {
    padding: 20px;
}

.feedback-step p {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
}

/* Star Rating */
.rating-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 16px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
}

.star-btn:hover,
.star-btn.active {
    color: #ffd700;
    transform: scale(1.1);
}

.star-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Questions */
.feedback-questions {
    margin-bottom: 20px;
}

.question-group {
    margin-bottom: 20px;
}

.question-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

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

.radio-label {
    display: flex;
    align-items: center;
    font-weight: normal !important;
    font-size: 13px !important;
    color: #5a6c7d !important;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    margin-bottom: 0 !important;
}

.radio-label:hover {
    background-color: #f8f9fa;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    margin-bottom: 0;
}

.radio-label input[type="radio"]:checked + * {
    color: #667eea;
    font-weight: 500;
}

/* Textarea */
#feedback-text {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#feedback-text:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#feedback-text::placeholder {
    color: #aaa;
}

/* Action Buttons */
.feedback-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.btn-back,
.btn-submit {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-back {
    background-color: #f8f9fa;
    color: #5a6c7d;
    border: 1px solid #e1e5e9;
}

.btn-back:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Thank You Message */
.thank-you-message {
    text-align: center;
    padding: 20px 0;
}

.thank-you-message i {
    font-size: 32px;
    color: #28a745;
    margin-bottom: 12px;
    display: block;
}

.thank-you-message h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.thank-you-message p {
    margin: 0;
    color: #5a6c7d;
    font-size: 13px;
    line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .feedback-widget {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .feedback-widget-content {
        width: auto;
        max-width: none;
    }
    
    .feedback-header {
        padding: 14px 16px;
    }
    
    .feedback-body {
        padding: 16px;
    }
    
    .rating-stars {
        gap: 8px;
    }
    
    .star-btn {
        font-size: 28px;
        padding: 6px;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    .btn-back,
    .btn-submit {
        width: 100%;
        padding: 12px 16px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .feedback-widget-content {
        border: 2px solid #000;
    }
    
    .feedback-header {
        background: #000;
        color: #fff;
        border-bottom: 2px solid #000;
    }
    
    .star-btn {
        color: #666;
    }
    
    .star-btn:hover,
    .star-btn.active {
        color: #000;
        background-color: #ffff00;
    }
    
    .btn-submit {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-back {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .feedback-widget {
        transition: opacity 0.2s ease;
        transform: none;
    }
    
    .feedback-widget.show {
        transform: none;
    }
    
    .star-btn,
    .btn-submit {
        transition: none;
    }
    
    .btn-submit:hover {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
.feedback-widget button:focus,
.feedback-widget input:focus,
.feedback-widget textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.feedback-widget .radio-label:focus-within {
    background-color: #f0f2ff;
    outline: 2px solid #667eea;
    outline-offset: 1px;
}

/* Animation for widget appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-widget.show {
    animation: slideInUp 0.4s ease-out;
}

/* Print Styles */
@media print {
    .feedback-widget {
        display: none;
    }
} 