/* Capture M Group — contactpagina. Wordt naast styles.css geladen. */

.hero--page { height: auto; min-height: 520px; }
.hero__content--page { padding: 72px var(--pad-x) 96px; }
.hero__title--page { font-size: 56px; }
.hero__content--page .hero__intro { margin-bottom: 0; }

.contact {
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.5fr); gap: 64px;
  padding: var(--pad-y) var(--pad-x); background: var(--mist); align-items: start;
}
.contact__aside { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 56px; }
.contact__block .label { margin-bottom: 20px; }
.contact__big {
  display: block; font-family: var(--font-head); font-weight: 500; font-size: 24px; line-height: 1.3;
  color: var(--navy); letter-spacing: -.01em; transition: color .15s ease;
}
.contact__big + .contact__big { margin-top: 6px; }
.contact__big:hover, .contact__big:focus-visible { color: var(--blue); }
.contact__meta { font-size: 15px; line-height: 1.6; color: var(--slate); margin: 14px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.step__num { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--blue); padding-top: 4px; }
.step__title { font-family: var(--font-head); font-weight: 500; font-size: 19px; line-height: 1.25; margin: 0 0 6px; color: var(--navy); }
.step__text { font-size: 15px; line-height: 1.6; color: var(--slate); margin: 0; }

.contact__block--quote { border-left: 3px solid var(--blue); padding-left: 24px; }
.contact__quote {
  font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.4;
  color: var(--navy); margin: 0; letter-spacing: -.01em;
}
.contact__block--quote .contact__meta { margin-top: 10px; }

/* ---------- Form shell ---------- */

.form { background: #fff; border: 1px solid var(--line); padding: 56px; }
.form__head { margin-bottom: 40px; }
.form__title {
  font-family: var(--font-head); font-weight: 500; font-size: 34px; line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 12px; color: var(--navy);
}
.form__intro { font-size: 16px; line-height: 1.65; color: var(--slate); margin: 0; }

.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__section { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.form__section:last-of-type { margin-bottom: 32px; }
.form__legend {
  display: flex; align-items: center; gap: 14px; padding: 0 0 14px; margin-bottom: 24px;
  font-family: var(--font-head); font-weight: 500; font-size: 20px; color: var(--navy);
  width: 100%; border-bottom: 1px solid var(--line);
}
.form__legend-num { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--blue); }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }

.field { display: flex; flex-direction: column; margin-bottom: 20px; min-width: 0; }
.form__grid .field { margin-bottom: 0; }
.form__grid + .field { margin-top: 20px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; display: block; }
.field__req { color: var(--blue); }
.field__hint { font-weight: 400; color: var(--muted); margin-left: 6px; }

.field__input {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy); background: #fff;
  border: 1px solid var(--line-light); border-radius: 0; padding: 14px 16px; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none;
}
.field__input::placeholder { color: var(--muted); }
.field__input:hover { border-color: var(--muted); }
.field__input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,111,224,.15); }
.field__input.is-invalid { border-color: #C43B3B; }
.field__input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(196,59,59,.15); }
.field__input--area { resize: vertical; min-height: 160px; }

.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select .field__input { padding-right: 40px; }

.field__error { font-size: 13px; color: #C43B3B; margin: 6px 0 0; line-height: 1.4; }
.field__error:empty { display: none; }
.field__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.field__count { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; white-space: nowrap; margin-left: auto; }
.field__count.is-near { color: var(--blue); }

/* ---------- Segmented radios ---------- */

.segmented { display: flex; border: 1px solid var(--line-light); }
.segmented__option { flex: 1; position: relative; }
.segmented__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__option span {
  display: block; text-align: center; padding: 13px 8px; font-size: 14px; font-weight: 500; color: var(--slate);
  border-right: 1px solid var(--line-light); transition: background-color .15s ease, color .15s ease; cursor: pointer;
}
.segmented__option:last-child span { border-right: 0; }
.segmented__option:hover span { background: var(--mist); }
.segmented__option input:checked + span { background: var(--navy); color: #fff; }
.segmented__option input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--blue); }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; font-weight: 500;
  color: var(--navy); border: 1px solid var(--line-light); border-radius: 999px; background: #fff; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip span::before {
  content: ""; width: 14px; height: 14px; border: 1px solid var(--line-light); border-radius: 50%;
  background: #fff; transition: background-color .15s ease, border-color .15s ease; flex: 0 0 auto;
}
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:checked + span::before {
  border-color: #fff; background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2L9 4' fill='none' stroke='%231E6FE0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30,111,224,.25); }

/* ---------- Checkbox ---------- */

.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 20px; height: 20px; border: 1px solid var(--line-light); background: #fff; margin-top: 2px;
  transition: background-color .15s ease, border-color .15s ease;
}
.check input:checked + .check__box {
  background: var(--blue); border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.5 2.5L9.5 3.7' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(30,111,224,.25); }
.check__text { font-size: 14px; line-height: 1.6; color: var(--slate); }
.check__text a { color: var(--blue); border-bottom: 1px solid rgba(30,111,224,.4); }

/* ---------- Actions + status ---------- */

.form__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; max-width: 320px; }

.btn--submit { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; border: 0; }
.btn--submit:disabled { cursor: default; opacity: .85; }
.btn--submit:disabled:hover { background: var(--blue); color: #fff; }
.btn__spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn--submit.is-busy .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { margin: 24px 0 0; padding: 14px 16px; font-size: 14px; line-height: 1.5; border: 1px solid var(--line); }
.form__status--error { border-color: #C43B3B; color: #8A2626; background: #FBF1F1; }
.form__status a { color: var(--blue); font-weight: 600; }

/* ---------- Success ---------- */

.form--success { border-left: 3px solid var(--blue); }
.success__mark { color: var(--blue); margin-bottom: 24px; }
.success__mark svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s ease .2s forwards; }
.success__mark svg circle { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__summary { margin: 28px 0; padding: 20px 24px; background: var(--mist); }
.success__summary .label-text { color: var(--blue); }
.success__summary p { margin: 8px 0 0; font-family: var(--font-head); font-size: 18px; color: var(--navy); }
.link-underline--dark { color: var(--navy); border-bottom-color: rgba(20,38,75,.4); }
.link-underline--dark:hover, .link-underline--dark:focus-visible { color: var(--blue); border-bottom-color: var(--blue); }

/* Footer without CTA row */
.footer--compact { padding-top: 16px; }

/* ---------- Responsive ---------- */

@media (max-width: 1279px) {
  .contact { gap: 48px; }
  .form { padding: 40px; }
}

@media (max-width: 1023px) {
  .hero--page { min-height: 0; }
  .hero__content--page { padding: 48px var(--pad-x) 64px; }
  .hero__title--page { font-size: 38px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .contact__aside { position: static; gap: 40px; }
  .contact__big { font-size: 20px; }
  .form { padding: 28px 20px; }
  .form__title { font-size: 28px; }
  .form__grid { grid-template-columns: 1fr; }
  .segmented { flex-wrap: wrap; }
  .segmented__option { flex: 1 1 45%; }
  .segmented__option span { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .segmented__option:nth-last-child(-n+2) span { border-bottom: 0; }
  .segmented__option:nth-child(odd) span { border-right: 1px solid var(--line-light); }
  .form__actions { align-items: flex-start; flex-direction: column; }
}
