/* Woningcheck v2.2: only plugin-owned components. Existing site CSS stays authoritative. */
.echt-formulier .gform_wrapper .egw-inline-status {grid-column:1/-1!important;min-width:0;width:100%;margin:2px 0!important;padding:0!important;font-size:14px;line-height:1.45;color:#237a43;overflow-wrap:anywhere;}
.echt-formulier .gform_wrapper .egw-inline-status:empty {display:none!important;}
.echt-formulier .gform_wrapper .egw-inline-status.egw-error {color:#ad3030!important;}
.echt-formulier .gform_wrapper .egw-property-card {grid-column:1/-1!important;min-width:0;width:100%;box-sizing:border-box;background:#f3f8f4;color:#173c32;border-left:4px solid #60bd69;border-radius:4px;padding:20px;margin:8px 0 14px;}
.echt-formulier .gform_wrapper .egw-property-card[hidden],.echt-formulier .gform_wrapper .egw-property-card [hidden] {display:none!important;}
.echt-formulier .gform_wrapper .egw-property-card h3 {color:#173c32!important;font-size:20px!important;font-weight:700!important;margin:0 0 12px!important;}
.echt-formulier .gform_wrapper .egw-property-card dl {margin:0;}
.echt-formulier .gform_wrapper .egw-property-card dl>div {display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:10px 0;border-top:1px solid #d5e5da;}
.echt-formulier .gform_wrapper .egw-property-card dt {font-weight:700;color:#173c32;}
.echt-formulier .gform_wrapper .egw-property-card dd {margin:0;color:#173c32;}
/* Hide character counter for phone field 14, without hiding validation messages. */
.echt-formulier #field_1_14 .ginput_counter,.echt-formulier #field_1_14 .charleft,.echt-formulier #field_1_14 .gfield_description:not(.validation_message):not(.gfield_validation_message) {display:none!important;}
@media(max-width:767px){.echt-formulier .gform_wrapper .egw-property-card dl>div{grid-template-columns:1fr;gap:4px;}}

/* v2.4: deterministic address grid, regardless of lookup/status visibility. */
.echt-formulier form.egw-layout-ready .gform_fields,
.echt-formulier form.egw-layout-ready .gform-body .gform_fields {
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  column-gap:12px!important;
  row-gap:14px!important;
}
.echt-formulier form.egw-layout-ready .gform_fields > .gfield {min-width:0!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .gfield:not(.egw-address-postcode):not(.egw-address-number):not(.egw-address-addition):not(.egw-address-street):not(.egw-address-city) {grid-column:1/-1!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-address-postcode {grid-column:1/span 2!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-address-number {grid-column:3/span 2!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-address-addition {grid-column:5/span 2!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-address-street {grid-column:1/span 3!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-address-city {grid-column:4/span 3!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-inline-row {grid-column:1/-1!important;min-width:0!important;width:100%!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-inline-status:empty {display:none!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-property-card[hidden] {display:none!important;}
/* Ensure icon and typed text have separate space, including contact select/email. */
.echt-formulier form.egw-layout-ready .gfield input[type=text],
.echt-formulier form.egw-layout-ready .gfield input[type=email],
.echt-formulier form.egw-layout-ready .gfield input[type=tel],
.echt-formulier form.egw-layout-ready .gfield select {min-height:60px!important;box-sizing:border-box!important;}
.echt-formulier form.egw-layout-ready .gfield input[style*="background-image"],
.echt-formulier form.egw-layout-ready .gfield select[style*="background-image"] {padding-left:52px!important;background-position:16px center!important;}
/* Visible select/radio options, without overriding Gravity Forms conditional logic. */
.echt-formulier form.egw-layout-ready .gfield--type-radio .gfield_radio label,
.echt-formulier form.egw-layout-ready .gfield--type-checkbox .gfield_checkbox label {position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;white-space:normal!important;color:#173c32!important;}
.echt-formulier form.egw-layout-ready .gfield--type-select select {color:#173c32!important;background-color:#fff!important;}
@media(max-width:767px) {
 .echt-formulier form.egw-layout-ready .gform_fields > .egw-address-postcode,
 .echt-formulier form.egw-layout-ready .gform_fields > .egw-address-number,
 .echt-formulier form.egw-layout-ready .gform_fields > .egw-address-addition,
 .echt-formulier form.egw-layout-ready .gform_fields > .egw-address-street,
 .echt-formulier form.egw-layout-ready .gform_fields > .egw-address-city {grid-column:1/-1!important;}
}

/* v2.5: the plugin status and property card are outside the Gravity Forms grid.
   Override old hard-coded grid-row values from site CSS v5. */
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-postcode,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-number,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-addition,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-street,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-city { grid-row:auto!important; }
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-postcode {grid-column:1/3!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-number {grid-column:3/5!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-addition {grid-column:5/7!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-street {grid-column:1/4!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-city {grid-column:4/7!important;}
@media(max-width:767px){
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-postcode,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-number,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-addition,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-street,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-address-city {grid-column:1/-1!important;}
}

/* v3.2: lichtgroene woningkaart met leesbare tekst, ook bij thema-overschrijvingen. */
.echt-formulier .gform_wrapper section.egw-property-card,
.echt-formulier form.egw-layout-ready section.egw-property-card {
  background-color:#e8f5e9!important;
  color:#173c32!important;
  border-left-color:#60bd69!important;
}
.echt-formulier .gform_wrapper section.egw-property-card h3,
.echt-formulier .gform_wrapper section.egw-property-card dt,
.echt-formulier .gform_wrapper section.egw-property-card dd,
.echt-formulier .gform_wrapper section.egw-property-card dl,
.echt-formulier .gform_wrapper section.egw-property-card dl > div {
  color:#173c32!important;
  opacity:1!important;
  -webkit-text-fill-color:#173c32!important;
}

/* v3.3: force legible text within the actual JS-created property card. */
.echt-formulier form.egw-layout-ready .egw-property-card {
  background:#e8f5e9!important;
  color:#173c32!important;
  border-left:4px solid #60bd69!important;
}
.echt-formulier form.egw-layout-ready .egw-property-card,
.echt-formulier form.egw-layout-ready .egw-property-card * {
  color:#173c32!important;
  -webkit-text-fill-color:#173c32!important;
  opacity:1!important;
}
/* Site CSS previously assigned fixed row numbers to individual GF fields.
   Let the fields flow naturally; retain the existing column layout rules above. */
.echt-formulier form.egw-layout-ready #gform_fields_1 > .gfield {
  grid-row:auto!important;
}
/* Remove excess vertical separation specifically around the plugin card. */
.echt-formulier form.egw-layout-ready .egw-property-card {
  margin-top:12px!important;
  margin-bottom:16px!important;
}

/* v3.4: normal document order and no reserved empty grid rows. */
.echt-formulier form.egw-layout-ready #gform_fields_1 {
  grid-template-rows:none!important;
  grid-auto-rows:auto!important;
  align-content:start!important;
  height:auto!important;
  min-height:0!important;
}
.echt-formulier form.egw-layout-ready #gform_fields_1 > * {
  grid-row:auto!important;
  align-self:start!important;
}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-inline-row {
  grid-column:1/-1!important;
  margin-top:4px!important;
  margin-bottom:4px!important;
}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-inline-status:empty {display:none!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > section.egw-property-card,
.echt-formulier form.egw-layout-ready #gform_fields_1 > section.egw-property-card * {
  color:#173c32!important;
  -webkit-text-fill-color:#173c32!important;
}
.echt-formulier form.egw-layout-ready #gform_fields_1 > section.egw-property-card {
  background:#e8f5e9!important;
  padding:20px 24px!important;
}

/* v3.5: BAG storage inputs stay in GF submission but must not occupy grid rows.
   Explicit GF visibility-hidden class also covers forms with stale site CSS. */
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-storage-field,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-storage-field[hidden],
.echt-formulier form.egw-layout-ready #gform_fields_1 > #field_1_24,
.echt-formulier form.egw-layout-ready #gform_fields_1 > #field_1_26,
.echt-formulier #gform_wrapper_1 #field_1_24,
.echt-formulier #gform_wrapper_1 #field_1_26 {
  display:none!important;
}

/* v3.6: secondary address and customizable theme. */
.echt-formulier form.egw-layout-ready .gform_fields > .egw-app-address {grid-row:auto!important;min-width:0!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-app-postcode {grid-column:1/3!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-app-number {grid-column:3/5!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-app-addition {grid-column:5/7!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-app-street {grid-column:1/4!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .egw-app-city {grid-column:4/7!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .gfield.egw-app-address {grid-column:1/-1!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .gfield.egw-app-postcode {grid-column:1/3!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .gfield.egw-app-number {grid-column:3/5!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .gfield.egw-app-addition {grid-column:5/7!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .gfield.egw-app-street {grid-column:1/4!important;}
.echt-formulier form.egw-layout-ready .gform_fields > .gfield.egw-app-city {grid-column:4/7!important;}
.echt-formulier form.egw-layout-ready .gfield input:not([type=checkbox]):not([type=radio]),
.echt-formulier form.egw-layout-ready .gfield textarea,
.echt-formulier form.egw-layout-ready .gfield select {border-color:var(--egw-border,#237a43)!important;}
.echt-formulier form.egw-layout-ready .egw-property-card {background:var(--egw-card,#e8f5e9)!important;border-left-color:var(--egw-accent,#60bd69)!important;}
.echt-formulier form.egw-layout-ready .egw-property-card,
.echt-formulier form.egw-layout-ready .egw-property-card * {color:var(--egw-text,#173c32)!important;-webkit-text-fill-color:var(--egw-text,#173c32)!important;}
.echt-formulier form.egw-layout-ready .gform_footer .gform_button {background-color:var(--egw-accent,#60bd69)!important;}
.echt-formulier.egw-transparent-form,
.echt-formulier.egw-transparent-form .elementor-widget-container,
.echt-formulier.egw-transparent-form .gform_wrapper {background:transparent!important;}
.echt-formulier:not(.egw-transparent-form) {background-color:var(--egw-form-bg,#ffffff)!important;}
@media(max-width:767px){
 .echt-formulier form.egw-layout-ready .gform_fields > .gfield.egw-app-address {grid-column:1/-1!important;}
}

/* v3.8: both address groups share the same 3+2 grid and input styling. */
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-address {grid-row:auto!important;min-width:0!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-postcode {grid-column:1/3!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-number {grid-column:3/5!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-addition {grid-column:5/7!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-street {grid-column:1/4!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-city {grid-column:4/7!important;}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-address input[type="text"] {
  min-height:60px!important;box-sizing:border-box!important;width:100%!important;
  border:1px solid var(--egw-border,#237a43)!important;
  padding-left:52px!important;background-repeat:no-repeat!important;
  background-position:16px center!important;background-size:22px 22px!important;
}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-postcode input,
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-street input {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23237a43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 11-8 11S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E")!important;
}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-number input {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23237a43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v11H3z'/%3E%3Cpath d='M9 21v-8h6v8'/%3E%3C/svg%3E")!important;
}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-addition input {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23237a43' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E")!important;
}
.echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-city input {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23237a43' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18'/%3E%3Cpath d='M8 7h2m4 0h2M8 11h2m4 0h2M9 21v-5h6v5'/%3E%3C/svg%3E")!important;
}
@media(max-width:767px){
 .echt-formulier form.egw-layout-ready #gform_fields_1 > .egw-app-address {grid-column:1/-1!important;}
}
