/* RL - Ik kijk anders - Public styles */

/* ==========================================
   Movisie huisstijl kleuren
   ========================================== */

:root {
  --rl-blauw: #280a6c;
  --rl-blauw-dark: #201A5F;
  --rl-blauw-light: #f0ecf7;
  --rl-lila: #b978ba;
  --rl-lila-dark: #7a3d7b;
  --rl-lila-light: #f5eef5;
  --rl-groen: #278900;
  --rl-groen-light: #e6f4e0;
  --rl-groen-border: #b8d9a8;
  --rl-groen-dark: #1d6600;
}

/* ==========================================
   Accessibility utilities
   ========================================== */

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fieldset reset for accessibility */
.rl-checklist-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Skip link (optional, for full page integration) */
.rl-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--rl-blauw);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.rl-skip-link:focus {
  top: 0;
}

/* Focus indicators - WCAG 2.1 compliant */
#rl-ika-app *:focus {
  outline: 2px solid var(--rl-blauw);
  outline-offset: 2px;
}

#rl-ika-app *:focus:not(:focus-visible) {
  outline: none;
}

#rl-ika-app *:focus-visible {
  outline: 2px solid var(--rl-blauw);
  outline-offset: 2px;
}

/* Custom checkbox: toon focus-indicator op de visuele checkbox-box */
.rl-check-item:focus-within {
  outline: 2px solid var(--rl-blauw);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  #rl-ika-app *:focus,
  #rl-ika-app *:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
  }

  .rl-check-item:has(input:checked) {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  #rl-ika-app *,
  .rl-ika-gallery * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   Main styles
   ========================================== */

#rl-ika-app {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#rl-ika-app h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--rl-blauw);
}

#rl-ika-app h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--rl-blauw);
}

#rl-ika-app .rl-intro {
  color: #333;
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.5;
}

#rl-ika-app .rl-intro em {
  font-style: normal;
  color: #666;
}

#rl-ika-app p {
  margin: 0 0 12px;
}

/* Inputs */
#rl-ika-app input[type="email"],
#rl-ika-app input[type="text"],
#rl-ika-app select {
  width: 100%;
  max-width: 400px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}

.rl-form-row {
  display: flex;
  gap: 12px;
  max-width: 480px;
}

.rl-form-row .rl-form-field {
  flex: 1;
  min-width: 0;
}

.rl-form-row input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.rl-form-field--infix {
  flex: 0 0 90px;
}

#rl-ika-app input[type="file"] {
  margin-bottom: 16px;
  display: block;
}

/* Buttons */
#rl-ika-app button {
  background: var(--rl-blauw);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

#rl-ika-app button:hover:not(:disabled) {
  background: var(--rl-blauw-dark);
}

#rl-ika-app button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Checklist */
.rl-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.rl-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.rl-check-item:hover {
  background: #f0f4f8;
  border-color: #d0d7de;
}

.rl-check-item:has(input:checked) {
  background: var(--rl-groen-light);
  border-color: var(--rl-groen);
}

.rl-check-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rl-check-box {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid #bbb;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-top: 1px;
}

.rl-check-box::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  transform: scale(0);
  transition: all 0.15s ease;
}

.rl-check-item:has(input:checked) .rl-check-box {
  background: var(--rl-groen);
  border-color: var(--rl-groen);
}

.rl-check-item:has(input:checked) .rl-check-box::after {
  opacity: 1;
  transform: scale(1);
}

.rl-check-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

/* Legacy Questions (fallback) */
.rl-q {
  background: #f8f9fa;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.rl-q-text {
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.5;
}

.rl-q-options {
  display: flex;
  gap: 24px;
}

.rl-q-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
}

.rl-q-options input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Actions */
.rl-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e9ecef;
}

.rl-disclaimer {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Result messages */
.rl-success {
  background: var(--rl-groen-light);
  border: 1px solid var(--rl-groen-border);
  color: var(--rl-groen-dark);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.rl-fail {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Consent checkbox */
.rl-privacy-info {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 16px;
}
.rl-privacy-info a {
  color: inherit;
  text-decoration: underline;
}

.rl-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  line-height: 1.4;
}

.rl-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Combined Form + Upload Layout */
.rl-combined-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.rl-form-section {
  display: flex;
  flex-direction: column;
}

.rl-form-section input,
.rl-form-section select {
  max-width: 100%;
}

.rl-photo-section {
  display: flex;
  flex-direction: column;
}

.rl-photo-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.rl-file-dropzone {
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
}

.rl-file-dropzone:hover {
  border-color: var(--rl-lila);
  background: var(--rl-lila-light);
}

.rl-file-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.rl-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.rl-dropzone-icon {
  font-size: 32px;
}

.rl-dropzone-text {
  font-size: 14px;
  color: #666;
}

.rl-form-footer {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}

.rl-btn-small {
  padding: 8px 16px !important;
  font-size: 14px !important;
}

/* Cropper in combined layout */
.rl-photo-section .rl-cropper-container {
  margin: 0;
}

.rl-photo-section .rl-cropper-preview {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
}

.rl-photo-section .rl-cropper-controls {
  max-width: 100%;
}

.rl-photo-section .rl-cropper-controls label {
  font-size: 12px;
}

/* Legacy Upload step */
.rl-upload p {
  color: #666;
  margin-bottom: 16px;
}

#rlUploadResult {
  margin-top: 16px;
}

/* Cropper */
.rl-cropper-container {
  margin: 20px 0;
}

.rl-cropper-preview {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 20px;
}

/* De foto zit in een kleinere cirkel binnen de ring */
.rl-photo-area {
  position: absolute;
  /* Ring in SVG: r=380 met stroke=60 op 1000x1000 canvas
       Foto past binnen radius 350, dus 70% van canvas */
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.rl-photo-area img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* SVG ring overlay */
.rl-ring-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.rl-cropper-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.rl-cropper-controls label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #555;
}

.rl-cropper-controls input[type="range"] {
  flex: 1;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  cursor: pointer;
}

.rl-cropper-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--rl-lila);
  border-radius: 50%;
  cursor: pointer;
}

.rl-cropper-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.rl-btn-secondary {
  background: #f0f0f0 !important;
  color: #333 !important;
  border: 1px solid #ccc !important;
}

.rl-btn-secondary:hover:not(:disabled) {
  background: #e0e0e0 !important;
}

/* Download button */
.rl-download-btn {
  display: inline-block;
  background: var(--rl-groen);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.rl-download-btn:hover {
  background: var(--rl-groen-dark);
}

/* Done step */
.rl-done {
  text-align: center;
}

.rl-done h2 {
  color: var(--rl-groen-dark);
}

#rlPreview {
  margin-top: 20px;
}

#rlPreview img {
  max-width: 300px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Gallery */
.rl-ika-gallery {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.rl-gallery-header {
  background: linear-gradient(135deg, var(--rl-blauw) 0%, var(--rl-blauw-dark) 100%);
  color: #fff;
  padding: 40px 24px;
  border-radius: 16px 16px 0 0;
  text-align: center;
}

.rl-gallery-header h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.rl-gallery-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.rl-gallery-count {
  display: inline-block;
  background: var(--rl-lila-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 12px;
}

.rl-gallery-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.rl-gallery-filter label {
  font-size: 14px;
  font-weight: 600;
  color: var(--rl-blauw);
}

.rl-gallery-filter select {
  padding: 8px 32px 8px 12px;
  border: 2px solid var(--rl-lila);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--rl-blauw);
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23280a6c' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.rl-gallery-filter select:focus {
  outline: 2px solid var(--rl-blauw);
  outline-offset: 2px;
  border-color: var(--rl-blauw);
  box-shadow: none;
}

.rl-gallery-body {
  background: var(--rl-blauw-light);
  padding: 24px;
  border-radius: 0 0 16px 16px;
}

.rl-ika-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.rl-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 16px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(40, 10, 108, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rl-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(40, 10, 108, 0.15);
}

.rl-gallery-item:focus {
  outline: 3px solid var(--rl-lila);
  outline-offset: 2px;
}

.rl-gallery-item:focus:not(:focus-visible) {
  outline: none;
}

.rl-gallery-item:focus-visible {
  outline: 3px solid var(--rl-lila);
  outline-offset: 2px;
}

.rl-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--rl-lila);
  transition: border-color 0.2s;
}

.rl-gallery-item:hover img {
  border-color: var(--rl-blauw);
}

.rl-gallery-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--rl-blauw);
  text-align: center;
  line-height: 1.3;
}

.rl-gallery-subtitle {
  font-size: 12px;
  color: var(--rl-lila-dark);
  text-align: center;
  line-height: 1.3;
}

/* Popup overlay */
.rl-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 10, 108, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  padding: 20px;
}

.rl-popup-overlay[hidden] {
  display: none;
}

.rl-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Focus styles for popup close button */
.rl-popup-close:focus {
  outline: 2px solid var(--rl-lila);
  outline-offset: 2px;
}

.rl-popup-close:focus-visible {
  outline: 2px solid var(--rl-lila);
  outline-offset: 2px;
}

.rl-popup {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(40, 10, 108, 0.25);
  position: relative;
  animation: popupIn 0.2s ease;
  border-top: 4px solid var(--rl-lila);
}

@keyframes popupIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.rl-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--rl-blauw-light);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rl-blauw);
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}

.rl-popup-close:hover {
  background: var(--rl-lila-light);
}

.rl-popup-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: var(--rl-blauw-light);
  border-bottom: 2px solid var(--rl-lila);
}

.rl-popup-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--rl-lila);
}

.rl-popup-info {
  flex: 1;
  min-width: 0;
}

.rl-popup-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--rl-blauw);
  margin-bottom: 4px;
}

.rl-popup-subtitle {
  font-size: 14px;
  color: var(--rl-lila-dark);
  font-weight: 500;
}

.rl-popup-body {
  padding: 20px;
}

.rl-popup-intro {
  font-size: 14px;
  color: var(--rl-blauw);
  margin-bottom: 12px;
  font-style: italic;
  font-weight: 600;
}

.rl-popup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rl-popup-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.rl-popup-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--rl-groen);
  font-weight: bold;
}

.rl-popup-links {
  display: block;
  margin-top: 6px;
}

.rl-popup-links-intro {
  display: block;
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-bottom: 3px;
}

.rl-popup-links-list {
  display: flex;
  gap: 12px;
}

.rl-popup-links-list a {
  font-size: 13px;
  color: var(--rl-blauw);
  text-decoration: underline;
}

.rl-popup-links-list a:hover {
  color: var(--rl-lila);
}

/* Fallback voor oude grid items zonder wrapper */
.rl-ika-grid > img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.rl-ika-grid > img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 700px) {
  .rl-combined-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rl-photo-section .rl-cropper-preview {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 600px) {
  #rl-ika-app {
    padding: 16px;
  }

  .rl-q-options {
    flex-direction: column;
    gap: 12px;
  }

  #rl-ika-app button {
    width: 100%;
  }

  #rl-ika-app input[type="email"],
  #rl-ika-app input[type="text"],
  #rl-ika-app select {
    max-width: 100%;
  }

  .rl-form-row {
    flex-direction: column;
    max-width: 100%;
  }

  .rl-check-item {
    padding: 12px 14px;
  }

  .rl-check-text {
    font-size: 14px;
  }

  .rl-file-dropzone {
    padding: 30px 16px;
  }
}

/* ============================
   Doelen overzicht
   ============================ */

.rl-doelen-wrap {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.rl-doelen-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rl-doel-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(40, 10, 108, 0.08);
  border-left: 4px solid var(--rl-lila);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  overflow: visible;
}

.rl-doel-card--has-avatars {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
}

.rl-doel-main {
  min-width: 0;
}

.rl-doel-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--rl-blauw);
  line-height: 1.4;
  margin-bottom: 14px;
}

.rl-doel-bar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.rl-doel-bar {
  flex: 1;
  height: 14px;
  background: var(--rl-blauw-light);
  border-radius: 7px;
  overflow: hidden;
}

.rl-doel-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rl-lila) 0%, var(--rl-blauw) 100%);
  border-radius: 7px;
  transition: width 0.4s ease;
  min-width: 0;
}

.rl-doel-stat {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  min-width: 130px;
}

.rl-doel-stat strong {
  color: var(--rl-blauw);
}

.rl-doel-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rl-blauw-light);
}

.rl-doel-links-label {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

.rl-doel-links a {
  font-size: 13px;
  color: var(--rl-blauw);
  text-decoration: underline;
}

.rl-doel-links a:hover {
  color: var(--rl-lila);
}

/* Avatar thumbnails per doel */
.rl-doel-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
}

.rl-doel-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  z-index: 0;
}

.rl-doel-avatar:hover {
  z-index: 20;
}

.rl-doel-avatar img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(185, 120, 186, 0.45);
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.rl-doel-avatar:hover img {
  transform: scale(2.5);
  opacity: 1;
  border-color: var(--rl-blauw);
}

.rl-doel-avatar-tip {
  position: absolute;
  bottom: calc(100% + 30px); /* above the scaled image */
  left: 50%;
  transform: translateX(-50%);
  background: var(--rl-blauw);
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 30;
}

.rl-doel-avatar:hover .rl-doel-avatar-tip {
  opacity: 1;
}

@media (max-width: 700px) {
  .rl-doel-card--has-avatars {
    grid-template-columns: 1fr;
  }

  .rl-doel-avatars {
    width: auto;
  }
}

@media (max-width: 600px) {
  .rl-doel-card {
    padding: 16px 18px;
  }

  .rl-doel-bar-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .rl-doel-bar {
    width: 100%;
  }

  .rl-doel-stat {
    min-width: 0;
  }
}

/* ============================
   Privacy Request Form
   ============================ */
.rl-privacy-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.rl-privacy-form-wrap h2 {
  color: var(--rl-blauw);
  margin-bottom: 8px;
}

.rl-privacy-form-wrap > p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.rl-privacy-form .rl-form-field {
  margin-bottom: 20px;
}

.rl-privacy-form label,
.rl-privacy-form legend {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 15px;
}

.rl-privacy-form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.rl-privacy-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.rl-privacy-form input[type="email"]:focus {
  border-color: var(--rl-blauw);
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 10, 108, 0.12);
}

.rl-radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.rl-radio-label:hover {
  border-color: var(--rl-lila);
  background: var(--rl-lila-light);
}

.rl-radio-label input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--rl-blauw);
  flex-shrink: 0;
}

.rl-radio-label input[type="radio"]:checked + span {
  color: var(--rl-blauw);
}

.rl-radio-label span {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  font-weight: 400;
}

.rl-privacy-form .rl-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--rl-blauw);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.rl-privacy-form .rl-btn:hover {
  background: var(--rl-blauw-dark);
}

.rl-privacy-form .rl-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rl-privacy-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.rl-privacy-msg--success {
  background: var(--rl-groen-light);
  border: 1px solid var(--rl-groen-border);
  color: var(--rl-groen-dark);
}

.rl-privacy-msg--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* -------------------------------------------------------
 * Kaart shortcode [rl_ika_map]
 * ------------------------------------------------------- */
.rl-ika-map-wrap {
  width: 100%;
}

.rl-ika-map-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.rl-ika-map-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rl-ika-map-legend-item span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 3px;
  flex-shrink: 0;
}
