:root {
    --brand: #1f5c3f;
    --brand-dark: #143d29;
    --bg: #f5f6f4;
    --card: #ffffff;
    --border: #d9ddd6;
    --text: #23291f;
    --muted: #6b7267;
    --error-bg: #fdecec;
    --error-text: #9a2323;
    --ok-bg: #e9f6ee;
    --ok-text: #1f5c3f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.page {
    max-width: 780px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

header.site {
    background: var(--brand);
    color: #fff;
    padding: 18px 16px;
}
header.site .inner {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
header.site h1 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 600;
}
header.site .steps {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

h2 { font-size: 1.2rem; margin-top: 0; }
h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--brand-dark); }

.form-field {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.92rem;
}
.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=tel],
.form-field input[type=date],
.form-field input[type=file],
.form-field select,
.form-field textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: normal;
    color: var(--text);
    background: #fff;
}
.form-field textarea { min-height: 70px; resize: vertical; }
.form-field .hint { display: block; font-weight: normal; color: var(--muted); font-size: 0.82rem; margin-top: 3px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }

fieldset.question {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
fieldset.question legend {
    font-weight: 600;
    padding: 0 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin-bottom: 8px;
}
.radio-option input { margin: 0; }

.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 10px; flex-wrap: wrap; }

button, .btn {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { background: var(--brand-dark); }
.btn.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.secondary:hover { background: #eef4f0; }

.flash { padding: 12px 16px; border-radius: 7px; margin-bottom: 18px; font-size: 0.95rem; }
.flash.error { background: var(--error-bg); color: var(--error-text); }
.flash.ok { background: var(--ok-bg); color: var(--ok-text); }

.notice {
    background: #f0f3ef;
    border-left: 3px solid var(--brand);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 18px;
    white-space: pre-line;
}

table.admin-list { width: 100%; border-collapse: collapse; background: #fff; }
table.admin-list th, table.admin-list td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.admin-list th { background: #f0f3ef; }
table.admin-list tr:hover td { background: #fafbf9; }

dl.view-grid { display: grid; grid-template-columns: 220px 1fr; gap: 6px 14px; margin: 0 0 18px; }
dl.view-grid dt { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
dl.view-grid dd { margin: 0; }

.footer-note { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 30px; }
