:root{
  --bg: #F6F7FB;
  --bg2:#EEF2FF;

  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --muted2:#64748B;

  --line: #E6E8F0;
  --line2:#EEF0F6;

  --shadow: 0 18px 55px rgba(15, 23, 42, .08);
  --shadow2: 0 10px 26px rgba(15, 23, 42, .06);

  --r: 18px;

  /* Liila teema */
  --brand: #7C3AED;           /* violet */
  --brandSoft: rgba(124,58,237,.14);

  --danger: #EF4444;
  --dangerSoft: rgba(239,68,68,.10);

  --btn: #0F172A;
  --btnText: #FFFFFF;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* YHTENÄINEN tausta (ei toistu / “katkea”) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 700px at 18% 0%, rgba(124,58,237,.16), transparent 55%),
    radial-gradient(1000px 700px at 82% 10%, rgba(16,185,129,.10), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}

.wrap{
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 16px 70px;
}

.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom: 14px;
}

.brand{
  margin:0;
  font-weight: 950;
  letter-spacing:-.02em;
  font-size: 18px;
}

.sub{
  margin:4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
a:hover{ text-decoration: underline; }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
}

label{
  display:block;
  margin: 10px 0 6px;
  font-size:12px;
  color: var(--muted);
  font-weight: 750;
}

input, select, textarea{
  width:100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline:none;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 4px var(--brandSoft);
}

textarea{ resize: vertical; min-height: 90px; }

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media(max-width: 760px){ .row{ grid-template-columns:1fr; } }

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 8px;
}
.chip{
  display:flex;
  gap:8px;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: #fff;
  font-size:12px;
  color: var(--text);
  box-shadow: var(--shadow2);
}
.chip input{ width:16px; height:16px; }

.btnRow{ display:flex; gap:10px; margin-top: 12px; }
.btn{
  flex:1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--btn);
  color: var(--btnText);
  font-weight: 950;
  cursor:pointer;
  text-decoration:none;
  text-align:center;
  box-shadow: var(--shadow2);
}
.btn:hover{ filter: brightness(1.02); }
.btn.secondary{
  background: #fff;
  color: var(--text);
}

.notice{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.error{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--dangerSoft);
  border: 1px solid rgba(239,68,68,.22);
  color: #7F1D1D;
  font-size: 13px;
  font-weight: 800;
}

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* UX: pointer cursor for clickable form controls */
input[type="checkbox"], input[type="radio"], select, option, button { cursor: pointer; }
label { cursor: pointer; }
