/* Feedback Widget Styles */

.feedback-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5em 1em;
    background-color: #3498db;
    color: #ffffff;
    border: 1px solid #3498db;
    border-radius: 4px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    position: fixed;
    z-index: 1000;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.feedback-trigger:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.feedback-trigger:active {
    box-shadow: none;
    transform: translateY(1px);
}

.feedback-trigger svg {
    width: 20px;
    height: 20px;
}

.feedback-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.15);
    z-index: 1001;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #bdc3c7;
}

.feedback-header h3 {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: none;
    letter-spacing: normal;
}

.feedback-close {
    background: none;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1;
    color: #5d6d7e;
    cursor: pointer;
    padding: 4px 8px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.feedback-close:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.feedback-form {
    padding: 20px;
}

.feedback-field {
    margin-bottom: 16px;
}

.feedback-field label {
    display: block;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: normal;
}

.feedback-field .required {
    color: #dc2626;
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.feedback-field textarea {
    resize: vertical;
    min-height: 80px;
}

.feedback-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.feedback-submit,
.feedback-cancel {
    flex: 1;
    padding: 0.5em 1em;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: background-color 0.15s;
}

.feedback-submit {
    background-color: #3498db;
    color: #ffffff;
    border-color: #3498db;
}

.feedback-submit:hover:not(:disabled) {
    background-color: #2980b9;
    border-color: #2980b9;
}

.feedback-submit:active:not(:disabled) {
    background-color: #2471a3;
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-cancel {
    background-color: #ffffff;
    color: #5d6d7e;
    border-color: #bdc3c7;
}

.feedback-cancel:hover {
    background-color: #f8f9fa;
}

.feedback-cancel:active {
    background-color: #ecf0f1;
}

.feedback-status {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

.feedback-status-success {
    background-color: #eafaf1;
    color: #27ae60;
    border-color: #27ae60;
}

.feedback-status-error {
    background-color: #fdedec;
    color: #c0392b;
    border-color: #c0392b;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .feedback-trigger {
        bottom: 16px;
        right: 16px;
        padding: 0.25em 0.5em;
        font-size: 12px;
    }

    .feedback-trigger span {
        display: none;
    }

    .feedback-popup {
        bottom: 70px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

@media (min-width: 768px) {
    .feedback-trigger {
        padding: 0.25em 0.75em;
    }
}
