* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fa;
    /* background: #0054a5; */
    color: #172026;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: #0054a5;
}

.page {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.topbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 22px;
    font-weight: 700;
    max-height: 50px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 70px;
    padding: 1rem 0;
}

footer img {
    max-height: 50px;
}

.brand img {
    max-height: 50px;
}

.panel,
form {
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    padding: 24px;
}

.flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #e7f6ee;
    border: 1px solid #b9dfc8;
    border-radius: 8px;
}

.error {
    color: #9b1c1c;
}

h1 {
    margin-top: 0;
    font-size: 30px;
}

h2 {
    margin: 28px 0 8px;
    font-size: 25px;
}

.section-note {
    margin-top: 0;
    color: #3c4852;
    font-style: italic;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #b8c5d0;
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
}

textarea {
    min-height: 120px;
}

input[type="submit"],
.button {
    display: inline-block;
    margin-top: 18px;
    border: 0;
    border-radius: 6px;
    background: #0054a5;
    color: #ffffff;
    padding: 10px 16px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: #46525c;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d9e1e8;
}

.question-section {
    margin-bottom: 28px;
}

.question-table th {
    width: 38%;
    font-weight: 700;
}

.question-table label {
    margin: 0;
}

.question-table input[type="text"],
.question-table select,
.question-table textarea {
    border-color: #9fd6e5;
    border-radius: 0;
}

.compact-choice label,
.stacked-choice label {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin: 4px 18px 4px 0;
    font-weight: 400;
}

.stacked-choice label {
    display: flex;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #d9e1e8;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef3f8;
}

.status {
    display: inline-block;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 700;
}

.status.done {
    background: #dff3e6;
    color: #1d6b38;
}

.status.waiting {
    background: #fff0c7;
    color: #7a5200;
}

@media (max-width: 640px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel,
    form {
        padding: 18px;
    }

    .question-table,
    .question-table tbody,
    .question-table tr,
    .question-table th,
    .question-table td {
        display: block;
        width: 100%;
    }
}
