*{margin:0;padding:0;box-sizing:border-box}
html,body{background:#eef1f4;-webkit-font-smoothing:antialiased;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;color:#1b1f24}
input::placeholder,textarea::placeholder{color:#aab1ba}
input[type=date],input[type=month]{min-height:48px}
@keyframes popIn{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes spin{to{transform:rotate(360deg)}}

.page{max-width:480px;margin:0 auto;background:#f6f8fa;min-height:100vh;position:relative;color:#1b1f24}

.hero{background:#1f4e79;color:#fff;padding:34px 22px 30px}
.kicker{font-size:12px;font-weight:700;letter-spacing:0.18em;color:#9cc0e0;margin-bottom:14px}
.hero h1{font-size:27px;font-weight:700;letter-spacing:-0.01em;line-height:1.15}
.hero-welcome{font-size:15px;color:#d4e2f0;margin-top:10px;line-height:1.5}
.hero-intro{font-size:13px;color:#a9c4dd;margin-top:14px;line-height:1.55}

.progress{position:sticky;top:0;z-index:20;background:rgba(246,248,250,0.94);backdrop-filter:blur(8px);padding:12px 22px;border-bottom:1px solid #e4e8ec}
.progress-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.progress-label{font-size:12.5px;font-weight:600;color:#5a636e;letter-spacing:0.01em}
.progress-pct{font-size:12.5px;font-weight:700;color:#1f4e79}
.progress-track{height:6px;background:#e1e6eb;border-radius:99px;overflow:hidden}
.progress-bar{height:100%;background:#1f4e79;border-radius:99px;transition:width .35s ease;width:0}

.body{padding:20px 18px 130px}

.banner{background:#fdeceb;border:1px solid #f3c6c2;border-radius:12px;padding:14px 16px;margin-bottom:18px;display:flex;gap:11px;align-items:flex-start}
.banner-icon{flex:0 0 20px;height:20px;border-radius:50%;background:#c0392b;color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}
.banner-text{font-size:13.5px;color:#8e2a20;line-height:1.45;font-weight:500}
.hidden{display:none !important}

.card{background:#fff;border:1px solid #e8ebef;border-radius:16px;padding:22px 18px;margin-bottom:16px;box-shadow:0 1px 2px rgba(20,30,45,0.03)}
.card-head{display:flex;align-items:center;gap:11px;margin-bottom:20px}
.badge{flex:0 0 28px;height:28px;border-radius:8px;background:#eaf1f8;color:#1f4e79;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center}
.card h2{font-size:16.5px;font-weight:700;letter-spacing:-0.01em}
.card-intro{font-size:12.5px;color:#5a636e;line-height:1.5;margin:-8px 0 18px}

.field{margin-bottom:16px}
.field:last-child{margin-bottom:2px}
.field.hidden{display:none !important}
label.lbl{display:block;font-size:13px;font-weight:600;color:#39414b;margin-bottom:7px}
.req{color:#c0392b}
.opt{color:#9aa3ad;font-weight:500}
.hint{font-size:12px;color:#5a7a99;margin-top:9px;line-height:1.45}
.err{color:#c0392b;font-size:12.5px;margin-top:6px;font-weight:500}

.ctrl,select.ctrl,textarea.ctrl{
  width:100%;box-sizing:border-box;padding:13px 14px;font-family:inherit;font-size:16px;color:#1b1f24;background:#fff;border:1.5px solid #d9dde3;border-radius:10px;outline:none;-webkit-appearance:none;appearance:none
}
select.ctrl{
  padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-color:#fff
}
textarea.ctrl{min-height:96px;resize:vertical;line-height:1.45}
.ctrl:focus,select.ctrl:focus,textarea.ctrl:focus{border-color:#1f4e79;box-shadow:0 0 0 3px rgba(31,78,121,0.12)}
.ctrl.invalid{border-color:#c0392b}
.iban{letter-spacing:0.04em}

.row{display:flex;gap:12px}
.row>.field{flex:1;min-width:0;margin-bottom:16px}
.row>.field.flex-2{flex:2}

.yesno{display:flex;gap:8px}
.yesno button{
  flex:1;padding:12px 10px;font-family:inherit;font-size:15px;font-weight:600;color:#1b1f24;background:#fff;border:1.5px solid #d9dde3;border-radius:10px;cursor:pointer
}
.yesno button[aria-pressed="true"]{background:#1f4e79;border-color:#1f4e79;color:#fff}
.yesno button:focus{outline:none;box-shadow:0 0 0 3px rgba(31,78,121,0.12)}

.checks{display:flex;flex-direction:column;gap:8px}
.check{
  display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1.5px solid #d9dde3;border-radius:10px;background:#fff;cursor:pointer;font-size:14.5px;line-height:1.4;color:#1b1f24
}
.check input{accent-color:#1f4e79;width:16px;height:16px;margin-top:2px;flex:0 0 16px}
.check.is-on{border-color:#1f4e79;background:#eef4fa}

.filebox{border:1.5px dashed #c4d0db;border-radius:12px;background:#f8fafc;padding:14px}
.filebox input[type=file]{font-family:inherit;font-size:13px;width:100%;color:#39414b}
.file-list{margin-top:8px;font-size:12.5px;color:#39414b;line-height:1.45}
.file-list li{margin-left:16px}

.legal{display:flex;gap:9px;align-items:flex-start;padding:16px 4px 0;color:#8a929c}
.legal-box{flex:0 0 15px;height:15px;border:1.5px solid #aab2bb;border-radius:4px;margin-top:1px}
.legal p{font-size:12px;line-height:1.5}

.confirm{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1.5px solid #cfe0ef;border-radius:12px;background:#eef4fa;cursor:pointer}
.confirm input{accent-color:#1f4e79;width:18px;height:18px;margin-top:1px;flex:0 0 18px}
.confirm span{font-size:14px;font-weight:600;color:#39414b;line-height:1.4}

.submit-wrap{position:sticky;bottom:0;z-index:20;background:#f6f8fa;border-top:1px solid #e4e8ec;padding:14px 18px 18px;box-shadow:0 -4px 16px rgba(20,30,45,0.05)}
.submit-error{background:#fdeceb;border:1px solid #f3c6c2;border-radius:10px;padding:11px 13px;margin-bottom:11px;font-size:13px;color:#8e2a20;line-height:1.45;font-weight:500}
.btn{
  width:100%;padding:16px;font-family:inherit;font-size:16px;font-weight:700;color:#fff;background:#1f4e79;border:none;border-radius:12px;cursor:pointer;letter-spacing:0.01em;transition:background .15s;
  display:flex;align-items:center;justify-content:center;gap:10px
}
.btn:hover{background:#1a4368}
.btn:active{background:#163a5a}
.btn:disabled{background:#5a7896;cursor:default}
.btn-note{text-align:center;font-size:11.5px;color:#9aa3ad;margin-top:10px}
.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,0.45);border-top-color:#fff;border-radius:50%;display:inline-block;animation:spin .7s linear infinite}

.success{position:fixed;inset:0;z-index:60;background:#f6f8fa;display:flex;align-items:center;justify-content:center;padding:32px}
.success-inner{max-width:420px;text-align:center;animation:fadeUp .5s ease both}
.success-icon{width:84px;height:84px;border-radius:50%;background:#1f7a4d;margin:0 auto 26px;display:flex;align-items:center;justify-content:center;animation:popIn .5s cubic-bezier(.2,.9,.3,1.2) both;box-shadow:0 8px 24px rgba(31,122,77,0.28)}
.success h2{font-size:25px;font-weight:700;color:#1b1f24;letter-spacing:-0.01em}
.success .lead{font-size:15.5px;color:#5a636e;margin-top:14px;line-height:1.55}
.success .sub{font-size:13px;color:#9aa3ad;margin-top:22px}
