.contact-page { background: #101113; }
.contact-surface {
  --map-height: max(670px, 100svh);
  --map-opening: 305px;
  --contact-offset: clamp(22px, 2.1vw, 34px);
  --map-fade: linear-gradient(180deg, transparent 85%, #10111340 92%, #101113d9);
  position: relative;
  isolation: isolate;
  background: #191b1d;
  color: #fff;
  color-scheme: dark;
}
.contact-layout { min-height: var(--map-height); }
.contact-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}
.map-canvas {
  position: sticky;
  top: 0;
  height: var(--map-height);
  background: #232629;
}
.map-canvas::after {
  content: "";
  position: absolute;
  z-index: 550;
  inset: 0;
  pointer-events: none;
  background: var(--map-fade), linear-gradient(90deg, #090a0bd9 0%, #090a0bba 24%, #090a0b78 39%, #090a0b12 62%, transparent 76%);
}
.leaflet-container.map-canvas { background: #292e31; }
.map-place span {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #e8edef;
  font: 700 14px/1.1 "Roboto Condensed", sans-serif;
  text-shadow: 0 1px 3px #101214, 0 0 5px #101214;
  white-space: nowrap;
}
.map-haven span {
  color: #9ac0cf;
  font-size: 13px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.map-stabroek span { transform: translate(calc(-100% - 13px), -60%); }
.map-country-place span { font-size: 13px; }
@media (max-width: 480px) {
  .map-place span { font-size: 12px; }
  .map-haven span { font-size: 10px; }
}
.contact-panels {
  position: relative;
  z-index: 1;
  pointer-events: none;
  width: min(460px, calc(100% - var(--gutter) * 2));
  margin-left: max(var(--gutter), calc((100% - 1320px) / 2));
  padding-block: calc(var(--site-header-height) + clamp(32px, 4vw, 57px) + var(--contact-offset)) 66px;
}
.request-panel { pointer-events: auto; }
.request-panel h1 { margin-bottom: 12px; font-size: clamp(2.9rem, 5.6vw, 4.85rem); }
.request-intro { color: #e2e6e8; }
.request-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 22px;
  margin-bottom: 16px;
}
.request-channels a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sky);
  font-weight: 700;
  text-underline-offset: 3px;
}
.request-channels a:hover { color: #fff; }

#aanvraag-formulier { display: grid; gap: 16px; }
#aanvraag-formulier[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 4px; min-width: 0; }
.form-field > label { font-weight: 700; font-size: 1rem; }
.form-field > label span { font-weight: 400; }

.form-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid #ffffff9e;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 1rem;
}
.form-field select {
  appearance: none;
  padding-right: 35px;
  background: linear-gradient(45deg, transparent 50%, #fff 50%) calc(100% - 13px) 50% / 5px 5px no-repeat,
              linear-gradient(135deg, #fff 50%, transparent 50%) calc(100% - 8px) 50% / 5px 5px no-repeat;
}
.form-field select option { background: #1d2023; color: #fff; }
.form-field textarea { resize: vertical; }
.contact-layout a:focus-visible, .contact-layout button:focus-visible,
.contact-layout :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}
.form-field :is(input, select, textarea):focus-visible { border-bottom-color: var(--sky); }
.form-hint { color: #e2e6e8; font-size: .95rem; line-height: 1.35; }
.request-submit {
  display: grid;
  justify-items: start;
  gap: 1rem;
  margin-top: 2px;
}
#aanvraag-uitleg { font-style: italic; }
#aanvraag-uitleg a { color: var(--sky); text-underline-offset: .2em; }
.contact-layout button.btn {
  border: 0;
  appearance: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.contact-layout button.btn:disabled { opacity: .7; cursor: wait; }
.form-status { font-size: .95rem; line-height: 1.35; }
.form-status:empty { margin-top: -16px; }

.contact-footer {
  position: relative;
  z-index: 1;
  margin-top: -24px;
  color: #fff;
  background: linear-gradient(180deg, transparent, #1011133d 56%, #101113a6);
  padding-block: clamp(34px, 4vw, 49px) clamp(25px, 4vw, 46px);
}
.company-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 40px;
  font-size: 1.05rem;
}
.company-footer-grid h2 { margin-bottom: 7px; font-size: 1.55rem; }
.company-footer-grid address { font-style: normal; color: #e2e6e8; }
.company-channels, .company-route { display: grid; gap: 9px; }
.company-channels a, .company-route a { width: fit-content; text-decoration: none; }
.company-channels a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 26px;
  font-weight: 700;
}
.company-channels svg { flex: 0 0 20px; color: var(--blue); }
.company-channels a:hover, .company-route a { color: var(--sky); }
.company-route a:hover { color: #fff; }
.company-route p { color: #e2e6e8; }
.contact-footer a:focus-visible { outline-color: var(--sky); }
.contact-footer .footer-extras {
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #ffffff26;
  color: #e2e6e8;
}

.map-canvas :is(.leaflet-bar a, .leaflet-control-attribution, .leaflet-popup-content-wrapper, .leaflet-popup-tip) {
  color: #fff;
  background: #17191be8;
}
.map-canvas .leaflet-bar a { border-bottom-color: #ffffff3d; }
.map-canvas .leaflet-bar a:hover { background: #32363a; }
.hm-map-view button {
  min-height: 36px;
  padding: 5px 9px;
  border: 1px solid #ffffff3d;
  border-radius: 3px;
  background: #17191b;
  color: #fff;
  font: 700 14px/1.1 "Roboto Condensed", sans-serif;
  cursor: pointer;
}
.hm-map-view button:is(:hover, :focus-visible) { background: #32363a; }
.map-canvas .leaflet-control-attribution a, .map-canvas .leaflet-popup-close-button { color: #fff; }

.hm-marker {
  --marker-size: 57px;
  display: grid;
  justify-items: center;
  align-content: end;
  width: var(--marker-size);
  height: 62px;
  background: none;
  border: 0;
}
.hm-marker-content { display: contents; }
.leaflet-container .leaflet-marker-pane img.hm-marker-logo {
  width: 43px;
  margin: 0 0 4px;
  transform: rotate(180deg);
  filter: drop-shadow(0 1px 2px #fff) drop-shadow(0 1px 3px #162b3588);
}
.hm-marker.is-animated .hm-marker-logo {
  animation: heightmasters-point 2.5s cubic-bezier(.27,.65,.36,1) .18s both;
}
.hm-marker-dot {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0079ac;
  box-shadow: 0 0 0 1px #0079ac;
}
.leaflet-tooltip.hm-map-name {
  padding: 6px 9px;
  border: 1px solid #ffffff54;
  background: #17191be8;
  box-shadow: none;
  color: #fff;
  font: 800 14px/1.2 "Roboto Condensed", sans-serif;
}
.hm-map-name.leaflet-tooltip-right::before { border-right-color: #17191b; }
.hm-map-status {
  position: absolute;
  z-index: 450;
  right: 12px;
  bottom: 55px;
  max-width: calc(100% - 24px);
  background: #17191be8;
  color: #fff;
  padding: 7px 10px;
}
.hm-map-status[hidden] { display: none; }

@keyframes heightmasters-point {
  0%, 19%, 36%, 53%, 68% { transform: rotate(0deg); opacity: 1; }
  11%, 28%, 45% { opacity: .24; }
  100% { transform: rotate(180deg); opacity: 1; }
}

.map-canvas .leaflet-top.leaflet-right { top: var(--site-header-height); }
.map-canvas .leaflet-bottom.leaflet-right { bottom: 28px; }

@media (max-width: 880px) {
  .contact-surface { --map-height: max(520px, 100svh); --contact-offset: 16px; }
  .contact-panels { padding-block-start: calc(var(--map-opening) + var(--site-header-height) + var(--contact-offset)); }
  .map-canvas::after {
    background: var(--map-fade), linear-gradient(180deg, transparent 12%, #090a0b40 34%, #090a0bba 55%, #090a0bdf 100%);
  }
  .map-canvas .leaflet-top.leaflet-right .leaflet-control-attribution {
    position: absolute;
    top: calc(var(--map-opening) - 27px);
    right: 0;
    white-space: nowrap;
  }
  .map-canvas .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; }
  .map-canvas .hm-map-view { position: absolute; top: 0; right: 51px; white-space: nowrap; }
  .contact-panels {
    margin-inline: auto;
    width: min(560px, calc(100% - var(--gutter) * 2));
  }
}

@media (max-width: 650px) {
  .company-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .company-route { padding-top: 13px; border-top: 1px solid #ffffff26; }
}

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

@media (prefers-reduced-motion: reduce) {
  .hm-marker.is-animated .hm-marker-logo { animation: none; }
}
