/* Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 998;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    min-width: 140px;
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: #444;
}

.feedback-button:active {
    transform: translateY(0);
}

.feedback-text {
    line-height: 1;
}

/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-modal.show {
    display: flex;
    opacity: 1;
}

.feedback-content {
    background: white;
    border-radius: 0;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 0 2px #000, 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

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

.feedback-content h3 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #000;
    text-align: center;
}

.feedback-subtitle {
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 300;
}

/* Form Styles */
.feedback-form-wrapper {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #000;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
}

/* Reorder form - email after feedback */
.form-group:last-of-type {
    order: 2;
}

.char-count {
    text-align: right;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.feedback-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.feedback-actions .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #000;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.feedback-actions .btn-secondary {
    background: #fff;
    color: #000;
}

.feedback-actions .btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #000;
}

.feedback-actions .btn-primary {
    background: #000;
    color: #fff;
}

.feedback-actions .btn-primary:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #666;
}

.feedback-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Dark Mode Styles */
.dark-mode .feedback-button {
    background: #f0f0f0;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .feedback-button:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-mode .feedback-content {
    background: #000;
    color: #fff;
    box-shadow: 0 0 0 2px #fff, 0 10px 50px rgba(255, 255, 255, 0.1);
}

.dark-mode .feedback-content h3 {
    color: #fff;
}

.dark-mode .feedback-subtitle {
    color: #999;
}

.dark-mode .form-group label {
    color: #fff;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background: #000;
    color: #fff;
    border-color: #fff;
}

.dark-mode .form-group input:focus,
.dark-mode .form-group textarea:focus {
    background: #111;
    border-color: #fff;
    box-shadow: 0 4px 0 #fff;
}

.dark-mode .feedback-actions .btn-secondary {
    background: #000;
    color: #fff;
    border-color: #fff;
}

.dark-mode .feedback-actions .btn-secondary:hover {
    background: #111;
    box-shadow: 0 4px 0 #fff;
}

.dark-mode .feedback-actions .btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.dark-mode .feedback-actions .btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 0 #999;
}

.dark-mode .char-count {
    color: #999;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .feedback-modal {
        padding: 20px;
    }
    
    .feedback-content {
        max-width: 90%;
        max-height: 80vh;
        padding: 2rem;
        margin: auto;
    }
    
    .feedback-content h3 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .feedback-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .feedback-actions {
        margin-top: 2rem;
        gap: 1rem;
    }
    
    .feedback-actions .btn {
        min-width: 120px;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .feedback-button {
        bottom: 15px;
        left: 15px;
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .theme-toggle {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
    }
}

/* Toast Notifications for Feedback */
.toast-success {
    background-color: #1db954;
}

.toast-error {
    background-color: #ff6b6b;
}

.toast-info {
    background-color: #17a2b8;
}