/*


 */

/* Base: the small part of Bootstrap 3 this app used. Replaced the 2016 CDN
   file so the app owns its own layout; the brand rules below build on it. */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body { margin: 0; }

img { vertical-align: middle; }

a { text-decoration: none; }

a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    margin: 20px 0 10px;
    line-height: 1.2;
}

h1 { font-size: 2.25em; }

h2 { font-size: 1.875em; }

h3 { font-size: 1.5em; }

h4 { font-size: 1.125em; }

p { margin: 0 0 10px; }

input, button, select, textarea { font: inherit; color: inherit; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    margin: 0 -15px;
}

.row::before, .row::after {
    content: " ";
    display: table;
}

.row::after { clear: both; }

.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-12 {
    float: left;
    min-height: 1px;
    padding: 0 15px;
}

.col-md-1 { width: 8.3333%; }

.col-md-2 { width: 16.6667%; }

.col-md-3 { width: 25%; }

.col-md-4 { width: 33.3333%; }

.col-md-6 { width: 50%; }

.col-md-12 { width: 100%; }

.col-md-offset-3 { margin-left: 25%; }

@media (max-width: 767px) {
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-12 {
        float: none;
        width: 100%;
    }

    .col-md-offset-3 { margin-left: 0; }
}

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.table > thead > tr > th,
.table > tbody > tr > td {
    padding: 8px;
    line-height: 1.55;
    vertical-align: top;
    border-top: 1px solid var(--line);
}

.table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--line);
    text-align: left;
}

.table-striped > tbody > tr:nth-of-type(odd) { background-color: #f9f9f9; }

.table-bordered { border: 1px solid var(--line); }

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td { border: 1px solid var(--line); }

.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > td { padding: 5px; }

.table-responsive { overflow-x: auto; }

.table-fixed { table-layout: fixed; }

.table-fixed > thead > tr > th,
.table-fixed > tbody > tr > td { overflow-wrap: break-word; }

.option-cell { text-align: center; }

.option-label { margin: 0; font-weight: normal; }

.table > thead > tr > th.question-option-header,
.table > thead > tr > th.text-center { text-align: center; }

.form-group { margin-bottom: 15px; }

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 0.875em;
    line-height: 1.42857143;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid #c9c9c7;
    border-radius: var(--radius);
}

.form-control:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
    border-color: var(--accent);
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.875em;
    line-height: 1.42857143;
    border: 1px solid transparent;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-danger {
    background-color: #b3261e;
    border-color: #b3261e;
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #8f1e18;
    border-color: #8f1e18;
    color: #fff;
}

.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.alert-danger {
    background-color: #fbeaea;
    border-color: #e9b4b7;
    color: #8f1e18;
}

.progress {
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    float: left;
    width: 0;
    height: 100%;
}

.clearfix::before, .clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after { clear: both; }

.pull-left { float: left; }

.pull-right { float: right; }

.text-center { text-align: center; }

.text-muted { color: var(--ink-soft); }

:root {
    --ink: #3a3a3a;
    --ink-soft: #6b6b6b;
    --accent: #c0272d;
    --line: #e4e4e2;
    --page: #f6f6f5;
    --radius: 6px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--page);
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--ink);
}

a {
    color: var(--accent);
}

a:hover,
a:focus {
    color: #9c1f24;
}

.site-header {
    padding: 20px 0 16px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--ink);
}

.site-header .brand-logo {
    height: 42px;
}

/* Buttons: charcoal primary, outlined secondary */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 8px 18px;
}

.btn-primary {
    background-color: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #232323;
    border-color: #232323;
    color: #fff;
}

.btn-default {
    background-color: #fff;
    border: 1px solid #c9c9c7;
    color: var(--ink);
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
    background-color: #f2f2f1;
    border-color: var(--ink);
    color: var(--ink);
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 30px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.card-prose {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Questionnaire progress */
.progress {
    height: 8px;
    border-radius: 999px;
    background-color: #ececea;
    box-shadow: none;
    margin-bottom: 20px;
}

.progress-bar {
    background-color: var(--ink);
    transition: width 0.2s ease;
}

td.reverse {
    background-color: #FBC3B0;
    border: 1px solid #000 !important;
}

td.result {
    background-color: #b0fbd0;
    font-weight: bold;
    border-bottom: 3px double;
}
.option-cell {
  text-align: center;
  vertical-align: middle;
}

.option-label {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px;
  cursor: pointer;
}

.option-label input[type="radio"] {
  cursor: pointer;
}

.option-label:has(input:checked) {
  background-color: #fbeaea;
  box-shadow: inset 0 0 0 2px #c0272d;
  border-radius: 6px;
}

.question-option-header {
  text-align: center;        /* horizontal centering */
  vertical-align: middle;    /* vertical centering */
}
