/* /jdserver/2026/modules/wikimeteo/pages/participa.css */

.wm-participa-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap:16px;
  margin-top:14px;
}

/* Head (badges) */
.wm-participa-head{
  display:grid;
  gap:10px;
}

.wm-participa-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}

.wm-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.22);
  background: rgba(255,255,255,0.04);
  font-size:0.92rem;
  opacity:0.95;
}

/* Main panels */
.wm-participa-info,
.wm-participa-form{
  border:1px solid rgba(148,163,184,0.25);
  background: rgba(255,255,255,0.04);
  border-radius:18px;
  padding:16px;
  backdrop-filter: blur(8px);
}

.wm-participa-hero{
  padding: 4px 2px 10px;
}

.wm-participa-section{
  margin-top: 14px;
}

.wm-h3{
  font-size: 1.02rem;
  margin: 10px 0 8px;
}

.wm-participa-note{
  margin-top:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px dashed rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.02);
  opacity:0.98;
}

.wm-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

/* Steps */
.wm-steps{
  display:grid;
  gap:10px;
  margin-top: 10px;
}

.wm-step{
  display:flex;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,0.18);
  background: rgba(0,0,0,0.08);
}

.wm-step__n{
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  border:1px solid rgba(148,163,184,0.25);
  background: rgba(255,255,255,0.06);
}

.wm-step__t{
  font-weight:700;
  margin-bottom: 2px;
}

/* Details / Accordion */
.wm-details{
  margin-top:10px;
  border:1px solid rgba(148,163,184,0.20);
  background: rgba(0,0,0,0.06);
  border-radius:14px;
  overflow:hidden;
}

.wm-details__summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  font-weight:700;
}

.wm-details__summary::-webkit-details-marker{ display:none; }

.wm-details__chev{
  width:10px;
  height:10px;
  border-right:2px solid rgba(148,163,184,0.8);
  border-bottom:2px solid rgba(148,163,184,0.8);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

details[open] .wm-details__chev{
  transform: rotate(-135deg);
}

.wm-details__body{
  padding: 0 12px 12px;
}

/* Example box */
.wm-example{
  border:1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.03);
  border-radius:14px;
  padding:12px;
}

.wm-example__t{
  font-weight:700;
  margin-bottom: 8px;
}

.wm-example__pre{
  margin:0;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.18);
  background: rgba(0,0,0,0.18);
  overflow:auto;
  font-size: 12px;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Checklist & FAQ */
.wm-checklist{
  margin-top: 10px;
  border:1px solid rgba(148,163,184,0.14);
  background: rgba(0,0,0,0.10);
  border-radius:14px;
  padding:12px;
}

.wm-checklist__t{
  font-weight:700;
  margin-bottom: 6px;
}

.wm-faq{
  display:grid;
  gap:8px;
  padding-top: 6px;
}

.wm-faq__q{
  font-weight:700;
}

/* Form header */
.wm-formhead{
  padding: 2px 2px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(148,163,184,0.16);
}

.wm-formhead__t{
  font-weight:800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Fields */
.wm-field{ margin-bottom: 14px; }
.wm-label{ display:block; font-weight:600; margin-bottom:6px; }
.wm-help{ margin-top:6px; opacity:0.82; font-size:0.92rem; }

.wm-textarea{ width:100%; min-height:120px; resize:vertical; }
.wm-textarea--big{ min-height: 260px; }

.wm-consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:10px 0 6px;
  font-size:0.95rem;
}

.wm-actions{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  margin-top:14px;
}

.wm-footnote{
  margin-top: 10px;
  font-size: 0.92rem;
  opacity: 0.82;
  border-top: 1px solid rgba(148,163,184,0.14);
  padding-top: 10px;
}

/* Honeypot */
.wm-hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
}

/* Responsive */
@media (max-width: 900px){
  .wm-participa-grid{ grid-template-columns: 1fr; }
  .wm-actions{ flex-direction:column; align-items:stretch; }
  .wm-actions .wm-btn{ width:100%; justify-content:center; }
}

/* Flash / banners (ok/error) */
.wm-flashmount{
  margin-top: 8px;
}

.wm-flashbar{
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(255,255,255,0.05);
  margin: 10px 0 14px;
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.wm-flashbar__icon{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(255,255,255,0.06);
}

.wm-flashbar__title{
  font-weight: 800;
  margin: 0 0 4px;
}

.wm-flashbar__text{
  margin: 0;
  opacity: 0.92;
}

.wm-flashbar__meta{
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.78;
}

.wm-flashbar--ok{
  border-color: rgba(34,197,94,0.45);
  background: rgba(34,197,94,0.10);
}
.wm-flashbar--ok .wm-flashbar__icon{
  border-color: rgba(34,197,94,0.50);
}

.wm-flashbar--err{
  border-color: rgba(248,113,113,0.55);
  background: rgba(248,113,113,0.10);
}
.wm-flashbar--err .wm-flashbar__icon{
  border-color: rgba(248,113,113,0.55);
}

/* Micro polish */
.wm-participa-form .wm-input:focus,
.wm-participa-form .wm-textarea:focus,
.wm-participa-form .wm-select:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(148,163,184,0.18);
}

.wm-step,
.wm-details,
.wm-example,
.wm-checklist{
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

@media (hover:hover){
  .wm-step:hover{
    transform: translateY(-1px);
    border-color: rgba(148,163,184,0.26);
    background: rgba(255,255,255,0.05);
  }
  .wm-details:hover{
    border-color: rgba(148,163,184,0.26);
  }
}
