:root {
    color-scheme: light;
    --bg: #f3f4f6;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #d1d5db;
    --primary: #1d4ed8;
    --success: #047857;
    --secondary: #374151;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: min(860px, 100%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.subtitle {
    margin: 0 0 18px;
    color: var(--muted);
}

.progress-wrap {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    width: 0;
    transition: width 0.2s ease-in-out;
}

.step-label {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.step {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin: 0;
    display: none;
}

.step.active {
    display: block;
}

legend {
    padding: 0 8px;
    font-weight: 600;
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.95rem;
    font-family: inherit;
}

textarea {
    min-height: 86px;
    resize: vertical;
}

.checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 400;
}

.checkbox input {
    width: auto;
    margin-top: 3px;
}

.notice {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn {
    border: 0;
    border-radius: 8px;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.95rem;
    min-width: 100px;
}

.btn:hover {
    filter: brightness(0.95);
}

.btn-primary {
    background: var(--primary);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-success {
    background: var(--success);
}

.form-error {
    margin-top: 14px;
    min-height: 20px;
    color: #b91c1c;
    font-weight: 600;
}

@media (max-width: 640px) {
    .card {
        padding: 16px;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
