/* =========================================================================
   Offerteformulier (Contact Form 7) — vormgeving identiek aan het
   oorspronkelijke, statische ontwerp van de offerte-sectie.
   ========================================================================= */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offerte-form .wpcf7-form-control-wrap { display: block; }

.offerte-form input[type="text"],
.offerte-form input[type="email"],
.offerte-form input[type="tel"],
.offerte-form select,
.offerte-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #C5BFA8;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: #FDFAF2;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.offerte-form input:focus,
.offerte-form select:focus,
.offerte-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(74,124,63,0.15);
}
.offerte-form textarea { resize: vertical; min-height: 100px; }
.offerte-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B5F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.offerte-form input.wpcf7-not-valid,
.offerte-form select.wpcf7-not-valid,
.offerte-form textarea.wpcf7-not-valid {
  border-color: #C0392B;
}
.offerte-form .wpcf7-not-valid-tip {
  color: #C0392B;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

.offerte-form .form-submit,
.offerte-form input[type="submit"] {
  width: 100%;
  padding: 15px;
  background: var(--green);
  color: #F5F2E8;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 4px 20px rgba(74,124,63,0.3);
}
.offerte-form input[type="submit"]:hover {
  background: #3D6934;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74,124,63,0.4);
}
.offerte-form input[type="submit"]:disabled { opacity: 0.7; cursor: wait; transform: none; }

.offerte-form .form-disclaimer {
  font-size: 0.72rem;
  color: var(--gray);
  text-align: center;
  margin-top: 0.75rem;
}

/* Honeypot — onzichtbaar voor mensen, wel invulbaar voor bots. */
.offerte-form .gd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* CF7-statusmeldingen. */
.offerte-form .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.offerte-form form.sent .wpcf7-response-output {
  border: 1px solid rgba(74,124,63,0.35);
  background: var(--green-light);
  color: var(--green);
}
.offerte-form form.failed .wpcf7-response-output,
.offerte-form form.aborted .wpcf7-response-output,
.offerte-form form.spam .wpcf7-response-output,
.offerte-form form.invalid .wpcf7-response-output {
  border: 1px solid rgba(192,57,43,0.35);
  background: #FBEAE9;
  color: #922B21;
}
.offerte-form .wpcf7-spinner { margin: 0 0 0 10px; }

@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
}
