/* Banto Booking Survey module: scoped mobile and accessibility hardening. */
.survey-ui .survey-skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.survey-ui .survey-skip-link:focus {
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    z-index: 10000;
    background: #fff;
    border: 2px solid #222;
}
.survey-ui a:focus,
.survey-ui button:focus,
.survey-ui input:focus,
.survey-ui textarea:focus,
.survey-ui select:focus,
.survey-ui [tabindex="-1"]:focus {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}
.survey-ui .survey-question {
    margin-bottom: 28px;
    padding: 4px 0 18px;
    border-bottom: 1px solid #ddd;
}
.survey-ui .survey-question:last-child { border-bottom: 0; }
.survey-ui fieldset.survey-question {
    min-width: 0;
    border: 0;
}
.survey-ui .survey-question legend {
    width: auto;
    margin-bottom: 8px;
    border: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}
.survey-ui .survey-choice label,
.survey-ui .survey-consent label {
    display: flex;
    align-items: flex-start;
    min-height: 44px;
    padding: 10px 8px;
    margin-bottom: 4px;
    cursor: pointer;
    border-radius: 4px;
}
.survey-ui .survey-choice label:hover,
.survey-ui .survey-choice label:focus-within,
.survey-ui .survey-consent label:focus-within { background: rgba(0,0,0,.05); }
.survey-ui .survey-choice input,
.survey-ui .survey-consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
}
.survey-ui .survey-actions,
.survey-ui .survey-builder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.survey-ui .survey-actions .btn,
.survey-ui .survey-builder-actions .btn {
    min-height: 44px;
    white-space: normal;
}
.survey-ui .survey-save-status { min-height: 24px; margin: 10px 0; }
.survey-ui.survey-builder .btn { min-height: 40px; margin-bottom: 4px; }
.survey-ui.survey-builder form[style*="display:inline"] { display: inline-block !important; margin: 2px 2px 2px 0; }
.survey-ui.survey-builder .list-group-item .row > div { margin-bottom: 6px; }

.survey-ui .survey-error-summary { border-left-width: 5px; }
.survey-ui .survey-error-question { border-left: 5px solid #a94442; padding-left: 12px; }
.survey-ui .survey-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.survey-ui .survey-matrix input[type="radio"] { width: 20px; height: 20px; }
.survey-ui .survey-matrix th,
.survey-ui .survey-matrix td { vertical-align: middle; }
.survey-ui .survey-status-note { margin-top: 12px; }
.survey-ui .survey-offline { font-weight: 700; }
.survey-ui [hidden] { display: none !important; }

@media (max-width: 767px) {
    .survey-ui .container-fluid { padding-left: 10px; padding-right: 10px; }
    .survey-ui .panel-body { padding: 14px; }
    .survey-ui .page-header h1 { font-size: 26px; }
    .survey-ui .survey-actions,
    .survey-ui .survey-builder-actions { align-items: stretch; }
    .survey-ui .survey-actions .btn,
    .survey-ui .survey-builder-actions .btn { width: 100%; }
    .survey-ui .text-right { text-align: left; }

    .survey-ui .survey-matrix,
    .survey-ui .survey-matrix tbody,
    .survey-ui .survey-matrix tr,
    .survey-ui .survey-matrix th,
    .survey-ui .survey-matrix td { display: block; width: 100%; }
    .survey-ui .survey-matrix thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }
    .survey-ui .survey-matrix tr {
        margin-bottom: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 8px;
    }
    .survey-ui .survey-matrix tbody th {
        border: 0;
        padding: 8px;
        font-size: 16px;
    }
    .survey-ui .survey-matrix td {
        display: flex;
        align-items: center;
        min-height: 44px;
        border: 0;
        border-top: 1px solid #eee;
        text-align: left;
    }
    .survey-ui .survey-matrix td::before {
        content: attr(data-label);
        flex: 1 1 auto;
        padding-right: 12px;
    }

    .survey-ui .survey-responsive-list,
    .survey-ui .survey-responsive-list tbody,
    .survey-ui .survey-responsive-list tr,
    .survey-ui .survey-responsive-list td { display: block; width: 100%; }
    .survey-ui .survey-responsive-list thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }
    .survey-ui .survey-responsive-list tr {
        margin-bottom: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 10px;
        background: #fff;
    }
    .survey-ui .survey-responsive-list td {
        border: 0;
        padding: 8px;
    }
    .survey-ui .survey-responsive-list td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        margin-bottom: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .survey-ui *, .survey-ui *::before, .survey-ui *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
