.raq-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.raq-modal.raq-modal-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.raq-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.raq-modal-dialog {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 4px;
}

.raq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.raq-modal-header h3 {
    margin: 0;
}

.raq-modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.raq-modal-body {
    padding: 20px;
}

.raq-field {
    margin-bottom: 20px;
}

.raq-field label,
.raq-field legend {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.raq-required {
    color: #dc3545;
}

.raq-choice {
    margin-bottom: 8px;
}

.raq-choice label {
    display: inline;
    margin-left: 5px;
    font-weight: normal;
}

.raq-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.raq-loading {
    padding: 20px;
    text-align: center;
}

body.raq-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {

    .raq-modal-dialog {
        width: 95%;
        max-height: 95vh;
    }

    .raq-modal-body {
        padding: 15px;
    }

    .raq-form-actions {
        flex-direction: column;
    }

    .raq-form-actions button {
        width: 100%;
    }
}