/* Survey-only compatibility rules for the Bootstrap 3 / MDB stylesheet mix.
 * Keep these separate from generated app.css and leave client colours intact.
 */
#surveyForm .form-control {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px 12px;
}

#surveyForm select.form-control:not([multiple]):not([size]) {
    height: 46px;
    padding-top: 8px;
    padding-bottom: 8px;
}

#surveyForm textarea.form-control {
    min-height: 112px;
    resize: vertical;
}

/* Static labels work for empty, restored and autofilled inputs alike.
 * Templates place some labels after their input; flex order puts them above.
 */
#surveyForm .md-form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 20px;
}

#surveyForm .md-form > label,
#surveyForm .md-form > label.active {
    position: static;
    order: -1;
    display: block;
    width: auto;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.5;
    transform: none !important;
    pointer-events: auto;
}

#surveyForm input[type="date"].form-control,
#surveyForm input[type="time"].form-control,
#surveyForm input[type="datetime-local"].form-control {
    min-height: 46px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
}

#surveyForm .form-control:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
