/*
 * Modern Cloud Cargo - custom styles.
 * Consolidated from previously inline <style> blocks so the site can run
 * under a strict Content-Security-Policy (no 'unsafe-inline' for styles).
 */

/* Base font tokens — Space Grotesk headings + Inter body */
html {
  --main-font: 'Inter', Helvetica, Arial, sans-serif;
  --heading-font: 'Space Grotesk', 'Inter', Helvetica, Arial, sans-serif;
}

/* Apply heading font to all heading elements and heading utility classes */
h1, h2, h3, h4, h5, h6,
.font-h1, .font-h2, .font-h3, .font-h4, .font-h5,
.hero-stage__title,
.regular-stage__title,
.module__title,
.featured-teaser__title,
.teaser-list-c__teaser-title,
.teaser-list-d__teaser-title,
.sequence__item-header,
.sequence__item-title,
.banner__title,
.font-display {
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
}

/* Apply body font to everything else */
body, p, a, li, span, label, input, select, textarea, button, td, th {
  font-family: var(--main-font);
}

/* Smooth scrolling: render images immediately, disable the lazy-load placeholder blink */
.lazy-placeholder-loader{background:none!important}
.lazy-placeholder-loader__content{opacity:1!important;transition:none!important}
.lazy-placeholder-loader--loading:before,.loader--active:before{display:none!important;content:none!important;animation:none!important}
html{scroll-behavior:smooth}
/* The theme's JS chunks were not mirrored, so its custom elements never
   "upgrade" and default to display:inline, which collapses the images inside.
   Force block layout so the native <picture>/<img> render normally. */
lazy-loaded-image,teaser-component,slider-component,listing-component,accordion-component{display:block}
.hero-stage__area-pic lazy-loaded-image{position:absolute;inset:0;height:100%;width:100%}
web-chat,web-chat-maintenance-holder{display:none}

/* Softened, rounded edges across the site */
:root{--mcc-radius:16px;--mcc-radius-sm:8px}
.btn,a.btn,button.btn,.reset-button.btn,.search-form__button{border-radius:var(--mcc-radius-sm)}
input,select,textarea,.inputfield,.control__input,.mcc-quote__select,.mcc-quote__input{border-radius:var(--mcc-radius-sm)}
.teaser-list-d__teaser,.featured-teaser,.teaser,.module,.paper,.tracking-form,.connect-widget__wrapper,.main-navigation__teaser,.hero-stage,.feature-stage,.card,.info-box,.quote-teaser,.text-image,.dsv-form__inner{border-radius:var(--mcc-radius)}
.cover-image,.hero-stage__picture,.featured-teaser__image,.teaser-list-d__teaser-media,.teaser-list-d__teaser-image,.main-navigation__teaser-picture-area,.lazy-placeholder-loader,[class*="ratio-"]{border-radius:var(--mcc-radius);overflow:hidden}

/* Keep the 4 featured-teaser card images the same size (only these cards). */
.featured-teaser__image{aspect-ratio:4/3;width:100%;display:block}
.featured-teaser__image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.dialog__window,.dialog{border-radius:var(--mcc-radius)}
/* keep the logo and small inline icons square */
.header-content__logo-img,.icon,svg.icon{border-radius:0}

/* Logo sizing (was inline style attributes) */
.header-content__logo-img{height:66px;width:auto;display:block}
.mcc-footer-logo{height:96px;width:auto;display:block;background:#fff;padding:12px 16px;border-radius:12px}

/* ── Mobile hamburger fix ──────────────────────────────────────────────────
   The header sits as position:sticky with z-index:65. On mobile the logo
   anchor can stretch across the full row and swallow clicks meant for the
   hamburger button. Ensure the user-menu strip and the burger button itself
   are always on top and fully clickable.
   ───────────────────────────────────────────────────────────────────────── */
.header-user-menu {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
.header-mobile-menu,
.js-header-mobile-menu {
  position: relative;
  z-index: 11;
  pointer-events: auto;
  cursor: pointer;
  /* Generous tap target — minimum 44×44 px */
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Hide hamburger on desktop — show only on mobile/tablet */
@media (min-width: 992px) {
  .header-mobile-menu,
  .js-header-mobile-menu {
    display: none !important;
  }
}
/* Prevent the logo link from stretching over the burger on small screens */
.header-content__logo {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}
/* Make sure nothing in the header overlaps the user-menu area */
.header-content {
  position: relative;
  z-index: 66;
}

/* Desktop mega-menu: retain the HTTrack structure and original theme states. */
.header-content-menu > li{position:static}
.main-navigation{display:none!important}
.main-navigation__level-wrapper{display:none}
body.mcc-mobile-menu-open{overflow:hidden}
@media only screen and (min-width:992px){
  .header-content-menu { display: flex !important; gap: 32px; align-items: center; }
  .header-content-menu > li.mcc-menu-open > .main-navigation,
  .header-content-menu > li:hover > .main-navigation{display:block!important}
  .header-content-menu > li.mcc-menu-open > .main-navigation .main-navigation__all-levels-wrapper,
  .header-content-menu > li:hover > .main-navigation .main-navigation__all-levels-wrapper{opacity:1;pointer-events:auto}
  .main-navigation__all-levels-wrapper:before{bottom:100%;content:"";height:24px;inset-inline:0;pointer-events:auto;position:absolute}
  .header-content-menu > li.mcc-menu-open > .main-navigation .main-navigation__level-wrapper,
  .header-content-menu > li:hover > .main-navigation .main-navigation__level-wrapper{display:block}
  .header-content-menu__button:after{background:#0a34a1;bottom:-9px;content:"";height:3px;left:0;position:absolute;right:0;transform:scaleX(0);transform-origin:left;transition:transform .15s ease}
  .header-content-menu > li.mcc-menu-open > .header-content-menu__button,
  .header-content-menu > li:hover > .header-content-menu__button{color:#0a34a1}
  .header-content-menu > li.mcc-menu-open > .header-content-menu__button:after,
  .header-content-menu > li:hover > .header-content-menu__button:after{transform:scaleX(1)}
}

/* Home / MyDSV instant-quote widget (was inline <style> on those pages) */
.connect-widget__wrapper:has(.mcc-quote){background:#fff}
.mcc-quote{background:#fff;padding:26px 30px;height:100%;box-sizing:border-box}
.mcc-quote__title{margin:0 0 18px}
.mcc-quote__modes{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}
.mcc-quote__mode input{position:absolute;opacity:0;width:0;height:0}
.mcc-quote__mode span{display:inline-flex;align-items:center;gap:8px;border:1px solid #c3c9d4;border-radius:6px;padding:9px 14px;font-size:14px;font-weight:600;cursor:pointer;background:#fff;color:#002664}
.mcc-quote__mode input:checked+span{background:#002664;color:#fff;border-color:#002664}
.mcc-quote__mode input:focus-visible+span{box-shadow:0 0 0 3px rgba(0,38,100,.25)}
.mcc-quote__grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.mcc-quote__label{display:block;font-weight:700;margin-bottom:10px;color:#002664}
.mcc-quote__select,.mcc-quote__input{width:100%;box-sizing:border-box;border:1px solid #c3c9d4;border-radius:6px;padding:12px;font:inherit;background:#fff;margin-bottom:14px;color:#1a202c}
.mcc-quote__select:focus,.mcc-quote__input:focus{outline:none;border-color:#002664;box-shadow:0 0 0 3px rgba(0,38,100,.12)}

/* ── Custom styled dropdown (replaces native OS select styling) ───────────── */
.mcc-select { position: relative; margin-bottom: 14px; user-select: none; -webkit-user-select: none; }
.mcc-select__input { user-select: text; -webkit-user-select: text; }
/* Hide the real native select but keep it for form submission.
   Collapse it to 1px and make it non-selectable so its option text
   can never be dragged/copied into the page selection. */
.mcc-select select {
  position: absolute;
  width: 1px;
  height: 1px;
  top: 0; left: 0;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.mcc-select__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c3c9d4;
  border-radius: 6px;
  padding: 12px;
  padding-right: 38px;
  font: inherit;
  background: #fff;
  color: #1a202c;
  cursor: text;
}
.mcc-select__input::placeholder { color: #6b7280; }
.mcc-select__input:hover { border-color: #002664; }
.mcc-select.is-open .mcc-select__input,
.mcc-select__input:focus {
  outline: none;
  border-color: #002664;
  box-shadow: 0 0 0 3px rgba(0,38,100,.12);
}
.mcc-select__chevron {
  position: absolute;
  right: 12px;
  top: 16px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: transform .15s ease;
  color: #002664;
  cursor: pointer;
  pointer-events: auto;
}
.mcc-select.is-open .mcc-select__chevron { transform: rotate(180deg); }
.mcc-select__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid #c3c9d4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
  padding: 4px 0;
}
.mcc-select.is-open .mcc-select__panel { display: block; }
.mcc-select__option {
  padding: 10px 14px;
  cursor: pointer;
  color: #1a202c;
  font-size: .9375rem;
  line-height: 1.3;
}
.mcc-select__option:hover,
.mcc-select__option.is-active { background: #eef2fb; color: #002664; }
.mcc-select__option.is-selected { font-weight: 600; color: #002664; }

.mcc-select__no-result {
  padding: 12px 14px;
  color: #6b7280;
  font-size: .9375rem;
}

/* City / postal autocomplete (Photon) */
.mcc-ac { position: relative; }
.mcc-ac__panel {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid #c3c9d4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
  padding: 4px 0;
}
.mcc-ac.is-open .mcc-ac__panel { display: block; }
.mcc-ac__option {
  padding: 10px 14px;
  cursor: pointer;
  color: #1a202c;
  font-size: .9375rem;
  line-height: 1.3;
}
.mcc-ac__option:hover { background: #eef2fb; color: #002664; }
.mcc-ac__option strong { font-weight: 700; }

/* Postal / city not-found error (matches DSV red styling) */
.mcc-quote__input.is-invalid {
  border-color: #d93025;
  color: #d93025;
}
.mcc-quote__input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(217,48,37,.15);
  border-color: #d93025;
}
.mcc-ac__msg {
  margin: -8px 0 12px;
  font-size: .8125rem;
  min-height: 1em;
}
.mcc-ac__msg.is-invalid { color: #d93025; }
/* Turn the field label red when the value is invalid (like DSV) */
.mcc-quote__col:has(.mcc-quote__input.is-invalid) .mcc-quote__label {
  color: #d93025;
}
.mcc-quote__footer{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap;margin-top:6px}
.mcc-quote__note{color:#4a5568;font-size:14px}
.mcc-quote__submit{min-width:96px}
@media(max-width:640px){.mcc-quote__grid{grid-template-columns:1fr}}

/* CTA panel — replaces the login/register block, matches booking-tool style */
.paper {
  background: #fff;
}
.mcc-cta-panel {
  padding: 26px 30px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.mcc-cta-panel .font-h4 {
  margin: 0 0 10px;
}
.mcc-cta-panel .font-body-2 {
  margin: 0 0 20px;
  color: #2f3135;
}
.mcc-cta-panel .booking-tool-register__list {
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
/* Tick icons use the CTA link blue (same as "Explore eVisibility") */
.mcc-cta-panel .booking-tool-register__list-icon {
  color: #0a34a1;
}
.mcc-cta-panel__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.mcc-cta-panel__actions .btn {
  flex: 1;
  text-align: center;
}
@media (max-width: 480px) {
  .mcc-cta-panel__actions {
    flex-direction: column;
  }
  .mcc-cta-panel__actions .btn {
    width: 100%;
  }
}
.dsv-form { --dsv-navy: #002664; text-align: center; }
.dsv-form__inner { max-width: 760px; margin: 0 auto; }
.dsv-form__title { margin-bottom: .25rem; }
.dsv-form__intro { margin: 0 0 1.5rem; opacity: .8; }
.dsv-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; text-align: left; }
.dsv-form__field { display: flex; flex-direction: column; }
.dsv-form__field--full { grid-column: 1 / -1; }
.dsv-form__field label { font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.dsv-form__field input,
.dsv-form__field textarea { border: 1px solid #c3c9d4; border-radius: 6px; padding: .7rem .85rem; font: inherit; background: #fff; width: 100%; box-sizing: border-box; }
.dsv-form__field input:focus,
.dsv-form__field textarea:focus { outline: none; border-color: var(--dsv-navy); box-shadow: 0 0 0 3px rgba(0, 38, 100, .12); }
.dsv-form__submit { margin-top: 1.5rem; }
.dsv-form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.dsv-form__alert { border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; text-align: left; }
.dsv-form__alert--success { background: #e6f4ea; border: 1px solid #34a853; color: #1e6b34; }
.dsv-form__alert--error { background: #fdecea; border: 1px solid #d93025; color: #a50e0e; }
.dsv-form__alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
@media (max-width: 640px) { .dsv-form__grid { grid-template-columns: 1fr; } }

/* ── Quote form validation error states ──────────────────────────────────── */
.mcc-field--error .mcc-select__input,
.mcc-field--error.mcc-ac .mcc-quote__input,
.mcc-field--error.mcc-quote__col .mcc-quote__input {
  border-color: #d93025;
  box-shadow: 0 0 0 2px rgba(217,48,37,.15);
}
.mcc-field--error.mcc-select { animation: mcc-shake .25s ease; }
@keyframes mcc-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* ── Insights article listing grid ───────────────────────────────────────── */
.mcc-article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px 28px;margin-top:8px}
@media (max-width:991px){.mcc-article-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.mcc-article-grid{grid-template-columns:1fr}}
.mcc-article-card{display:flex;flex-direction:column}
.mcc-article-card .featured-teaser__image{margin-bottom:14px}
.mcc-article-card__meta{color:#6b7280;font-size:13px;letter-spacing:.02em;text-transform:uppercase;margin:0 0 6px}
.mcc-article-card__title{font-size:1.15rem;line-height:1.3;margin:0 0 8px}
.mcc-article-card__title a{color:#002664;text-decoration:none}
.mcc-article-card__title a:hover{text-decoration:underline}
.mcc-article-card__excerpt{color:#2f3135;font-size:.95rem;line-height:1.5;margin:0 0 12px;flex:1}
.mcc-article-card__link{display:inline-flex;align-items:center;gap:8px;color:#002664;font-weight:600;text-decoration:none;margin-top:auto}
.mcc-article-card__link:hover{text-decoration:underline}
.mcc-article-card__link svg{width:14px;height:14px}

/* ── Help & contact form (DSV-style survey form) ─────────────────────────── */
.mcc-contact-form { max-width: 1000px; padding-right: 34px; }
.mcc-contact-form__title { font-size: 24px; padding: 20px 0; margin: 0; }
.mcc-contact-form .full_width_space { margin-bottom: 20px; }
.mcc-contact-form .full_width_space h3,
.mcc-contact-form .q.full_width h3 { font-size: 20px; font-weight: 400; margin: 22px 0 6px; }
.mcc-contact-form .full_width_space p { margin: 0 0 10px; }
.mcc-contact-form .full_width_space a,
.mcc-contact-form .q.full_width a { color: #002664; }

.mcc-contact-form .q { position: relative; margin-bottom: 14px; }
.mcc-contact-form .q.display_hidden { display: none; }
.mcc-contact-form .q.full_width { margin-bottom: 4px; }

/* Label rendered as a placeholder inside the field. */
.mcc-contact-form .q .question.top_question {
  position: absolute; top: 14px; left: 15px; z-index: 1;
  color: #6b7280; font-size: 16px; font-weight: 400; pointer-events: none;
  transition: opacity .1s ease;
}
.mcc-contact-form .q.is-filled .question.top_question { opacity: 0; }
.mcc-contact-form .q.full_width .question.top_question { position: static; }
.mcc-contact-form .icon_required { display: none; }

/* Required star, shown to the right of the field (like the reference). */
.mcc-contact-form .q.required::after {
  content: "\2605"; position: absolute; right: -22px; top: 15px;
  color: #c3c9d4; font-size: 15px; line-height: 1;
}
.mcc-contact-form .q.full_width.required::after { content: none; }

.mcc-contact-form .text_field,
.mcc-contact-form .drop_down {
  width: 100%; box-sizing: border-box;
  padding: 13px 15px; border: 1px solid #c3c9d4; border-radius: 2px;
  font: inherit; font-size: 16px; color: #131821; background: #fff;
}
.mcc-contact-form textarea.text_field { min-height: 160px; resize: vertical; line-height: 1.5; }
.mcc-contact-form .text_field:focus,
.mcc-contact-form .drop_down:focus { outline: none; border-color: #002664; box-shadow: 0 0 0 2px rgba(0,38,100,.12); }
.mcc-contact-form .drop_down:disabled { background: #f4f6f8; color: #9aa1ac; }

.mcc-contact-form__submit { margin-top: 18px; min-width: 140px; }

/* Honeypot */
.mcc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 649px) {
  .mcc-contact-form { padding-right: 22px; }
  .mcc-contact-form .q.required::after { right: -18px; }
}
