/* FerryEU Danish booking flow — DK QA9. */
.eu-pseudo-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
}

.eu-pseudo-link:focus-visible {
  outline: 3px solid #4b47a3;
  outline-offset: 5px;
}

.eu-pseudo-link:hover {
  box-shadow: 0 0 0 2px #4b47a3;
}

.eu-pseudo-link > span {
  min-width: 0;
}

.eu-general-booking {
  padding: 24px 0;
  background: #f3f7fa;
}

.eu-general-card {
  padding: 20px;
  border: 1px solid #cbd9e2;
  border-radius: 12px;
  background: #fff;
}

.eu-general-card h2 {
  margin: 0 0 16px;
  color: #062b4f;
  font-size: 1.5rem;
}

.eu-general-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(140px, .85fr);
  gap: 10px;
}

.eu-form-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  color: #173a59;
  border: 1px solid #cbd9e2;
  border-radius: 8px;
}

.eu-form-field small {
  margin-bottom: 4px;
  font-size: .875rem;
}

.eu-form-field strong {
  font-size: 1rem;
}

.eu-form-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  background: #4b47a3;
  font-weight: 700;
}

/* Identical compact desktop/mobile layout on all direct booking pages. */
.eu-live-booking .ferries-hero-with-engine {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
  background: #062b4f;
}

.eu-live-booking .ferries-hero-with-engine .hero-image {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.eu-live-booking .ferries-hero-with-engine .hero-overlay {
  background: rgba(6, 43, 79, .38) !important;
}

.eu-live-booking .ferries-hero-grid {
  display: grid;
  grid-template-columns: minmax(480px, 560px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: 36px !important;
  padding-bottom: 40px !important;
  transform: none !important;
}

.eu-live-booking .hero-ferry-engine {
  width: 100% !important;
  max-width: 560px;
  padding: 16px 14px 14px;
  background: #fff;
}

.eu-live-booking .hero-direct-ferries-shell {
  width: 100%;
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.eu-live-booking .hero-direct-ferries-shell iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 285px !important;
  margin: 0;
  border: 0;
  background: #fff;
}

.eu-live-booking .hero-direct-ferries-shell iframe.direct-ferries-mobile {
  display: none !important;
  height: 450px !important;
}

.eu-live-booking .ferries-hero-copy {
  width: 100%;
  max-width: 760px;
  padding: 24px;
  border-radius: 14px;
  background: #062b4f;
  box-sizing: border-box;
}

.eu-live-booking .ferries-hero-copy h1,
.eu-live-booking .ferries-hero-copy p,
.eu-live-booking .ferries-hero-copy .section-kicker,
.eu-live-booking .ferries-hero-copy a {
  color: #fff !important;
  text-shadow: none !important;
}

.eu-live-booking .ferries-hero-copy h1 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.eu-live-booking .ferries-hero-copy p {
  font-size: 1rem;
  line-height: 1.6;
}

.eu-live-booking .ferries-hero-copy a:not(.button) {
  text-decoration: underline;
}

.eu-live-booking .hero-partner-disclosure {
  border-color: #91a8bc;
}

.eu-live-booking .ferries-shortcuts {
  position: relative;
  margin-top: 0 !important;
}

.eu-live-booking .ferry-engine-fallback {
  font-size: .875rem;
  line-height: 1.5;
}

.eu-live-booking #ferry-search {
  scroll-margin-top: 100px;
}

.eu-breadcrumbs {
  display: block;
  margin-bottom: 24px;
  line-height: 1.8;
}

.eu-booking-information h2 {
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .eu-live-booking .ferries-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .eu-live-booking .hero-ferry-engine {
    max-width: 780px;
    margin: 0 auto;
  }

  .eu-live-booking .ferries-hero-copy {
    max-width: 780px;
    margin: 0 auto;
    grid-row: 1;
  }

  .eu-general-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eu-form-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .eu-live-booking .hero-direct-ferries-shell iframe.direct-ferries-desktop {
    display: none !important;
  }

  .eu-live-booking .hero-direct-ferries-shell iframe.direct-ferries-mobile {
    display: block !important;
  }

  .eu-live-booking .hero-ferry-engine {
    padding: 12px 8px;
  }

  .eu-live-booking .ferries-hero-grid {
    padding-top: 20px !important;
    padding-bottom: 24px !important;
  }

  .eu-live-booking .ferries-hero-copy {
    padding: 18px;
  }

  .eu-general-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A single full-panel link includes all fields, headings and blank space. */
.eu-booking-panel {
  display: block;
  color: inherit;
  text-decoration: none;
}
.eu-booking-panel:hover,
.eu-booking-panel:visited {
  color: inherit;
  text-decoration: none;
}

/* The entire search card is a native, keyboard-accessible link. */
.eu-booking-panel { box-sizing: border-box; width: 100%; }
.eu-booking-panel .eu-pseudo-intro {
  color: #173a59;
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.5;
}
.eu-booking-panel h2 { line-height: 1.25; }
.eu-booking-panel .eu-form-field { min-width: 0; }
.eu-booking-panel .eu-form-button { text-align: center; }
.eu-operator-route-guides { line-height: 1.8; }

/* Keep the next content block close to each pseudo form, including mobile. */
body .eu-pseudo-section {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}
body .eu-pseudo-section > .container-wide {
  padding-bottom: 0 !important;
}
body .eu-pseudo-section .eu-booking-panel {
  margin-bottom: 0 !important;
}
body .eu-after-pseudo {
  margin-top: 0 !important;
  padding-top: 24px !important;
}
@media (max-width: 700px) {
  body .eu-after-pseudo {
    padding-top: 18px !important;
  }
}
