.questionnaire-wrapper-86a326f7 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
}

.q-main-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.q-progress-container {
    margin-bottom: 20px;
}

.q-progress-bg {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.q-progress-fill {
    height: 100%;
    background-color: #0073aa;
    width: 0%;
    transition: width 0.3s ease;
}

.q-page {
    padding: 20px 0;
}

.q-page-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Grid Layout for Fields - Fixed dimensions */
.q-grid-container {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.q-field-group {
    padding: 10px;
    box-sizing: border-box;
}

/* Grid Column Sizes */
.q-col-12 { width: 100%; }
.q-col-6 { width: 50%; }
.q-col-3 { width: 25%; }

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
    .q-col-6, .q-col-3 {
        width: 100%;
    }
}

.q-field-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.q-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
}

.q-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 16px;
}

.q-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.q-btn {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.q-btn:hover {
    background-color: #005177;
}

.q-btn-prev {
    background-color: #777;
}

.q-btn-prev:hover {
    background-color: #555;
}

/* Success Message Defaults */
.q-success-msg {
    color: #28a745;
    text-align: center;
    padding: 20px;
    border: 1px solid #c3e6cb;
    background-color: #d4edda;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
}