:root {
    --bg: #fff7ec;
    --paper: #ffffff;
    --ink: #27221f;
    --muted: #70655d;
    --green: #2f7d5f;
    --green-dark: #235f49;
    --rose: #e66f7f;
    --yellow: #f7c948;
    --blue: #77b7d9;
    --line: #eadbc8;
    --danger: #b53b3b;
    --shadow: 0 18px 45px rgba(67, 47, 27, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(119, 183, 217, .28), transparent 32rem),
        linear-gradient(180deg, #fff7ec 0%, #fffdf8 100%);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.container {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 22px 16px 44px;
}

.hero {
    padding: 18px 2px 24px;
}

.kicker {
    margin: 0 0 8px;
    color: var(--green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    font-size: 2.45rem;
}

h2 {
    margin-bottom: 18px;
    font-size: 1.45rem;
}

p {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.form-card,
.message,
.table-wrap,
.answers {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-card {
    padding: 18px;
}

.progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 22px;
}

.progress span {
    height: 9px;
    border-radius: 999px;
    background: #efe1d0;
}

.progress .active {
    background: var(--rose);
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(181, 59, 59, .3);
    border-radius: 8px;
    background: #fff0f0;
    color: var(--danger);
    font-weight: 700;
}

form {
    display: grid;
    gap: 16px;
}

label,
fieldset {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

fieldset {
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 8px;
    font-weight: 800;
}

input[type="text"],
input[type="number"],
input[type="file"] {
    width: 100%;
    min-height: 54px;
    padding: 13px 14px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    color: var(--ink);
    font: inherit;
    font-size: 1.05rem;
}

input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(119, 183, 217, .25);
}

small {
    color: var(--danger);
    font-weight: 700;
}

.choices {
    display: grid;
    gap: 10px;
}

.choices label {
    display: block;
}

.choices input {
    position: absolute;
    opacity: 0;
}

.choices span {
    display: block;
    min-height: 54px;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
}

.choices input:checked + span {
    border-color: var(--green);
    background: #eaf6ef;
}

.file-field span {
    color: var(--muted);
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.button,
button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.primary {
    flex: 1;
    background: var(--green);
    color: #fff;
}

.primary:hover {
    background: var(--green-dark);
}

.secondary {
    background: #f4e6d6;
    color: var(--ink);
}

.message {
    margin-top: 40px;
    padding: 26px 20px;
}

.thanks h1 {
    color: var(--green);
}

.admin-head {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin: 8px 0 22px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    background: #fff2df;
}

a {
    color: var(--green-dark);
    font-weight: 800;
}

.thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.big-photo {
    display: block;
    width: min(100%, 760px);
    max-height: 72vh;
    margin: 0 0 18px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.answers {
    margin-top: 16px;
    padding: 18px;
}

dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

dl div {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

dt {
    color: var(--muted);
    font-size: .94rem;
    font-weight: 800;
}

dd {
    margin: 0;
    font-size: 1.05rem;
}

@media (min-width: 720px) {
    .container {
        padding-top: 42px;
    }

    h1 {
        font-size: 3.25rem;
    }

    .form-card,
    .message,
    .answers {
        padding: 26px;
    }

    .primary {
        flex: 0 0 auto;
        min-width: 180px;
    }
}
