/* Feedback FAB (floating action button) */
.feedback-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background: var(--btn-secondary);
    color: var(--accent-gold);
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: background 0.2s, transform 0.2s;
}

.feedback-fab:hover {
    background: var(--btn-secondary-hover);
    transform: scale(1.08);
}

.feedback-fab.feedback-success {
    border-color: #2a8a2a;
    color: #2a8a2a;
    background: rgba(42, 138, 42, 0.2);
}

/* Feedback modal overlay */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.feedback-overlay.active {
    display: flex;
}

/* Modal content — extends .overlay-content pattern */
.feedback-modal {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
}

.feedback-modal h3 {
    color: var(--accent-gold);
    margin-bottom: 18px;
    font-size: 1.3em;
    text-align: center;
}

/* Form fields */
.feedback-field {
    margin-bottom: 14px;
}

.feedback-field label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 0.9em;
}

.feedback-field select,
.feedback-field textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1em;
}

.feedback-field textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

.feedback-field select:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Character counter */
.feedback-char-count {
    text-align: right;
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-top: 4px;
}

.feedback-char-count.near-limit {
    color: var(--accent-gold);
}

.feedback-char-count.at-limit {
    color: var(--accent-red);
}

/* Error message inside modal */
.feedback-error {
    color: #ff6b6b;
    font-size: 0.85em;
    margin-bottom: 10px;
    text-align: center;
    min-height: 1.2em;
}

/* Action buttons row */
.feedback-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

/* Mobile */
@media (max-width: 600px) {
    .feedback-fab {
        bottom: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.2em;
    }

    .feedback-modal {
        padding: 20px;
        width: 95%;
    }
}
