/* =====================================================================
   Hunebed Media / Contact (pagina-specifieke stijlen)
   Aanvullingen op het gedeelde design-systeem (styles.css).
   ===================================================================== */

/* ------------------------------ LAYOUT ------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 30px;
  align-items: start;
}

/* ---------------------------- FORMULIER ----------------------------- */
.contact-form {
  position: relative;
  background: #fff;
  border: 1px solid #E7E5DE;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 20px 50px rgba(22,23,28,.07);
}
.contact-form__title {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: .005em;
  color: var(--ink);
}
.contact-form__sub { margin: 0 0 30px; font-size: 15.5px; color: var(--ink-muted); }

/* Fluent Forms markup; its default theme is switched off in functions.php. */
.contact-form .fluentform { --fluentform-danger: #D14328; }
.contact-form .ff-t-container { gap: 18px; }
.contact-form .ff-el-group { margin-bottom: 18px; }
.contact-form .ff-el-input--label { margin-bottom: 8px; }
.contact-form .ff-el-input--label label {
  font-size: 13.5px;
  font-weight: 600;
  color: #3D3F47;
}
.contact-form .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after { color: inherit; margin-left: 2px; }
.contact-form .ff-el-form-control {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #DAD7CE;
  background: #FAFAF8;
  font-family: var(--f-body);
  font-size: 15px;
  color: #222;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form .ff-el-form-control::placeholder { color: #6E6F76; }
.contact-form textarea.ff-el-form-control { resize: vertical; line-height: 1.6; min-height: 130px; }
.contact-form .ff-el-form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,108,0,.15);
}
.contact-form .ff-el-is-error .ff-el-form-control { border-color: #D14328; box-shadow: 0 0 0 3px rgba(209,67,40,.14); }
.contact-form .text-danger { color: #D14328; font-size: 13.5px; font-weight: 600; margin-top: 6px; }

/* Onderwerp-chips (radio) */
.contact-form .hm-topics { margin-bottom: 24px; }
.contact-form .hm-topics .ff-el-input--label { margin-bottom: 10px; }
.contact-form .hm-topics .ff-el-input--content { display: flex; flex-wrap: wrap; gap: 9px; }
.contact-form .fluentform .ff-el-group.ff_list_inline .ff-el-form-check { margin: 0; line-height: 1; }
.contact-form .hm-topics .ff-el-form-check-label { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.contact-form .hm-topics input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.contact-form .hm-topics .ff-el-form-check-label span {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #DAD7CE;
  background: #fff;
  color: #3D3F47;
  font-weight: 600;
  font-size: 13.5px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.contact-form .hm-topics .ff-el-form-check-label:hover span { border-color: #B9B5A8; }
.contact-form .hm-topics input:checked + span { background: #222222; color: #fff; border-color: #222222; }
.contact-form .hm-topics input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,108,0,.25); }

/* Verstuurknop: zelfde look als .btn.btn--primary */
.contact-form .ff_submit_btn_wrapper { margin-bottom: 0; }
.contact-form .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--orange);
  color: #1A1A1A;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-form .ff-btn-submit:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.34); }
.contact-form .ff-btn-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,108,0,.4); }
.contact-form .ff-btn-submit:disabled,
.contact-form .ff_submitting .ff-btn-submit { opacity: .7; cursor: progress; transform: none; }

/* Foutmelding van de server (versturen mislukt, spamfilter, limiet) */
.contact-form .ff-errors-in-stack {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #FCEDEA;
  color: #A3311B;
  font-size: 14px;
  font-weight: 600;
}
.contact-form .ff-errors-in-stack .error-clear { display: none; }

/* Bedankmelding: vervangt het formulier na versturen */
.contact-form .ff-message-success {
  margin: 10px 0 0;
  padding: 40px 20px 10px;
  border: 0;
  box-shadow: none;
  text-align: center;
}
.contact-form .ff-message-success::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #15A06B;
  font-size: 38px;
  color: #fff;
  animation: popCheck .5s cubic-bezier(.2,.7,.2,1) both;
}
.contact-form .ff-message-success h3 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--ink); }
.contact-form .ff-message-success p { margin: 0 auto; max-width: 340px; font-size: 15.5px; line-height: 1.6; color: var(--ink-muted); }

@keyframes popCheck { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* --------------------------- INFO KOLOM ----------------------------- */
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #E7E5DE;
  border-radius: 18px;
  padding: 24px 26px;
  color: var(--ink);
  transition: transform .3s ease, box-shadow .3s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,23,28,.1); }
.contact-card__icon {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.contact-card__label {
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 3px;
}
.contact-card__value { font-family: var(--f-head); font-weight: 600; font-size: 17px; color: var(--ink); }

/* ------------------------------- KAART ------------------------------ */
.map-wrap {
  position: relative;
  height: clamp(300px, 42vh, 440px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-1);
  background: linear-gradient(135deg, #1d2a30, #16323b);
}
.map-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 44px);
}
.map-road { position: absolute; height: 8px; border-radius: 6px; }
.map-road--1 { left: 18%; top: 30%; width: 60%; background: rgba(255,108,0,.4); transform: rotate(12deg); }
.map-road--2 { left: 8%; top: 62%; width: 50%; background: rgba(70,179,206,.4); transform: rotate(-8deg); }
.map-pin-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.map-pin {
  width: 54px;
  height: 54px;
  border-radius: 50% 50% 50% 0;
  background: var(--orange);
  transform: rotate(-45deg);
  box-shadow: 0 12px 24px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pin span { transform: rotate(45deg); font-size: 22px; }
.map-label {
  background: rgba(20,20,20,.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
}
.map-label__name { font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--text); }
.map-label__sub { font-size: 13px; color: #9FA2AC; }
.map-open {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
  transition: transform .25s ease;
}
.map-open:hover { transform: translateY(-2px); }

/* ----------------------------- RESPONSIVE --------------------------- */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
}
