/*
Theme Name: Barneveldse Begrafenis Vereniging
Theme URI:  https://www.bbver.nl/
Author:     Klok Media
Author URI: https://www.klokmedia.nl/
Template:   Divi
Version:    1.0
License:    GNU General Public License v2 or later
*/

/* Contact Form 7 formulier wrapper */
.wpcf7 form {
  max-width: 100%;
}

/* CF7 basislay-out */
.wpcf7 form p {
  margin: 0 0 18px;
}

/* 2 kolommen op desktop */
.wpcf7 form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 20px;
}

/* Standaard veldbreedte: 2 kolommen */
.wpcf7 form > p {
  width: calc(50% - 10px);
  margin: 0;
}

/* Volledige breedte voor textarea, acceptances en submit */
.wpcf7 form > p:has(textarea),
.wpcf7 form > p:has(.wpcf7-acceptance),
.wpcf7 form > p:has(.wpcf7-submit) {
  width: 100%;
}

/* Fallback voor browsers zonder :has() ondersteuning */
.wpcf7 form > p:last-of-type,
.wpcf7 form > p:nth-last-child(2),
.wpcf7 form > p:nth-last-child(3),
.wpcf7 form > p:nth-last-child(4) {
  width: 100%;
}

/* Alle invoervelden */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  border: 1px solid #cfc5bf;
  background: #fff;
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 0px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
}

/* Textarea */
.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}

/* Placeholder styling */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #7d746f;
  opacity: 1;
}

/* Focus state */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: #d2c1af00;
  box-shadow: 0 0 0 3px rgba(115, 90, 43, 0.12);
  background: #fff;
}

/* Acceptance checkboxes */
.wpcf7 .wpcf7-acceptance {
  display: block;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0 0 10px 0;
}

.wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #2a2a2a;
  cursor: pointer;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  margin: 3px 0 0;
  accent-color: #6f655a;
  transform: scale(1.05);
}

/* Submit knop */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 0px;
  background: #6f655a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
  background: #998a78;
  box-shadow: 0 0 0 3px rgba(95, 59, 21, 0.12);
}

.wpcf7 input[type="submit"]:active,
.wpcf7 .wpcf7-submit:active {
  transform: translateY(1px);
}

/* Validatieberichten */
.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 14px;
  color: #b3261e;
}

.wpcf7 form .wpcf7-response-output {
  width: 100%;
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 0px;
  font-size: 15px;
}

/* Tablet en kleiner: alles onder elkaar */
@media (max-width: 980px) {
  .wpcf7 form {
    gap: 16px;
  }

  .wpcf7 form > p {
    width: 100%;
  }
}

/* Niet klikbaar parent-item */
@media (min-width: 981px) {

.menu-no-link > a {
  pointer-events: none;
  cursor: default;
}

.menu-no-link > a:hover {
  color: inherit !important;
}

}