/*
 Theme Name:   Divi Child BeterWeten
 Theme URI:    https://beterweten.edderkop.nl
 Description:  Divi Child Thema voor BeterWeten
 Author:        Bart
 Template:     Divi
 Version:      1.0.0
*/

@import url("../Divi/style.css");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap");

/* ═══════════════════════════════════════════
   BeterWeten — Modulepagina stijlen
   Geldt voor alle module-pagina's
═══════════════════════════════════════════ */

/* Wrapper */
.bw-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  font-family: 'DM Sans', sans-serif;
}

/* ── Voortgangsbalk ── */
.bw-progress {
  background: #ffffff;
  border: 1px solid #d6e0f5;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(15,45,107,0.08);
}
.bw-progress-nav {
  font-size: 0.82rem;
  color: #3a4a6a;
  margin-bottom: 0.6rem;
}
.bw-progress-nav a { color: #3a4a6a; text-decoration: none; }
.bw-progress-nav a:hover { text-decoration: underline; }
.bw-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: #3a4a6a;
  margin-bottom: 0.5rem;
}
.bw-progress-count { color: #1d8cf8; }
.bw-bar {
  height: 7px;
  background: #e8f0fb;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}
.bw-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f2d6b, #1d8cf8);
  border-radius: 99px;
}
.bw-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.bw-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #d6e0f5;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 600; color: #3a4a6a;
}
.bw-dot.current {
  border-color: #1d8cf8; background: #e8f0fb; color: #1d8cf8;
  box-shadow: 0 0 0 3px rgba(29,140,248,0.15);
}
.bw-dot.done { background: #1a8c5b; border-color: #1a8c5b; color: white; }

/* ── Conceptkaart ── */
.bw-card {
  background: #ffffff;
  border: 1px solid #d6e0f5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,45,107,0.08);
}
.bw-card-header {
  background: linear-gradient(135deg, #0f2d6b 0%, #1d6cf0 100%);
  color: white;
  padding: 1.25rem 1.5rem;
}
.bw-card-number {
  font-size: 0.72rem; font-weight: 500; opacity: 0.75;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem;
}
.bw-card-title {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}
.bw-card-body { padding: 1.25rem 1.5rem; }
.bw-card-text {
  font-size: 0.92rem; line-height: 1.75;
  color: #3a4a6a; margin-bottom: 1.25rem;
}
.bw-card-text p + p { margin-top: 0.65rem; }

/* Responsive */
@media (max-width: 640px) {
  .bw-play-btn {
    width: 52px;
    height: 52px;
  }
}
/* ── Quiz ── */
.bw-quiz-divider {
  border: none; border-top: 1px solid #d6e0f5; margin: 0 0 1.25rem;
}
.bw-quiz-title {
  font-family: Georgia, serif; font-size: 0.95rem;
  font-weight: 600; color: #0d1b3e; margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   Gravity Forms restyling
═══════════════════════════════════════════ */

.bw-card-body .gform_wrapper .gform_heading,
.bw-card-body .gform_wrapper .gfield--type-html,
.bw-card-body .gform_wrapper .gfield--type-hidden,
.bw-card-body .gform_wrapper .gform_description {
  display: none !important;
}

.bw-card-body .gform_wrapper .gfield_label,
.bw-card-body .gform_wrapper legend.gfield_label {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #0d1b3e !important;
  margin-bottom: 0.65rem !important;
  padding: 0 !important;
}

/* Verberg radio input en bolletje */
.bw-card-body .gform_wrapper .gfield-choice-input[type="radio"],
.bw-card-body .gform_wrapper .gfield-choice-input[type="checkbox"] {
  display: none !important;
}
.bw-card-body .gform_wrapper .gchoice::before { display: none !important; }

/* Antwoordkaartjes */
.bw-card-body .gform_wrapper .gchoice {
  background: #f5f7fc !important;
  border: 1.5px solid #d6e0f5 !important;
  border-radius: 9px !important;
  padding: 0.65rem 0.875rem !important;
  margin: 0 0 0.45rem 0 !important;
  list-style: none !important;
  transition: all 0.2s !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
}
.bw-card-body .gform_wrapper .gchoice:hover {
  border-color: #1d8cf8 !important;
  background: #e8f0fb !important;
}
.bw-card-body .gform_wrapper .gchoice:has(.gfield-choice-input:checked) {
  border-color: #1d8cf8 !important;
  background: #e8f0fb !important;
}
.bw-card-body .gform_wrapper .gchoice .gform-field-label,
.bw-card-body .gform_wrapper .gchoice label {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.875rem !important;
  color: #0d1b3e !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}
.bw-card-body .gform_wrapper .gfield_radio,
.bw-card-body .gform_wrapper .ginput_container_radio {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Textarea */
.bw-card-body .gform_wrapper textarea.textarea {
  border: 1.5px solid #d6e0f5 !important;
  border-radius: 9px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.875rem !important;
  padding: 0.75rem !important;
  width: 100% !important;
  line-height: 1.6 !important;
  transition: border-color 0.2s !important;
  box-shadow: none !important;
  color: #0d1b3e !important;
  resize: vertical !important;
}
.bw-card-body .gform_wrapper textarea.textarea:focus {
  border-color: #1d8cf8 !important;
  outline: none !important;
}
.bw-card-body .gform_wrapper .charleft {
  font-size: 0.75rem !important;
  color: #3a4a6a !important;
}
.bw-card-body .gform_wrapper .gfield {
  margin-bottom: 1.25rem !important;
  padding: 0 !important;
}

/* Verstuurknop */
.bw-card-body .gform_wrapper .gform_footer {
  padding: 1rem 0 0 !important;
  border-top: 1px solid #d6e0f5 !important;
  margin-top: 0.5rem !important;
}
.bw-card-body .gform_wrapper input[type="submit"],
.bw-card-body .gform_wrapper .gform_button {
  background: #0f2d6b !important;
  color: white !important;
  border: none !important;
  padding: 0.65rem 1.5rem !important;
  border-radius: 9px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-shadow: none !important;
  width: 100% !important;
}
.bw-card-body .gform_wrapper input[type="submit"]:hover,
.bw-card-body .gform_wrapper .gform_button:hover {
  background: #1d6cf0 !important;
}

/* ═══════════════════════════════════════════
   Responsive — smartphone
═══════════════════════════════════════════ */

@media (max-width: 640px) {
  .bw-wrap {
    padding: 0.75rem 0.5rem 3rem;
  }
  .bw-progress {
    padding: 0.875rem 1rem;
    border-radius: 10px;
  }
  .bw-card {
    border-radius: 12px;
  }
  .bw-card-header {
    padding: 1rem 1.1rem;
  }
  .bw-card-title {
    font-size: 1.1rem;
  }
  .bw-card-body {
    padding: 1rem 1.1rem;
  }
  .bw-card-text {
    font-size: 0.88rem;
  }
  .bw-card-body .gform_wrapper .gchoice {
    padding: 0.75rem 0.875rem !important;
  }
  .bw-card-body .gform_wrapper .gchoice label {
    font-size: 0.875rem !important;
  }
  .bw-card-body .gform_wrapper input[type="submit"],
  .bw-card-body .gform_wrapper .gform_button {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
  }
}
