/* details standaard verbergen */
.gf-choice-details {
  display: none;
  margin-top:5px;
  padding: 10px 0px;
  background: #fff;
  font-size: 11px;
	font-weight: normal;
}

/* lijst reset */
.gf-choice-details ul {
  margin: 0;
  padding-left: 0;
  list-style: none; /* standaard bullets uit */
}

/* elke regel */
.gf-choice-details li {
  position: relative;
  padding-left: 10px; 
}

/* custom dot */
.gf-choice-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #0c156b; /* kleur van punt */
  font-size: 16px;
  line-height: 1;
}

/* tonen wanneer radio geselecteerd is */
.gchoice:has(input:checked) .gf-choice-details {
  display: block;
}

.gf-opt-help {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  cursor: help;
  font-weight: 600;
  color: #0c156b;
}

/* tooltip */
.gf-opt-tooltip {
  position: absolute;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%);

  background: #111;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;

  width: 180px;        /* 👈 compact */
  max-width: 180px;
  white-space: normal; /* tekst breekt af */

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.gf-opt-help:hover .gf-opt-tooltip {
  opacity: 1;
  visibility: visible;
}

/* === GRAVITY FORMS === */
body .gform_wrapper .gfield input:not([type="checkbox"]):not([type="radio"]),
body .gform_wrapper .gfield textarea {
  border: 0px solid lightgray;
  border-radius: 4px;
  padding: 23px 20px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0%) !important;
}

body .gform_wrapper .gfield {
  margin-bottom: 10px;
}

.gform_wrapper .gform-button,
.gform_wrapper .gform-button--white,
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"],
.gform_wrapper button.button,
.gform_wrapper input.button  {
  height: 45px !important;
  border-radius: 99px !important;
  padding: 5px 30px !important;
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 0px 0 rgba(114, 114, 114, 0.0) !important;
	font-size: large!important;
}
#gform_submit_button_2 {
  margin-top: -20px;
}

/* Hover effect: change background to green */
body .gform_wrapper .gform_footer .gform_button:hover,
body .gform_wrapper .gform_page_footer .gform_button:hover,
body .gform_wrapper .gform_footer .gform_next_button:hover,
body .gform_wrapper .gform_page_footer .gform_next_button:hover,
body .gform_wrapper .gform_footer .gform_previous_button:hover,
body .gform_wrapper .gform_page_footer .gform_previous_button:hover {
  background-color: #c6a127 !important;
}

body .gform_wrapper .gform_drop_area {
  padding: 12px !important;
}

body .gform_wrapper .gform_fields {
  grid-row-gap: 4px;
}

/* === GRAVITY FORMS INPUTS, TEXTAREA & DROPDOWNS === */
body .gform_wrapper .gfield select {
  border: 1px solid whitesmoke;
  border-radius: 4px;
  padding: 13px 20px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0%) !important;
  height: auto;
  line-height: 1.4;
}

/* Alleen de ingevulde waarden in de samenvatting blauw */
.gf-summary .gf-summary-value {
  color: #008cff;
}

/* Target all placeholders in Gravity Forms */
body .gform_wrapper input::placeholder,
body .gform_wrapper textarea::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

/* === Focus states (remove default blue outline) === */
body .gform-theme--framework 
.gfield--type-image_choice.gfield--image-choice-appearance-card 
.gchoice:focus,
body .gform-theme--framework 
.gfield--type-image_choice.gfield--image-choice-appearance-card 
.gchoice:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

/* === Hover & default shadow removal === */
body .gform-theme--framework 
.gfield--type-image_choice.gfield--image-choice-appearance-card 
.gchoice:hover, 
body .gform-theme--framework 
.gfield--type-image_choice.gfield--image-choice-appearance-card 
.gchoice {
  box-shadow: none !important;
}

/* === Base card styles === */
body .gform-theme--framework 
.gfield--type-image_choice.gfield--image-choice-appearance-card 
.gchoice {
  --gf-local-shadow: var(--gf-field-img-choice-shadow);
  background-color: var(--gf-local-bg-color);
  border-radius: 8px;
}

/* === Selected state (green border + subtle glow) === */
body .gform-theme--framework 
.gfield--type-image_choice.gfield--image-choice-appearance-card 
.gchoice:has(input:checked) {
  border: 1px solid #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.25);
}

/* === Selected indicator (compact check style) === */
body .gform-theme--framework 
.gfield--type-image_choice.gfield--image-choice-appearance-card 
.gchoice:has(input:checked)::after {
  width: 28px;
  height: 28px;
  background-color: #4CAF50;
}

/* === General gchoice styling === */
body .gform_wrapper .gchoice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* === Input styling (visible inside card) === */
body .gform_wrapper .gchoice .gfield-choice-input {
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* === Label styling === */
body .gform_wrapper .gchoice .gform-field-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #112337;
  cursor: pointer;
}

/* Geselecteerd: zachte highlight */
body .gform_wrapper .gchoice .gfield-choice-input:checked + .gform-field-label {
  font-weight: 600;
  color: var(--primary-color);
}

body .gform_wrapper .gchoice:has(.gfield-choice-input:checked) {
  border-color: var(--primary-color);
  background-color: #E8F5E9;
  outline-offset: 2px; /* klein beetje ruimte van de rand */
  border-color: #4CAF50;
}

/* === Image Choice Grid Layout === */
body .gform-theme--framework .gfield--type-image_choice .gfield_checkbox,
body .gform-theme--framework .gfield--type-image_choice .gfield_radio {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: var(--gf-field-img-choice-gap, 1rem);
  width: 100%;
}

/* Mobiel: 1 kolom */
@media (max-width: 768px) {
  body .gform-theme--framework .gfield--type-image_choice .gfield_checkbox,
  body .gform-theme--framework .gfield--type-image_choice .gfield_radio {
    grid-template-columns: 1fr !important;
  }
}

/* Afbeeldingen centreren */
body .gform-theme--framework .gfield--type-image_choice .gfield-image-choice-wrapper-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center; /* tekst ook netjes gecentreerd */
}

/* Afbeeldingen klein en responsive */
body .gform-theme--framework .gfield--type-image_choice .gfield-choice-image-wrapper {
  aspect-ratio: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
body .gform-theme--framework .gfield--type-image_choice .gfield-choice-image {
  width: 160px !important;
  height: auto !important;
  max-width: 160px !important;
  max-height: 160px !important;
  object-fit: contain;
}
@media (max-width: 768px) {
  body .gform-theme--framework .gfield--type-image_choice .gfield-choice-image {
    width: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
  }
}

/* Responsive choice cards */
body .gform_wrapper .gfield_radio .gchoice {
  --gf-field-img-choice-size: 100%;
  inline-size: auto;
  max-inline-size: 100%;
  min-inline-size: 0;
}

/* Input verbergen maar klikbaar houden */
body .gform-theme--framework .gfield--type-image_choice .gfield-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body .gform-theme--framework .gfield--type-image_choice .gform-field-label {
  margin-left: 0 !important;
  font-size: large;
}