/* Morado CF Ledenportaal – volgt het kleurenpalet van het Blocksy-thema. */
.mlp, .is-style-morado-info {
  --mlp-accent: var(--theme-palette-color-1, #6F2DBD);
  --mlp-accent-dark: var(--theme-palette-color-2, #53219A);
  --mlp-ink: var(--theme-palette-color-3, #2B0E4A);
  --mlp-soft: var(--theme-palette-color-5, #F3ECFF);
  --mlp-line: var(--theme-palette-color-6, #E4DAF5);
  --mlp-bg: var(--theme-palette-color-8, #FFFFFF);
  --mlp-radius: 14px;
}

/* ---------- infokader (blokstijl voor Groep/Paragraaf) ---------- */
.is-style-morado-info {
  background: var(--mlp-soft);
  border-left: 5px solid var(--mlp-accent);
  border-radius: 10px;
  padding: 18px 22px;
  margin-block: 1.2em;
  font-size: .95em;
  line-height: 1.65;
}
.is-style-morado-info > :first-child { margin-top: 0; }
.is-style-morado-info > :last-child { margin-bottom: 0; }
.is-style-morado-info p { margin: 0 0 .6em; }
.is-style-morado-info ul { margin: .4em 0 0; padding-left: 1.2em; }

/* ---------- formulier ---------- */
.mlp-form-wrap { margin-block: 1.5em; }
.mlp-form {
  background: var(--mlp-bg);
  border: 1px solid var(--mlp-line);
  border-top: 6px solid var(--mlp-accent);
  border-radius: var(--mlp-radius);
  padding: clamp(18px, 4vw, 36px);
  box-shadow: 0 18px 45px rgba(43, 14, 74, .08);
}
.mlp-form .wp-block-morado-leden-formulier > :first-child { margin-top: 0; }
.mlp-form h3.wp-block-heading {
  color: var(--mlp-ink);
  margin: 1.8em 0 .8em;
  padding-bottom: .4em;
  border-bottom: 3px solid var(--mlp-accent);
}
.mlp-form .wp-block-morado-leden-formulier > h3.wp-block-heading:first-child { margin-top: 0; }

.mlp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin-block: 1em;
}
.mlp-full, .mlp-check, .mlp-legend { grid-column: 1 / -1; }

.mlp-field { display: grid; gap: 6px; margin: 0; }
.mlp-field > span, .mlp-choices legend, .mlp-legend { font-size: .9em; font-weight: 700; color: var(--mlp-ink); }
.mlp-legend { margin: 0; }
.mlp-field input, .mlp-field textarea {
  width: 100%;
  border: 1px solid #cfc6dc;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: inherit;
  min-height: 46px;
}
.mlp-field textarea { resize: vertical; }
.mlp-field input:focus, .mlp-field textarea:focus, .mlp-choice input:focus-visible, .mlp-check input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--mlp-accent) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--mlp-accent);
}
.mlp-field small, .mlp-help { color: #6b6478; font-size: .8em; line-height: 1.5; margin: 0; }
.mlp-field input[type="file"] { padding: 10px; background: var(--mlp-soft); }

.mlp-choices {
  border: 1px solid var(--mlp-line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
  display: grid;
  gap: 9px;
  background: #fff;
}
.mlp-choices legend { padding: 0 6px; }
.mlp-choice, .mlp-check { display: flex; align-items: flex-start; gap: 10px; font-size: .95em; line-height: 1.45; cursor: pointer; margin: 0; }
.mlp-choice input, .mlp-check input { margin-top: .2em; accent-color: var(--mlp-accent); width: 18px; height: 18px; flex: 0 0 auto; }
.mlp-req { color: #b3261e; text-decoration: none; border: 0; }

.mlp-required-note { font-size: .85em; color: #6b6478; margin: 1.5em 0 .5em; }
.mlp-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--mlp-accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 15px 30px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.mlp-btn:hover { background: var(--mlp-accent-dark); transform: translateY(-1px); }

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

.mlp-notice { padding: 14px 18px; border-radius: 12px; margin: 0 0 18px; font-weight: 700; }
.mlp-notice.is-success { background: #e8f7ee; color: #12622d; border: 1px solid #b9e4c8; }
.mlp-notice.is-error { background: #fdeeee; color: #a40018; border: 1px solid #f3c2c2; }
.mlp-link { color: var(--mlp-accent); font-weight: 800; text-decoration: none; }

/* ---------- ledenportaal-menu (tegels) ---------- */
.mlp-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-block: 1.2em 2em;
}
.mlp-tile {
  display: flex;
  align-items: flex-end;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: var(--mlp-radius);
  background: var(--mlp-soft);
  border: 2px solid var(--mlp-line);
  color: var(--mlp-ink);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s, border-color .15s, background .15s;
}
.mlp-tile:hover { transform: translateY(-3px); border-color: var(--mlp-accent); background: #fff; color: var(--mlp-ink); }
.mlp-tile.is-current { background: var(--mlp-accent); border-color: var(--mlp-accent); color: #fff; }

@media (max-width: 680px) {
  .mlp-fields { grid-template-columns: 1fr; }
  .mlp-menu { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- alleen in de editor ---------- */
.mlp-editor-form { border: 2px dashed var(--mlp-accent); border-radius: var(--mlp-radius); padding: 16px 20px; }
.mlp-editor-form__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mlp-accent); margin-bottom: 8px; }
.mlp-editor-form__button { display: inline-block; margin-top: 12px; background: var(--mlp-accent); color: #fff; border-radius: 999px; padding: 10px 22px; font-weight: 800; opacity: .8; }
.mlp-editor-fields { background: var(--theme-palette-color-5, #F3ECFF); border: 1px solid var(--theme-palette-color-6, #E4DAF5); border-radius: 10px; padding: 14px 16px; margin-block: 10px; font-size: 14px; }
.mlp-editor-fields.is-empty { border-style: dashed; }
.mlp-editor-fields__hint { color: #6b6478; font-size: 12px; margin-top: 4px; }
