/* Feedback button and dialog (home page), styled after the original site. */

.feedback-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px 4px 4px;
    border-radius: 25px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-float-btn[hidden] {
    display: none;
}

.feedback-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.feedback-open-btn {
    padding: 8px 10px 8px 14px;
    border: none;
    background: none;
    color: #fff;
    font: 500 14px Arial, sans-serif;
    cursor: pointer;
}

.feedback-close-btn,
.feedback-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.feedback-close-btn {
    width: 24px;
    height: 24px;
    color: #fff;
    font-size: 20px;
}

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

.feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
}

.feedback-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;
    width: min(480px, calc(100vw - 32px));
    transform: translate(-50%, -50%);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

.feedback-overlay[hidden],
.feedback-modal[hidden] {
    display: none;
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 24px 12px;
    border-bottom: 1px solid #eee;
}

.feedback-modal-header h2 {
    margin: 0;
    color: #1e3c72;
}

.feedback-modal-close {
    width: 30px;
    height: 30px;
    color: #666;
    font-size: 24px;
}

.feedback-modal-close:hover {
    background-color: #f0f0f0;
}

.feedback-modal-body {
    padding: 0 24px 24px;
    color: #333;
}

.feedback-modal-body p {
    margin: 0 0 16px;
}

.feedback-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.feedback-modal-body textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font: 14px Arial, sans-serif;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.feedback-modal-body textarea:focus {
    outline: none;
    border-color: #2a5298;
}

.feedback-modal-body .feedback-note {
    margin: 8px 0 16px;
    color: #666;
    font-size: 12px;
}

.feedback-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    font: 500 14px Arial, sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.feedback-modal-body .feedback-thanks {
    margin: 0;
    color: #2e7d32;
    font-weight: 600;
}

@media (max-width: 600px) {
    .feedback-float-btn {
        bottom: 15px;
        left: 15px;
    }

    .feedback-open-btn {
        font-size: 13px;
    }
}
