/* app/static/site/forms.css */
/* Ensure — shared form styles (dark theme) */

:root{
  --bg:#000;
  --card:#0b0b0b;
  --card2:#0f0f0f;
  --border:rgba(255,255,255,0.10);
  --text:rgba(255,255,255,0.92);
  --muted:rgba(255,255,255,0.68);
  --accent:#00FF80;
  --accent2:#2D7DFF;
  --radius:18px;
}

/* Card headings */
.card h1{margin:0 0 6px 0}
.sub{color:var(--muted);font-size:13px;line-height:1.4;margin:0 0 14px 0}

/* Layout helpers */
.grid-2{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:860px){.grid-2{grid-template-columns:1fr 1fr}}

.field{min-width:0}
.field label{display:block;font-size:12px;color:var(--muted);margin:0 0 6px 2px}

/* Inputs */
.field input,
.field select,
.field textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--border);
  background:rgba(0,0,0,.35);
  color:var(--text);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field input::placeholder,
.field textarea::placeholder{
  color:rgba(255,255,255,0.38);
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:rgba(0,255,128,.55);
  box-shadow:0 0 0 3px rgba(0,255,128,.12);
  background:rgba(0,0,0,.45);
}

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

.field small{display:block;color:var(--muted);margin-top:6px;font-size:12px}

/* Actions */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:14px
}

.btn{
  border:0;
  background:linear-gradient(90deg, rgba(0,255,128,.95), rgba(45,125,255,.75));
  color:#00110a;
  font-weight:900;
  padding:12px 14px;
  border-radius:999px;
  cursor:pointer;
  transition:transform .06s ease, filter .15s ease;
}
.btn:active{transform:translateY(1px)}
.btn:hover{filter:brightness(1.03)}

.btn.secondary{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
}

.btn:disabled{opacity:.55;cursor:not-allowed}

/* Messages */
.err{
  display:none;
  margin-top:10px;
  color:#ffb4b4;
  background:rgba(255,0,0,.08);
  border:1px solid rgba(255,0,0,.25);
  padding:10px 12px;
  border-radius:12px
}
.ok{
  display:none;
  margin-top:10px;
  color:#bfffe2;
  background:rgba(0,255,128,.08);
  border:1px solid rgba(0,255,128,.25);
  padding:10px 12px;
  border-radius:12px
}

hr.sep{border:0;border-top:1px solid var(--border);margin:16px 0}

/* States checkbox grid */
.states-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
  background:rgba(0,0,0,.25);
  max-height:240px;
  overflow:auto;
}
@media(min-width:720px){.states-grid{grid-template-columns:repeat(6,1fr)}}

.state-pill{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  user-select:none;
}
.state-pill input{
  width:auto;
  margin:0;
}

/* Improve tap targets on mobile */
@media(max-width:480px){
  .btn{width:100%;justify-content:center}
  .states-grid{grid-template-columns:repeat(3,1fr)}
}