/* Feedback Widget Styles */

.feedback-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #00AEEF;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 9998;
}

.feedback-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.6);
}

.feedback-widget-button:active {
    transform: scale(0.95);
}

.feedback-widget-button i {
    transition: transform 0.3s ease;
}

.feedback-widget-button.active i {
    transform: rotate(180deg);
}

.feedback-widget-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
}

.feedback-widget-panel.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.feedback-widget-header {
    background: #00AEEF;
    color: white;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.feedback-widget-body {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.feedback-widget-body .form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.feedback-widget-body .form-control,
.feedback-widget-body .form-select {
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.feedback-widget-body .form-control:focus,
.feedback-widget-body .form-select:focus {
    border-color: #0077A3;
    box-shadow: 0 0 0 0.2rem rgba(0, 119, 163, 0.25);
}

.feedback-widget-body textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.feedback-widget-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.feedback-widget-footer .btn {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
}

.feedback-widget-success,
.feedback-widget-error {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.feedback-widget-success {
    background: var(--brand-snow);
    border: 1px solid var(--brand-cyan);
    color: var(--brand-cyan-on-light);
}

.feedback-widget-error {
    background: #fdeaeb; /* tint of --brand-alarm */
    border: 1px solid var(--brand-alarm);
    color: var(--brand-alarm);
}

.feedback-widget-success.show,
.feedback-widget-error.show {
    display: block;
}

.feedback-widget-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.feedback-widget-loading.show {
    display: block;
}

.feedback-widget-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #0077A3;
}

/* Form check styling */
.feedback-widget-body .form-check {
    margin-bottom: 12px;
}

.feedback-widget-body .form-check-label {
    font-size: 14px;
    color: #555;
}

/* Small text */
.feedback-widget-body .text-muted {
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .feedback-widget-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .feedback-widget-panel {
        bottom: 75px;
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}
