/*
Theme Name: GHC Plantion
Theme URI:  https://ghcplantion.nl/
Author:     Klok Mediabureau
Author URI: https://www.klokmedia.nl/
Template:   Divi
Version:    1.0
License:    GNU General Public License v2 or later
*/

/* START CONTACT FORM 7 AANPASSINGEN */

/* Basis layout */
.wpcf7 form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Twee kolommen */
.wpcf7 .half-width {
  width: calc(50% - 10px);
}

/* Volledige breedte */
.wpcf7 .full-width {
  width: 100%;
}

/* Checkboxen naast elkaar */
.wpcf7 .half-checkbox {
  width: calc(50% - 10px);
  display: flex;
  align-items: flex-start;
	flex-direction:column;
}

.wpcf7-list-item {
margin:0;
}

/* Knop rechts */
.wpcf7 .button-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* Inputvelden */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background-color: #e6ece8;
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
}

/* Container van de file-rij (2 kolommen: knop | tekst) */
.wpcf7 .file-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 24px;
}

/* Het echte file-veld */
.wpcf7 input[type="file"] {
  /* houd het veld zelf ‘clean’ */
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  padding: 0;
}

/* De knop zelf */
.wpcf7 input[type="file"]::file-selector-button {
  background: #0e2d23;          /* donkergroen */
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 2px;
  padding: 14px 22px 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, opacity .2s ease;
  position: relative;
}

/* Pijltje rechts in de knop */
.wpcf7 input[type="file"]::file-selector-button::after {
  content: "→";
  margin-left: 16px;
  display: inline-block;
}

/* Hover/active/focus states */
.wpcf7 input[type="file"]::file-selector-button:hover { opacity: .95; }
.wpcf7 input[type="file"]::file-selector-button:active { transform: translateY(1px); }
.wpcf7 input[type="file"]::file-selector-button:focus-visible {
  outline: 2px solid #86d1b2;   /* subtiele focus */
  outline-offset: 2px;
}

/* Tekst “Max. bestandsgrootte …” */
.wpcf7 .file-note {
  opacity: .75;
  font-size: clamp(10px,1vw,12px);
}

/* Mobiel onder elkaar */
@media (max-width: 768px) {
  .wpcf7 .file-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Checkboxen */
.wpcf7 input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
  margin-top: 3px;
}

/* Verzenden knop */
.wpcf7 input[type="submit"] {
  background-color: #ff2b66;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #e6235c;
}

/* Responsief gedrag */
@media (max-width: 768px) {
  .wpcf7 .half-width,
  .wpcf7 .half-checkbox {
    width: 100%;
  }
  .wpcf7 .button-wrap {
    justify-content: center;
  }
}

.wpcf7 .button-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Plaats de spinner rechts over de knop */
.wpcf7-spinner {
  position: absolute !important;
  right: 0;
  transform: translateX(120%); /* zet hem net rechts van de knop */
}

.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  padding: 20px!important;
}

.wpcf7-list-item-label{font-weight:400;}

/* EINDE CONTACT FORM 7 AANPASSINGEN */

/* Cookie Banner */
.cky-consent-container .cky-consent-bar {
	border-radius: 30px!important;
	background-color:#FFFFFFD1!important;
}
/* EINDE Cookie Banner */