/* ATPR · formular de aderare — aspectul formularului pe hartie */
:root {
  --red: #c8102e; --red-dark: #9e0b23; --ink: #161616; --muted: #5d5d5d; --line: #d9d9d9;
  --paper: #ffffff; --bg: #ececec; --tint: #fbe9ea; --black: #0d0d0d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--red); }
img { max-width: 100%; }

/* antet */
.band { background: radial-gradient(120% 140% at 85% 30%, #5a0a14 0%, #1d0508 38%, var(--black) 62%); border-bottom: 4px solid var(--red); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; left: -40px; top: 0; bottom: 0; width: 120px; background: linear-gradient(115deg, transparent 40%, var(--red) 41%, var(--red) 52%, transparent 53%); opacity: .9; }
.band__in { position: relative; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 18px 24px; }
.band__logo { width: 210px; height: auto; flex: 0 0 auto; }
.band__text { flex: 1 1 auto; border-left: 2px solid var(--red); padding-left: 24px; color: #fff; }
.band__text p { margin: 0; }
.band__l1 { font-size: 15px; letter-spacing: .02em; text-transform: uppercase; opacity: .95; }
.band__l2 { font-size: 19px; font-weight: 800; text-transform: uppercase; margin: 2px 0 8px !important; }
.band__l3 { color: #ff2d42; font-weight: 700; font-size: 15px; line-height: 1.35; }
.band__gear { width: 130px; height: auto; flex: 0 0 auto; }

/* foaia */
.paper { max-width: 1180px; margin: 22px auto; background: var(--paper); padding: 26px 30px 30px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.title h1 { margin: 0; font-size: clamp(22px, 3.3vw, 38px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1; }
.title h2 { margin: 4px 0 6px; font-size: clamp(15px, 2vw, 22px); font-weight: 800; color: #3b3b3b; }
.title p { margin: 0; color: var(--muted); font-size: 15px; }
.title i, .fl i, .lbl i, .ck i { color: var(--red); font-style: normal; }

.alert { margin: 16px 0 0; padding: 12px 14px; background: var(--tint); border-left: 4px solid var(--red); font-weight: 600; }
.closed { text-align: center; padding: 60px 10px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2.flat { gap: 22px; }
.grid2.wide-left { grid-template-columns: 1.55fr 1fr; }
.sec { border: 1px solid var(--line); margin-top: 18px; background: #fff; }
.grid2 > .sec { margin-top: 18px; }
.sec > h3 { margin: 0; background: linear-gradient(180deg, #d4142f, var(--red-dark)); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 9px 14px; }
.sec .body { padding: 12px 14px 14px; }
.sec.is-bad { border-color: var(--red); }

.fl { display: block; margin: 0 0 10px; }
.fl > span, .lbl { display: block; font-size: 14px; color: #333; margin-bottom: 3px; }
.lbl { font-weight: 600; }
.lbl em, .small em { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], textarea, input.other {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 0; border-bottom: 1.5px solid #9a9a9a; padding: 6px 2px; border-radius: 0; outline: none; min-height: 40px;
}
textarea { border: 1.5px solid #c9c9c9; padding: 8px 10px; resize: vertical; line-height: 1.45; background: repeating-linear-gradient(#fff, #fff 27px, #ececec 28px); }
input:focus, textarea:focus { border-color: var(--red); box-shadow: 0 2px 0 -0.5px var(--red); }
.fl.up input { text-transform: uppercase; }
.fl.is-bad input, .fl.is-bad textarea, .file.is-bad input { border-color: var(--red); background: #fff7f7; }
.err { display: block; color: var(--red); font-size: 13px; font-weight: 600; margin-top: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* bife roșii, ca pe hârtie */
.checks { display: grid; gap: 4px 18px; margin: 4px 0 8px; }
.checks.cols-2 { grid-template-columns: 1fr 1fr; }
.checks.cols-3 { grid-template-columns: repeat(3, auto); justify-content: start; }
.ck { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 15px; line-height: 1.35; padding: 4px 0; }
.ck input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--red); border-radius: 2px; margin: 0; background: #fff; display: grid; place-content: center; cursor: pointer; }
.ck input[type=radio] { border-radius: 50%; }
.ck input::before { content: ""; width: 11px; height: 11px; transform: scale(0); transition: transform .12s ease; background: var(--red); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.ck input[type=radio]::before { clip-path: none; border-radius: 50%; width: 9px; height: 9px; }
.ck input:checked::before { transform: scale(1); }
.ck input:focus-visible { outline: 3px solid rgba(200,16,46,.35); outline-offset: 2px; }
.ck.is-off { opacity: .45; cursor: not-allowed; }
.ck.strong { font-weight: 700; margin-top: 8px; }
input.other { margin: -2px 0 6px 29px; width: calc(100% - 29px); min-height: 34px; font-size: 15px; }
.checks.cols-2 input.other, .checks.cols-3 input.other { grid-column: 1 / -1; }

.cat .catrow { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 16px; align-items: center; }
.catopt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.catopt input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border: 2px solid var(--red); border-radius: 2px; flex: 0 0 auto; margin: 2px 0 0; display: grid; place-content: center; }
.catopt input::before { content: ""; width: 13px; height: 13px; transform: scale(0); background: var(--red); transition: transform .12s ease; }
.catopt input:checked::before { transform: scale(1); }
.catopt strong { display: block; font-size: 17px; }
.catopt small { color: var(--muted); font-size: 14px; }
.note { margin: 0; background: var(--tint); padding: 10px 12px; font-size: 13.5px; font-style: italic; color: #333; }
.tint { background: var(--tint); padding: 10px 12px; margin-top: 10px; }

.small { font-size: 14px; color: #333; }
.small p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.dues { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin: 8px 0 10px; }
.dues__box { background: var(--tint); text-align: center; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.dues__box span { font-weight: 700; }
.dues__box strong { color: var(--red); font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; line-height: 1.1; }
.dues__box small { color: var(--muted); }
.dues__mode .lbl small { font-weight: 400; color: var(--muted); }
.file { display: block; margin: 0 0 12px; }
.file > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.file > span em { font-weight: 400; color: var(--muted); font-style: normal; }
.file input[type=file] { width: 100%; font-size: 14px; padding: 8px; border: 1.5px dashed #bdbdbd; background: #fafafa; }
.file small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* semnatura */
.signrow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: stretch; }
.signmeta p { margin: 0 0 12px; border-bottom: 1.5px solid #9a9a9a; padding-bottom: 6px; }
.signmeta strong { font-size: 17px; letter-spacing: .02em; }
.pad { position: relative; border: 2px dashed #bdbdbd; background: #fff; min-height: 170px; }
.pad.has-ink { border-style: solid; border-color: #9a9a9a; }
.pad canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.pad__hint { position: absolute; inset: 0; display: grid; place-items: center; color: #9a9a9a; pointer-events: none; font-size: 15px; }
.pad.has-ink .pad__hint { display: none; }
.pad__clear { position: absolute; right: 8px; bottom: 8px; background: #fff; border: 1px solid #ccc; padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.sec.sign.is-bad .pad { border-color: var(--red); }

/* pasi + navigare */
.steps { display: none; }
.nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.btn { appearance: none; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 800; padding: 14px 24px; cursor: pointer; letter-spacing: .02em; min-height: 50px; }
.btn.red { background: var(--red); }
.btn.red:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid #bbb; }
.btn:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* banda de jos */
.pillars { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: radial-gradient(120% 160% at 70% 120%, #6b0b17 0%, #1a0406 45%, var(--black) 70%); color: #fff; text-align: center; }
.pillar { padding: 22px 14px; border-right: 1px solid rgba(200,16,46,.7); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pillar:last-child { border-right: 0; }
.pillar svg { width: 46px; height: 46px; fill: none; stroke: #ff2d42; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 4px; }
.pillar strong { text-transform: uppercase; font-size: 16px; letter-spacing: .03em; }
.pillar span { font-size: 14px; opacity: .92; max-width: 220px; }
.foot { max-width: 1180px; margin: 0 auto 30px; text-align: center; font-size: 13px; color: #666; padding: 14px 10px; }
.foot a { color: #444; }

/* pagini simple (multumim, plata, politica) */
.page { max-width: 820px; margin: 22px auto; background: #fff; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.page h1 { margin-top: 0; font-size: clamp(22px, 3vw, 32px); }
.page h2 { font-size: 19px; margin: 26px 0 6px; }
.page .ref { display: inline-block; background: var(--tint); padding: 4px 10px; font-weight: 800; letter-spacing: .04em; }
.page form .fl { max-width: 420px; }
.flash { padding: 10px 14px; margin-bottom: 14px; border-left: 4px solid #2e7d32; background: #edf7ee; }
.flash-err { border-color: var(--red); background: var(--tint); }

@media (max-width: 960px) {
  .band__logo { width: 160px; }
  .band__gear { width: 96px; }
  .band__l1 { font-size: 13px; } .band__l2 { font-size: 16px; } .band__l3 { font-size: 13px; }
  .cat .catrow { grid-template-columns: 1fr 1fr; }
  .cat .note { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .band__in { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .band__text { order: 3; flex-basis: 100%; border-left: 0; border-top: 2px solid var(--red); padding: 10px 0 0; }
  .band__logo { width: 150px; }
  .band__gear { width: 84px; margin-left: auto; }
  .paper, .page { margin: 0; padding: 18px 16px 24px; box-shadow: none; }
  .grid2, .grid2.wide-left, .row2, .dues, .signrow, .cat .catrow, .checks.cols-2 { grid-template-columns: 1fr; }
  .checks.cols-3 { grid-template-columns: repeat(2, auto); }
  .steps { display: flex; list-style: none; margin: 18px 0 0; padding: 0; gap: 6px; counter-reset: s; }
  .steps li { flex: 1; font-size: 11px; text-align: center; color: var(--muted); cursor: pointer; padding-top: 30px; position: relative; }
  .steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c9c9c9; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #fff; }
  .steps li.is-on { color: var(--ink); font-weight: 700; }
  .steps li.is-on::before { border-color: var(--red); background: var(--red); color: #fff; }
  .steps li.is-done::before { border-color: var(--red); color: var(--red); }
  .step { display: none; }
  .step.is-on { display: block; }
  .nav { position: sticky; bottom: 0; background: rgba(255,255,255,.96); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin: 18px -16px 0; padding-left: 16px; padding-right: 16px; border-top: 1px solid #eee; }
  .nav .btn { flex: 1; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid rgba(200,16,46,.7); }
  .pad canvas { height: 190px; }
}
