/* ========== Feedback Widget Styles ========== */
.feedback-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(124, 138, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feedback-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(124, 138, 255, 0.6);
}
.feedback-fab svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.feedback-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.feedback-overlay.active {
    display: flex;
}

.feedback-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid #2a2a4a;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    animation: feedbackSlideIn 0.3s ease;
}
@keyframes feedbackSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e1e3a;
    border: 1px solid #2a2a4a;
    color: #8888aa;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
}
.feedback-close:hover {
    color: #fff;
    border-color: #7c8aff;
}

.feedback-modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #e0e0e8;
}
.feedback-modal .subtitle {
    font-size: 0.85rem;
    color: #5a5a7a;
    margin-bottom: 24px;
}

.feedback-field {
    margin-bottom: 18px;
}
.feedback-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #a0a0c0;
    margin-bottom: 6px;
}
.feedback-field label .optional {
    font-weight: 400;
    color: #5a5a7a;
    font-size: 0.78rem;
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    padding: 10px 14px;
    background: #0f0f1a;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: #e0e0e8;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}
.feedback-field input:focus,
.feedback-field textarea:focus {
    border-color: #7c8aff;
}
.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
    color: #3a3a5a;
}
.feedback-field textarea {
    resize: vertical;
    min-height: 100px;
}

.star-rating {
    display: flex;
    gap: 6px;
    cursor: pointer;
}
.star-rating .star {
    font-size: 1.6rem;
    color: #2a2a4a;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}
.star-rating .star.active {
    color: #f0c040;
}
.star-rating .star:hover {
    transform: scale(1.2);
}

.feedback-submit {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.feedback-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.feedback-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.feedback-thanks {
    display: none;
    text-align: center;
    padding: 20px 0;
}
.feedback-thanks.active {
    display: block;
}
.feedback-thanks .icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.feedback-thanks h3 {
    margin-bottom: 8px;
}
.feedback-thanks p {
    color: #8888aa;
    font-size: 0.92rem;
}

.feedback-error {
    color: #ff6b6b;
    font-size: 0.82rem;
    margin-top: 4px;
    display: none;
}
.feedback-error.active {
    display: block;
}

@media (max-width: 768px) {
    .feedback-fab {
        bottom: 20px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    .feedback-modal {
        padding: 24px;
    }
}

