/* Javne forme. Boje dolaze iz config/brand.php (--brand, --accent, --bg...). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 16px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text);
  background:
    radial-gradient(800px 420px at 100% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, var(--brand-soft), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
.is-embed, .is-embed body { background: transparent; min-height: 0; color-scheme: light; }
.is-embed .wrap { padding: 2px; }
a { color: var(--text); }
.wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 40px; }
.is-embed .wrap { max-width: none; padding: 0; }
.top { display: flex; justify-content: center; margin: 6px 0 22px; }
.logo { height: 58px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: inline; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 30px 26px 24px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 18px 50px rgb(0 0 0 / .07); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.is-embed .card { box-shadow: none; border-radius: 18px; }
h1 { font-size: clamp(24px, 6vw, 30px); line-height: 1.15; letter-spacing: -.02em; margin: 4px 0 8px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 22px; }

.row { display: grid; gap: 12px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.f > span, .f legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.f i { color: var(--accent); font-style: normal; }
.f input, .f textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2);
  border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 15px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.f textarea { resize: vertical; min-height: 96px; }
.f input:focus, .f textarea:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.f em { color: var(--err, #c0392b); font-style: normal; font-size: 13px; font-weight: 600; }
.has-err input, .has-err textarea { border-color: #d64545; }
.err-box { background: #fdecea; color: #a12a1f; border-radius: 12px; padding: 11px 14px; font-weight: 600; font-size: 14px; margin-bottom: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--border); font-weight: 600; font-size: 14px; color: var(--muted); background: var(--surface); transition: all .15s; user-select: none; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-soft); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 56px; border: 0; border-radius: 16px;
  background: var(--brand); color: var(--brand-ink); font: 800 17px "Manrope", system-ui, sans-serif; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 28%, transparent); transition: transform .1s, filter .15s; text-decoration: none;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: default; }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: none; height: 48px; width: auto; padding: 0 22px; margin-top: 10px; font-size: 15px; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding: 20px 4px 10px; }
.done p { color: var(--muted); }
.check { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.check svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.foot a { color: var(--muted); }

@media (max-width: 520px) {
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 26px 18px 20px; border-radius: 22px; }
  .wrap { padding-top: 18px; }
}
.termini { display: grid; gap: 8px; }
.termin { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 16px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.termin:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.termin input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.termin > span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.termin small { color: var(--muted); font-size: 13px; }
.termin b { text-align: right; font-size: 15px; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.termin b em { font-style: normal; font-size: 11.5px; color: var(--accent); font-weight: 700; }
.done-termin { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; color: var(--text) !important; }
