:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #667085;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --success: #15803d;
    --border: #d9e2ef;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    margin: 0 auto;
    max-width: 1100px;
    padding: 24px;
}

.topbar {
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1100px;
    padding: 14px 24px;
}

.brand {
    color: var(--text);
    font-weight: 700;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero {
    background: linear-gradient(135deg, #dbeafe, #ffffff);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 42px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.muted {
    color: var(--muted);
}

.btn {
    background: var(--primary);
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 700;
    padding: 10px 16px;
}

.btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--text);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: var(--danger);
}

input,
select,
textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    display: block;
    font: inherit;
    margin-top: 6px;
    padding: 10px;
    width: 100%;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 14px;
}

.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.alert {
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.alert-success {
    background: #dcfce7;
    color: #14532d;
}

.alert-error {
    background: #fee2e2;
    color: #7f1d1d;
}

.alert-warning {
    background: #fef3c7;
    color: #78350f;
}

.table {
    border-collapse: collapse;
    width: 100%;
}

.table th,
.table td {
    border-bottom: 1px solid var(--border);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.badge {
    background: #e0e7ff;
    border-radius: 999px;
    color: #3730a3;
    display: inline-block;
    font-size: 13px;
    padding: 4px 10px;
}

.question {
    border-top: 1px solid var(--border);
    margin-top: 18px;
    padding-top: 18px;
}

.option-line {
    align-items: center;
    display: flex;
    gap: 10px;
    margin: 8px 0;
}

.option-line input[type='radio'],
.option-line input[type='checkbox'] {
    margin: 0;
    width: auto;
}

@media (max-width: 760px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 24px;
    }
}
