/* =====================================================================
   Beyond Journey - group flight request panel (js/bj-group-request.js)
   ---------------------------------------------------------------------
   MakeMyTrip's "Send us your query" (the designer's reference,
   2026-12-01) in the site's own colours: a navy panel from the left over
   a dimmed page, white boxes, the orange button. Poppins 400/500 only.
   Prefix: bjgr-.
   ===================================================================== */
.bjgr { position: fixed; inset: 0; z-index: 3000; visibility: hidden; pointer-events: none; }
.bjgr.is-open { visibility: visible; pointer-events: auto; }
.bjgr__dim { position: absolute; inset: 0; background: rgba(15, 22, 40, .5); opacity: 0; transition: opacity .25s ease; }
.bjgr.is-open .bjgr__dim { opacity: 1; }
.bjgr__panel {
  position: absolute; top: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column;
  width: min(380px, 100vw);
  background: #17233e; color: #fff;
  box-shadow: 12px 0 40px -12px rgba(0, 0, 0, .45);
  transform: translateX(-100%); transition: transform .3s ease;
}
.bjgr.is-open .bjgr__panel { transform: none; }
body.bjgr-lock { overflow: hidden; }

.bjgr__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 10px; }
.bjgr__title { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.3; color: #fff; }
/* the site capitalises every word of a heading; these read as sentences */
.bjgr :is(h2, h3) { text-transform: none; letter-spacing: 0; }
.bjgr__x {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; cursor: pointer;
}
.bjgr__x:hover { background: rgba(255, 255, 255, .2); }
.bjgr__x:focus-visible { outline: 2px solid #f5761a; outline-offset: 2px; }

.bjgr__body { flex: 1; overflow-y: auto; padding: 4px 24px 28px; }
.bjgr__lead { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.bjgr__trip {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 13px; line-height: 1.45;
}
.bjgr__trip i, .bjgr__trip svg { flex: none; color: #f5a25d; font-size: 12px; width: 12px; }

/* the flights chosen on the results page */
.bjgr__flights { margin: -4px 0 16px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(255, 255, 255, .06); }
.bjgr__fh { margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.bjgr__fl { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.bjgr__fl:first-of-type { padding-top: 0; border-top: 0; }
.bjgr__fk { display: block; font-size: 11.5px; color: #f5a25d; }
.bjgr__ft { display: block; font-size: 13px; line-height: 1.45; color: #fff; }
.bjgr__fl small { display: block; margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, .65); }

.bjgr__f { margin-bottom: 14px; }
.bjgr__f label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: #fff; }
.bjgr__f input,
.bjgr__f textarea,
.bjgr__phone {
  display: block; width: 100%; margin: 0;
  border: 1px solid transparent; border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 400; color: #17233e;
  box-shadow: none; outline: none;
}
.bjgr__f input, .bjgr__f textarea { height: 44px; padding: 0 14px; }
.bjgr__f textarea { height: auto; min-height: 84px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
.bjgr__f input::placeholder, .bjgr__f textarea::placeholder { color: #8a93a6; }
.bjgr__f input:focus, .bjgr__f textarea:focus, .bjgr__phone:focus-within { border-color: #f5761a; box-shadow: 0 0 0 3px rgba(245, 118, 26, .25); }
.bjgr__f .is-bad, .bjgr__phone:has(.is-bad) { border-color: #ff8f8f; }
.bjgr__phone { display: flex; align-items: center; height: 44px; overflow: hidden; }
.bjgr__phone span { flex: none; padding: 0 10px 0 14px; border-right: 1px solid #e3e7ee; color: #56607a; font-size: 14px; }
.bjgr__phone input { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0; padding: 0 12px; box-shadow: none !important; }
.bjgr__msg { display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; color: #ffb4b4; }

.bjgr__more {
  display: inline-block; margin: 2px 0 16px; padding: 0; border: 0; background: none;
  font-family: inherit; font-size: 13px; color: rgba(255, 255, 255, .8); cursor: pointer;
}
.bjgr__more b { font-weight: 500; color: #f5a25d; }
.bjgr__more:hover b { text-decoration: underline; text-underline-offset: 3px; }

.bjgr__captcha { margin: 4px 0 14px; }
.bjgr__err { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 143, 143, .14); font-size: 13px; line-height: 1.5; color: #ffd0d0; }

.bjgr__go {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #f5761a 0%, #e0640d 100%);
  color: #fff; font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(245, 118, 26, .8);
}
.bjgr__go:hover { filter: brightness(1.05); }
.bjgr__go:disabled { opacity: .65; cursor: progress; }
.bjgr__go:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bjgr__foot { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.bjgr__foot a { color: #f5a25d; font-weight: 500; text-decoration: none; white-space: nowrap; }

.bjgr__done { padding-top: 10px; }
.bjgr__tick { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: rgba(245, 118, 26, .18); color: #f5a25d; font-size: 20px; }
.bjgr__done h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; color: #fff; }
.bjgr__done p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.bjgr__done b { font-weight: 500; color: #fff; }
.bjgr__done .bjgr__go { margin-top: 10px; }

/* the email's "Send code" (js/bj-email-verify.js) reads on the navy panel */
.bjgr .bjev__ok { color: #9fe0b5; }

/* the line under the counters once they pass 9 (the results page's panel) */
.bjgr-opt__note { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: #dd660f; }

/* the results page's line for a group: fares per person, the pick sends the request */
.bjgr-note {
  display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 4px; padding: 10px 14px;
  border: 1px solid #f3c9a6; border-radius: 10px; background: #fff7f0;
  font-size: 13px; line-height: 1.55; color: #3c4661;
}
.bjgr-note i, .bjgr-note svg { flex: none; width: 14px; margin-top: 3px; color: #e0640d; }
.bjgr-note b { font-weight: 500; color: #17233e; }

@media (max-width: 575px) {
  .bjgr__panel { width: 100vw; }
  .bjgr__head { padding: 18px 18px 8px; }
  .bjgr__body { padding: 4px 18px 24px; }
  /* a phone zooms the page into a box set under 16px */
  .bjgr__f input, .bjgr__f textarea, .bjgr__phone span { font-size: 16px; }
}
