/*
 * Migrago Service Shell — 11.0.0-alpha.24.4
 * Clean-room hero + service dock + search surface.
 * It intentionally uses a new namespace so historical .mg7-* overrides cannot
 * distort the main conversion interface.
 */

body.mg-theme .mg12-hero,
body.mg-theme .mg12-search-wrap,
body.mg-theme .mg12-hero *,
body.mg-theme .mg12-search-wrap * {
  box-sizing: border-box;
}

body.mg-theme .mg12-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background-image: var(--mg12-hero-image);
  background-position: center;
  background-size: cover;
}

body.mg-theme .mg12-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center 45%, rgba(2, 7, 15, .40) 0%, rgba(2, 7, 15, .16) 44%, rgba(2, 7, 15, 0) 72%),
    linear-gradient(180deg, rgba(5, 11, 20, .16) 0%, rgba(5, 11, 20, 0) 54%, rgba(5, 11, 20, .22) 100%);
}

body.mg-theme .mg12-hero__inner,
body.mg-theme .mg12-search-wrap > .mg-container {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

body.mg-theme .mg12-hero__inner {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 112px 78px;
  text-align: center;
}

body.mg-theme .mg12-hero__copy {
  width: min(100%, 980px);
  text-shadow: 0 4px 24px rgba(0, 0, 0, .34);
}

body.mg-theme .mg12-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 147, 74, .62);
  border-radius: 999px;
  background: rgba(35, 27, 28, .62);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.mg-theme .mg12-hero__eyebrow .mg-icon {
  width: 16px;
  height: 16px;
  color: #f59a52;
}

body.mg-theme .mg12-hero h1 {
  max-width: 980px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(46px, 5vw, 78px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body.mg-theme .mg12-hero p {
  max-width: 900px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.55;
  font-weight: 700;
  text-wrap: balance;
}

/* Service dock: one geometry on homepage and service pages. */
body.mg-theme .mg12-service-carousel {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin: 28px auto 0;
}

body.mg-theme .mg12-service-dock {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  background: rgba(8, 18, 31, .72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .23), inset 0 1px 0 rgba(255, 255, 255, .05);
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.mg-theme .mg12-service-dock::-webkit-scrollbar { display: none; }

body.mg-theme .mg12-service-tab,
body.mg-theme a.mg12-service-tab,
body.mg-theme button.mg12-service-tab {
  position: relative;
  flex: 0 0 112px;
  min-width: 112px;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .94);
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.mg-theme .mg12-service-tab:hover,
body.mg-theme .mg12-service-tab:focus-visible {
  border-color: rgba(246, 161, 93, .58);
  background: rgba(246, 161, 93, .11);
  transform: translateY(-1px);
  outline: none;
}

body.mg-theme .mg12-service-tab.is-active {
  border-color: rgba(255, 183, 126, .92);
  background: linear-gradient(145deg, #fff8f2, #ffe4cf);
  color: #3b1b09;
  box-shadow: 0 10px 24px rgba(75, 31, 7, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
}

body.mg-theme .mg12-service-tab.is-upcoming {
  opacity: .55;
  cursor: not-allowed;
}

body.mg-theme .mg12-service-tab__icon,
body.mg-theme .mg12-service-tab__icon .mg-icon {
  width: 21px;
  height: 21px;
}

body.mg-theme .mg12-service-tab__icon { color: #f6a15d; }
body.mg-theme .mg12-service-tab.is-active .mg12-service-tab__icon { color: #d76624; }

body.mg-theme .mg12-service-badge {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 5px;
  max-width: 58px;
  padding: 2px 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: currentColor;
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mg-theme .mg12-service-nav {
  width: 40px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(8, 18, 31, .74);
  color: #ffad6c;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}

body.mg-theme .mg12-service-nav:hover,
body.mg-theme .mg12-service-nav:focus-visible {
  border-color: rgba(255, 173, 108, .55);
  background: rgba(18, 31, 48, .92);
  outline: none;
}

body.mg-theme .mg12-service-nav[disabled] { opacity: .35; cursor: default; }
body.mg-theme .mg12-service-nav .mg-icon { width: 18px; height: 18px; }
body.mg-theme .mg12-service-nav--next .mg-icon { transform: rotate(180deg); }
[dir="rtl"] body.mg-theme .mg12-service-nav--previous .mg-icon { transform: rotate(180deg); }
[dir="rtl"] body.mg-theme .mg12-service-nav--next .mg-icon { transform: none; }

/* Curved transition to the patterned site background. */
body.mg-theme .mg12-hero__curve {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 56px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

body.mg-theme .mg12-hero__curve::before {
  content: "";
  position: absolute;
  inset-inline: -4%;
  inset-block-end: 0;
  height: 100%;
  background-color: var(--mg-page-bg, #fbfaf8);
  background-image:
    linear-gradient(var(--mg-page-tint, rgba(255,255,255,.12)), var(--mg-page-tint, rgba(255,255,255,.12))),
    url("../images/patterns/migrago-site-background.webp");
  background-size: auto, 1120px 618px;
  background-repeat: repeat, repeat;
  background-position: center top, center top;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

html[data-theme="dark"] body.mg-theme .mg12-hero__curve::before {
  background-color: #111b29;
  background-image:
    linear-gradient(rgba(13, 21, 32, .84), rgba(13, 21, 32, .84)),
    url("../images/patterns/migrago-site-background.webp");
}

/* Search: no duplicate service title, description, badges, or decorative copy. */
body.mg-theme .mg12-search-wrap {
  position: relative;
  z-index: 8;
  margin-top: -70px;
  margin-bottom: 8px;
}

body.mg-theme .mg12-search-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(17, 38, 59, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 22px 54px rgba(11, 30, 50, .13), 0 4px 12px rgba(11, 30, 50, .06);
}

body.mg-theme .mg12-search-card::before {
  content: "";
  position: absolute;
  inset-inline: 28px;
  inset-block-start: 0;
  height: 3px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, #ef7c33, #f2a161);
}

body.mg-theme .mg12-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: start;
  gap: 10px;
}

body.mg-theme .mg12-search-panels,
body.mg-theme .mg12-search-panel,
body.mg-theme .mg12-search-plugin-content { min-width: 0; }

body.mg-theme .mg12-search-panel[hidden] { display: none !important; }

body.mg-theme .mg12-search-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--mg12-search-units, 4), minmax(0, 1fr));
  gap: 8px;
}

body.mg-theme .mg12-search-field {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid #e0e5eb;
  border-radius: 14px;
  background: #fbfcfd;
  color: #10263a;
  cursor: text;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

body.mg-theme .mg12-search-field:hover { background: #fff; border-color: #cfd7e0; }
body.mg-theme .mg12-search-field:focus-within {
  border-color: rgba(219, 105, 42, .72);
  box-shadow: 0 0 0 3px rgba(224, 111, 43, .09);
}

body.mg-theme .mg12-search-field--wide { grid-column: span 2; }

body.mg-theme .mg12-search-field__icon,
body.mg-theme .mg12-search-field__icon .mg-icon {
  width: 19px;
  height: 19px;
}
body.mg-theme .mg12-search-field__icon { color: #8390a0; }

body.mg-theme .mg12-search-field__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.mg-theme .mg12-search-field small {
  color: #7d8999;
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
}

body.mg-theme .mg12-search-field input,
body.mg-theme .mg12-search-field select {
  width: 100%;
  min-width: 0;
  height: 27px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #10263a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 27px;
  box-shadow: none;
}

body.mg-theme .mg12-search-field input::placeholder { color: #8f99a7; opacity: 1; }

body.mg-theme .mg12-search-pair {
  min-width: 0;
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

body.mg-theme .mg12-search-swap {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #f0c9ae;
  border-radius: 999px;
  background: #fff8f3;
  color: #d76725;
  box-shadow: 0 6px 14px rgba(129, 67, 28, .09);
  cursor: pointer;
}

body.mg-theme .mg12-search-swap:hover,
body.mg-theme .mg12-search-swap:focus-visible {
  border-color: #e8a67b;
  background: #fff3e9;
  outline: none;
}
body.mg-theme .mg12-search-swap .mg-icon { width: 17px; height: 17px; }

body.mg-theme .mg12-search-submit {
  width: 100%;
  min-width: 0;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: start;
  padding: 12px 13px;
  border: 1px solid #dd6b28;
  border-radius: 15px;
  background: linear-gradient(135deg, #ed7b36, #d96525) !important;
  color: #fff !important;
  font: inherit;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 11px 24px rgba(193, 82, 20, .21) !important;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
body.mg-theme .mg12-search-submit:hover,
body.mg-theme .mg12-search-submit:focus-visible {
  filter: saturate(1.05) brightness(1.02);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 14px 28px rgba(193, 82, 20, .24) !important;
}
body.mg-theme .mg12-search-submit__icon,
body.mg-theme .mg12-search-submit__icon .mg-icon { width: 18px; height: 18px; }

@media (max-width: 1120px) {
  body.mg-theme .mg12-search-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.mg-theme .mg12-service-tab,
  body.mg-theme a.mg12-service-tab,
  body.mg-theme button.mg12-service-tab { flex-basis: 104px; min-width: 104px; }
}

@media (max-width: 900px) {
  body.mg-theme .mg12-search-form { grid-template-columns: 1fr; }
  body.mg-theme .mg12-search-submit { height: 56px; }
}

@media (max-width: 820px) {
  body.mg-theme .mg12-hero { min-height: 520px; }
  body.mg-theme .mg12-hero__inner {
    min-height: 520px;
    width: min(100% - 20px, 1240px);
    padding-block: 100px 62px;
  }
  body.mg-theme .mg12-search-wrap > .mg-container { width: min(100% - 20px, 1240px); }
  body.mg-theme .mg12-hero h1 { font-size: clamp(36px, 8vw, 58px); }
  body.mg-theme .mg12-hero p { font-size: clamp(16px, 3.4vw, 21px); }
  body.mg-theme .mg12-service-carousel { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 5px; margin-top: 22px; }
  body.mg-theme .mg12-service-dock { padding: 7px; border-radius: 18px; }
  body.mg-theme .mg12-service-tab,
  body.mg-theme a.mg12-service-tab,
  body.mg-theme button.mg12-service-tab { flex: 0 0 92px; min-width: 92px; min-height: 56px; font-size: 11px; }
  body.mg-theme .mg12-service-nav { width: 32px; height: 52px; border-radius: 12px; }
  body.mg-theme .mg12-hero__curve { height: 36px; }
  body.mg-theme .mg12-search-wrap { margin-top: -22px; }
  body.mg-theme .mg12-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body.mg-theme .mg12-hero { min-height: 500px; }
  body.mg-theme .mg12-hero__inner { min-height: 500px; padding-block: 92px 52px; }
  body.mg-theme .mg12-hero__eyebrow { font-size: 11px; padding: 7px 12px; }
  body.mg-theme .mg12-hero h1 { font-size: clamp(34px, 11vw, 50px); }
  body.mg-theme .mg12-hero p { margin-top: 12px; font-size: 16px; }
  body.mg-theme .mg12-service-carousel { grid-template-columns: 30px minmax(0, 1fr) 30px; }
  body.mg-theme .mg12-service-dock { gap: 5px; padding: 6px; }
  body.mg-theme .mg12-service-tab,
  body.mg-theme a.mg12-service-tab,
  body.mg-theme button.mg12-service-tab { flex-basis: 82px; min-width: 82px; min-height: 52px; padding: 7px 6px; }
  body.mg-theme .mg12-search-card { padding: 10px; border-radius: 18px; }
  body.mg-theme .mg12-search-fields { grid-template-columns: 1fr; }
  body.mg-theme .mg12-search-field,
  body.mg-theme .mg12-search-field--wide { grid-column: auto; min-height: 61px; }
  body.mg-theme .mg12-search-pair {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  body.mg-theme .mg12-search-swap {
    width: 100%;
    height: 32px;
    border-radius: 10px;
  }
  body.mg-theme .mg12-search-submit { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  body.mg-theme .mg12-service-dock { scroll-behavior: auto; }
  body.mg-theme .mg12-service-tab,
  body.mg-theme .mg12-service-nav,
  body.mg-theme .mg12-search-field,
  body.mg-theme .mg12-search-submit { transition: none; }
}

/* Signed-in request handoff */
.mg7-request-summary-actions{align-items:center;display:flex;flex-wrap:wrap;gap:9px}.mg7-request-save-form{margin:0}.mg7-request-save-form .mg7-request-summary-cta{border:0;cursor:pointer}.mg7-request-summary-cta--ghost{background:#fff;border:1px solid #e7ddd4;color:#213044;box-shadow:none}.mg7-request-summary-cta--ghost:hover{border-color:#d8b397;color:#a95320}
@media(max-width:680px){.mg7-request-summary-actions,.mg7-request-save-form{width:100%}.mg7-request-summary-actions .mg7-request-summary-cta{justify-content:center;width:100%}}
/* Signed-in account popover */
.mg7-account-popover-wrap{position:relative}.mg7-account-popover-wrap .mg7-header-account{appearance:none;font-family:inherit}.mg7-account-popover-wrap .mg7-header-account>.mg-icon:last-child{height:13px;opacity:.7;width:13px}.mg7-account-menu{background:#0b1524;border:1px solid rgba(255,255,255,.11);border-radius:18px;box-shadow:0 22px 55px rgba(3,9,17,.34);color:#fff;inset-inline-end:0;padding:10px;position:absolute;top:calc(100% + 12px);width:280px;z-index:10020}.mg7-account-menu[hidden]{display:none}.mg7-account-menu__head{align-items:center;border-bottom:1px solid rgba(255,255,255,.08);display:flex;gap:10px;padding:8px 8px 12px}.mg7-account-menu__head>span{align-items:center;background:linear-gradient(135deg,#fff0e5,#efc4a5);border-radius:11px;color:#8f4317;display:flex;font-size:13px;font-weight:900;height:38px;justify-content:center;width:38px}.mg7-account-menu__head>div{display:flex;flex:1;flex-direction:column;min-width:0}.mg7-account-menu__head strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mg7-account-menu__head small{color:#94a4b7;font-size:9px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mg7-account-menu nav{display:grid;gap:3px;padding:7px 0}.mg7-account-menu nav a,.mg7-account-menu__logout{align-items:center;border-radius:11px;color:#c6d0dc;display:flex;font-size:11px;font-weight:750;gap:9px;min-height:39px;padding:0 10px;text-decoration:none}.mg7-account-menu nav a:hover{background:rgba(255,255,255,.065);color:#fff}.mg7-account-menu .mg-icon{color:#e68a4e;height:16px;width:16px}.mg7-account-menu__logout{border-top:1px solid rgba(255,255,255,.08);border-radius:0;color:#e9b8b8;margin-top:2px;padding-top:8px}.mg7-account-menu__logout:hover{color:#fff}.mg7-account-menu__logout .mg-icon{color:#dc7777}

/* alpha.24.4 — dedicated service search and inline results */
body.mg-theme .mg7-inline-results{padding-block:26px 14px}body.mg-theme .mg7-inline-results__content{min-width:0}body.mg-theme .mg7-search-feedback{margin:0}.mg7-search-feedback--warning{border-color:rgba(205,137,41,.25)}
body.mg-theme .mg7-service-content--primary{padding-block-start:22px}
@media(max-width:560px){body.mg-theme .mg7-inline-results{padding-block-start:18px}}
