*{box-sizing:border-box}
body{
    margin:0;
    min-height:100vh;
    font-family:Arial,Helvetica,sans-serif;
    background:radial-gradient(circle at top left,#0ea5e9 0,#0f172a 40%,#020617 100%);
    color:#0f172a;
}
.wrap{max-width:900px;margin:0 auto;padding:32px}
.card{
    background:rgba(255,255,255,.97);
    border-radius:18px;
    padding:30px;
    box-shadow:0 25px 60px rgba(0,0,0,.35);
}
h1{margin:0 0 6px}
.subtitle{color:#64748b;margin:0 0 24px}
.notice{
    background:#eff6ff;
    border-left:5px solid #0369a1;
    padding:14px;
    border-radius:8px;
    margin-bottom:20px;
}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.full{grid-column:1/3}
label{display:block;font-weight:bold;font-size:13px;margin-bottom:6px}
input,textarea{
    width:100%;
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    font-size:15px;
}
textarea{min-height:90px}
.agreement{
    max-height:220px;
    overflow:auto;
    padding:14px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    background:#f8fafc;
    white-space:pre-wrap;
    margin-bottom:10px;
}
.step{display:none}
.step.active{display:block}
.actions{display:flex;justify-content:space-between;margin-top:22px;gap:12px}
button,.btn{
    border:0;
    border-radius:10px;
    padding:12px 18px;
    background:#0369a1;
    color:white;
    font-weight:bold;
    cursor:pointer;
    text-decoration:none;
}
button.secondary{background:#64748b}
.error{background:#fee2e2;color:#991b1b;padding:12px;border-radius:10px;margin-bottom:15px}
.success{background:#dcfce7;color:#166534;padding:12px;border-radius:10px;margin-bottom:15px}
.req{font-size:12px;color:#64748b;margin-top:6px}

.dark-mode{
    background:#020617;
    color:#e2e8f0;
}
.dark-mode .card{
    background:#0f172a;
    color:#e2e8f0;
}
.dark-mode .subtitle,
.dark-mode .req{
    color:#94a3b8;
}
.dark-mode input,
.dark-mode textarea{
    background:#020617;
    color:#e2e8f0;
    border-color:#334155;
}
.dark-mode .agreement{
    background:#020617;
    color:#e2e8f0;
    border-color:#334155;
}
.dark-mode .notice{
    background:#082f49;
    color:#e0f2fe;
}

.dark-mode{
    background:#020617;
    color:#e2e8f0;
}
.dark-mode .card{
    background:#0f172a;
    color:#e2e8f0;
}
.dark-mode .subtitle,
.dark-mode .req{
    color:#94a3b8;
}
.dark-mode input,
.dark-mode textarea{
    background:#020617;
    color:#e2e8f0;
    border-color:#334155;
}
.dark-mode .agreement{
    background:#020617;
    color:#e2e8f0;
    border-color:#334155;
}
.dark-mode .notice{
    background:#082f49;
    color:#e0f2fe;
}
