*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.6;
}

a {
    color: #2563eb;
    text-decoration: none;
}

.site-header {
    border-bottom: 1px solid #e2e8f0;
}

.site-header__inner,
.site-main,
.site-footer__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.site-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.site-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
    min-height: 60vh;
}

.site-footer {
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
}

.hero h1 {
    margin: 0 0 0.5rem;
}

.hero p {
    margin: 0;
    color: #64748b;
}

.form-wizard__header h1 {
    margin: 0 0 0.5rem;
}

.form-wizard__description {
    color: #64748b;
    margin: 0 0 1rem;
}

.form-wizard__progress {
    margin-bottom: 1.5rem;
}

.form-wizard__progress span {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.form-wizard__progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.form-wizard__progress-fill {
    height: 100%;
    background: #2563eb;
    transition: width 0.2s ease;
}

.form-page__headline {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.form-page__subline,
.form-page__description,
.form-page__hint {
    color: #64748b;
    margin: 0 0 1rem;
}

.form-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-block:last-child {
    border-bottom: none;
}

.form-block__headline {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.form-block__subline,
.form-block__description,
.form-block__hint {
    color: #64748b;
    margin: 0 0 1rem;
}

.form-question {
    margin-bottom: 1.25rem;
}

.form-question__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-question__label .required {
    color: #dc2626;
}

.form-question__help {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.form-question__validation-error {
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.9rem;
}

.form-question.has-validation-error .form-options--checkbox {
    outline: 2px solid #fca5a5;
    outline-offset: 4px;
    border-radius: 4px;
}

.form-question__field input[type="text"],
.form-question__field input[type="email"],
.form-question__field input[type="file"],
.form-question__field select,
.form-question__field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
}

.form-option input {
    margin-top: 0.2rem;
}

.form-upload-existing {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #059669;
}

.form-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-alert--hint {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}

.form-alert--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.form-alert--info {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.form-errors ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.form-wizard__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.is-hidden {
    display: none !important;
}

.success-page {
    text-align: center;
    padding: 2rem 0;
}

.success-page h1 {
    margin: 0 0 1rem;
}

.success-page p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.error-page {
    text-align: center;
    padding: 3rem 0;
}

.error-page h1 {
    font-size: 4rem;
    margin: 0;
    color: #cbd5e1;
}

code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .form-wizard__actions {
        flex-direction: column;
    }

    .form-wizard__actions .btn {
        width: 100%;
        text-align: center;
    }
}
