/* Contact: WhatsApp-knop en formulier */
.contact {
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  width: 1000px;
  height: 1000px;
  left: -300px;
  bottom: -500px;
  background: radial-gradient(
    closest-side,
    rgba(47, 191, 138, 0.16),
    transparent
  );
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack);
  min-width: 0;
}
.contact-copy p {
  color: var(--muted);
}
.contact-copy .mail {
  font-family: var(--mono);
  font-size: 0.82rem;
}
.wa {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--edge);
  text-decoration: none;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  max-width: 420px;
}
.wa:hover {
  box-shadow: inset 0 0 0 1px rgba(47, 191, 138, 0.5);
  transform: translateY(-2px);
}
.wa .wi {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #25d366;
  display: grid;
  place-items: center;
  flex: none;
}
.wa .wi svg {
  width: 26px;
  height: 26px;
}
.wa b {
  display: block;
  font-weight: 600;
}
.wa span {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Formulier */
form {
  border-radius: 26px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--edge);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
form > .btn {
  align-self: flex-start;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}
.field label small {
  color: var(--dim);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 13px 14px;
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
/* Dropdown: standaardlook van de browser uit, eigen pijltje in dezelfde stijl als de velden */
.field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.field select:hover {
  border-color: var(--edge-2);
}
.field select option {
  background: var(--panel);
  color: var(--fg);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 191, 138, 0.14);
}
.field.err input {
  border-color: #e26d5a;
}
.field .msg {
  font-size: 0.8rem;
  color: #ff9a87;
}
.sent {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(47, 191, 138, 0.1);
  box-shadow: inset 0 0 0 1px rgba(47, 191, 138, 0.3);
  font-size: 0.95rem;
}
.sent svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  flex: none;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-head);
  }
}
@media (max-width: 620px) {
  .row {
    grid-template-columns: 1fr;
  }
}

/* Honeypot tegen spambots: buiten beeld, niet voor bezoekers */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sent-error {
  background: rgba(226, 109, 90, 0.1);
  box-shadow: inset 0 0 0 1px rgba(226, 109, 90, 0.35);
}
