/* includes/css/qma-styles.css */

.qma-message-form {
    display: flex;
    flex-direction: column;
}

.widget_qma_quick_message_widget .widget-title, .widget_qma_quick_message_widget p {
    color: #fbfbfb;
}

.widget_qma_quick_message_widget p {
    text-align: left;
}

.qma-message-form textarea {
    resize: vertical;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 80px;
    font-family: inherit;
    background-color: #333333;
    color: #fbfbfb;
}

.qma-message-form textarea:focus {
    background-color: #333333;
    color: #fbfbfb;
    border: 1px solid #eee;
}

.qma-message-form button {
    align-self: flex-end;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.qma-message-form button:hover {
    background-color: #005177;
}

.qma-message-form button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

.qma-response {
    margin-top: 8px;
    font-size: 0.9em;
}

/* Success and Error Messages */
.qma-success-message {
    color: green !important;
}

.qma-error-message {
    color: red !important;
}

/* Loading Spinner Styles */
.qma-loading-spinner {
    border: 2px solid #f3f3f3; /* Light grey */
    border-top: 2px solid #fff; /* White */
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: qma-spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

/* Spinner Animation */
@keyframes qma-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}