/* Reset default styles */
.query-widget-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Widget container */
.query-widget-container {
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* Form styles */
.query-widget-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Input and select styles */
.form-input,
.form-select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
    flex: 1;
}

.form-input:focus,
.form-select:focus {
    border-color: #3498db;
}

/* Submit button */
.form-submit {
    padding: 8px 16px;
    font-size: 14px;
    background: #ffd700;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background: #cb8300;
}

/* Success popup */
.query-success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #2ecc71;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    text-align: center;
    z-index: 1000;
    animation: popupAnimation 3s ease forwards;
}

/* Popup animation */
@keyframes popupAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    10% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    20% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .query-widget-container {
        padding: 10px;
        margin: 10px;
    }

    .query-widget-form {
        flex-direction: column;
        gap: 8px;
    }

    .form-input,
    .form-select {
        width: 100%;
    }

    .form-submit {
        width: 100%;
    }

    .query-success-popup {
        width: 80%;
        font-size: 14px;
        padding: 10px 20px;
    }
}