@font-face{
  font-family:"NotoSans";
  src:url("./fonts/NotoSans-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root{
  --bg:#fff;
  --card:#ffffff;
  --text:#333;
  --muted:#555;
  --accent:#BC111C;
  --accent2:#333;
  --border:#e6e6e6;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"NotoSans",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

input,select,textarea,button{
  font-family:inherit;
}

.layout{
  display:grid;
  grid-template-columns: 360px 1fr;
  min-height:100vh;
}

.left{
  position:relative;
  background:
    radial-gradient(900px 700px at 70% 70%, rgba(188,17,28,.12), transparent 60%),
    radial-gradient(700px 560px at 25% 30%, rgba(255,255,255,.55), transparent 62%),
    linear-gradient(180deg, #666, #555 45%, #4b4b4b);
  overflow:hidden;
  padding:32px 28px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.70);
  border:1px solid rgba(255,255,255,.55);
}
.logoTitle{
  color:#333;
  font-size:17px;
  font-weight:400;
  line-height:1.2;
  white-space:nowrap;
  margin-left:auto;
  text-align:right;
}
.logo img{
  height:44px;
  width:auto;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.left .brandText{
  color:#fff;
  font-weight:700;
  letter-spacing:.5px;
  font-size:18px;
}

.steps{
  margin-top:44px;
  display:flex;
  flex-direction:column;
  gap:44px;
  align-items:flex-start;
  color:#fff;
}
.step{
  display:flex;
  align-items:center;
  gap:18px;
  opacity:.55;
}
.step.active{opacity:1}
.step .circle{
  width:92px;
  height:92px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.28);
  display:grid;
  place-items:center;
  position:relative;
}
.step.active .circle{
  border-color:rgba(188,17,28,.92);
  box-shadow:0 0 0 10px rgba(188,17,28,.18);
}
.step .num{
  font-size:22px;
  font-weight:800;
  line-height:1;
}
.step .label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.14em;
  line-height:1.3;
  max-width:140px;
}

.right{
  padding:40px 26px 60px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  max-width:980px;
  margin:0 auto 14px;
}
.topbar .title{
  font-size:18px;
  font-weight:700;
  color:var(--text);
}
.topbar .meta{
  font-size:12px;
  color:var(--muted);
}

.card{
  max-width:980px;
  margin:0 auto;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:10px;
  padding:28px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}

.sectionTitle{
  text-align:center;
  font-size:22px;
  font-weight:800;
  color:var(--text);
  margin:6px 0 26px;
}

.row{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.row1{display:grid; grid-template-columns:1fr; gap:18px}
.field label{
  display:block;
  font-size:17px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.10em;
  margin:0 0 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  outline:none;
  background:#fff;
  font-size:14px;
}
.field textarea{min-height:120px; resize:vertical}
.hint{
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}
.fileBox{
  border:1px dashed #d4d4d4;
  border-radius:10px;
  padding:14px;
  background:#fff;
}
.fileBox input[type="file"]{width:100%}

.actions{
  margin-top:22px;
  display:flex;
  gap:12px;
  justify-content:center;
}
.btn{
  appearance:none;
  border:0;
  border-radius:999px;
  padding:12px 22px;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
}
.btnPrimary{
  background:var(--accent);
  color:#fff;
  box-shadow:0 10px 22px rgba(188,17,28,.25);
}
.btnGhost{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}
.btn:disabled{opacity:.55; cursor:not-allowed}

.sources{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:8px;
}
.sourceItem{
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
  display:flex;
  gap:12px;
  align-items:center;
  cursor:pointer;
  user-select:none;
  background:#fff;
}
.sourceItem input{margin:0}
.sourceItem.active{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}
.sourceItem.active .sourceCode{opacity:.92}
.sourceCode{
  width:22px;
  font-weight:900;
  opacity:.65;
}

.notice{
  margin:14px auto 0;
  max-width:980px;
  text-align:center;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  display:none;
}
.notice.show{display:block}
.notice.error{
  border-color:#ffd0d0;
  color:#7b1515;
  background:#fff6f6;
}
.notice.success{
  border-color:#d3f0d6;
  color:#145220;
  background:#f3fff5;
}

.gdpr{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:16px;
  color:var(--muted);
  font-size:17px;
}
.gdpr input{margin-top:3px}

.footer{
  max-width:980px;
  margin:18px auto 0;
  font-size:12px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:0 6px;
}

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.overlay.show{display:flex}
.overlayCard{
  width:min(520px, 92vw);
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  padding:18px 18px;
  display:flex;
  gap:14px;
  align-items:center;
}
.checkmark{
  width:34px;
  height:34px;
  border-radius:999px;
  background:rgba(188,17,28,.08);
  border:2px solid rgba(188,17,28,.55);
  position:relative;
  flex:0 0 auto;
}
.checkmark:after{
  content:"";
  position:absolute;
  left:10px;
  top:8px;
  width:10px;
  height:6px;
  border-left:3px solid var(--accent);
  border-bottom:3px solid var(--accent);
  transform:rotate(-45deg);
}
.spinner{
  width:34px;
  height:34px;
  border-radius:999px;
  border:4px solid rgba(0,0,0,.12);
  border-top-color:var(--accent);
  animation:spin 0.9s linear infinite;
  flex:0 0 auto;
}
@keyframes spin{to{transform:rotate(360deg)}}
.overlayTitle{
  font-weight:700;
  color:var(--text);
  margin:0 0 4px;
}
.overlayMsg{
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
}
.overlayActions{
  margin-top:12px;
}
.btnSmall{
  padding:10px 16px;
  font-size:14px;
}

@media (max-width: 980px){
  .layout{grid-template-columns: 1fr}
  .left{padding:22px 18px}
  .steps{flex-direction:row; gap:16px; justify-content:center}
  .step .circle{width:70px;height:70px}
  .step .label{display:none}
  .right{padding:20px 12px 44px}
  .row{grid-template-columns:1fr}
  .footer{flex-direction:column; align-items:center}
}


