/* =====================================================================
   Yatra Techs — enquiry pop-ups (all redesigned pages)
   Built by /assets/js/yt-enquiry.js. Every selector uses the yt-eq- prefix.
   Accents: project = pink, demo = blue, consultation = purple.
   ===================================================================== */
.yt-eq { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; }
.yt-eq[hidden] { display: none; }
.yt-eq-overlay { position: absolute; inset: 0; background: rgba(4, 7, 18, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }

.yt-eq-panel {
  --a: var(--yt-pink); --a2: var(--yt-pink-2); --a-grad: var(--yt-grad-pink); --a-soft: rgba(240, 24, 131, .16);
  position: relative; width: min(1000px, 100%); height: min(88vh, 760px); display: grid; grid-template-columns: 320px minmax(0, 1fr);
  border-radius: var(--yt-radius-lg, 28px); overflow: hidden; background: var(--yt-card, #172440);
  border: 1px solid var(--yt-border-2, rgba(255,255,255,.16)); box-shadow: 0 50px 120px -30px rgba(0,0,0,.95);
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .3s var(--yt-ease), transform .4s var(--yt-ease);
}
.yt-eq-panel[data-accent="blue"] { --a: var(--yt-blue); --a2: #5AA8FF; --a-grad: var(--yt-grad-blue); --a-soft: rgba(8, 123, 255, .18); }
.yt-eq-panel[data-accent="purple"] { --a: var(--yt-purple); --a2: #B89BFF; --a-grad: linear-gradient(135deg, #793DCE, #B23DCE); --a-soft: rgba(121, 61, 206, .22); }
.yt-eq.is-open .yt-eq-overlay { opacity: 1; }
.yt-eq.is-open .yt-eq-panel { opacity: 1; transform: none; }

/* ---------- left: context panel ---------- */
.yt-eq-aside {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 36px 30px; overflow-y: auto;
  background: radial-gradient(120% 70% at 0% 0%, var(--a-soft), transparent 65%), radial-gradient(90% 60% at 100% 100%, rgba(8,123,255,.12), transparent 60%), #0F1830;
  border-right: 1px solid var(--yt-border);
}
.yt-eq-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--a-grad); box-shadow: 0 14px 30px -12px var(--a); }
.yt-eq-eyebrow { margin-top: 6px; font: 700 12px/1 var(--yt-font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--a2); }
.yt-eq-aside-title { font: 800 26px/1.15 var(--yt-font-head); color: #fff; letter-spacing: -.01em; }
.yt-eq-aside-text { font-size: 14.5px; line-height: 1.6; color: var(--yt-text-2); }
.yt-eq-product { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); }
.yt-eq-product[hidden] { display: none; }
.yt-eq-product-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--a-grad); }
.yt-eq-product strong { display: block; font: 700 15px/1.25 var(--yt-font-head); color: #fff; }
.yt-eq-product small { display: block; margin-top: 2px; font-size: 13px; color: var(--yt-muted); }
.yt-eq-next { margin-top: 6px; }
.yt-eq-next p, .yt-eq-reach p { font: 700 12px/1 var(--yt-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--yt-muted); }
.yt-eq-next ol { margin-top: 12px; display: grid; gap: 10px; counter-reset: eqstep; }
.yt-eq-next li { position: relative; padding-left: 36px; min-height: 26px; font-size: 14px; line-height: 1.45; color: #E3E9F5; counter-increment: eqstep; display: flex; align-items: center; }
.yt-eq-next li::before { content: counter(eqstep); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--yt-font-head); color: var(--a2); background: var(--a-soft); border: 1px solid color-mix(in srgb, var(--a) 50%, transparent); }
.yt-eq-reach { margin-top: auto; padding-top: 18px; display: grid; gap: 9px; border-top: 1px solid var(--yt-border); }
.yt-eq-reach a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #fff; transition: color .2s; }
.yt-eq-reach a i { width: 16px; color: var(--a2); }
.yt-eq-reach a:hover { color: var(--a2); }

/* ---------- right: the form ---------- */
.yt-eq-main { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 34px 36px 30px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.yt-eq-main::-webkit-scrollbar { width: 8px; }
.yt-eq-main::-webkit-scrollbar-track { background: transparent; }
.yt-eq-main::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 8px; }
.yt-eq-main::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
.yt-eq-close {
  position: absolute; right: 18px; top: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; color: #fff; background: rgba(8,13,32,.7); border: 1px solid var(--yt-border-2); cursor: pointer; transition: background .2s, transform .25s;
}
.yt-eq-close:hover { background: var(--a); transform: rotate(90deg); }
.yt-eq-heading { margin-right: 48px; font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; line-height: 1.2; color: #fff; }
.yt-eq-heading[hidden] { display: none; }
.yt-eq-form { margin-top: 22px; }
.yt-eq-form[hidden] { display: none; }
.yt-eq-grid { display: grid; gap: 16px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yt-eq-field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.yt-eq-field.is-full { grid-column: 1 / -1; }
.yt-eq-field > label, .yt-eq-group legend { font: 600 13.5px/1.3 var(--yt-font-head); color: #E3E9F5; }
.yt-eq-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.yt-eq-group legend { padding: 0; margin-bottom: 9px; }
.yt-eq-req { color: var(--a2); }
.yt-eq-opt { font-weight: 500; font-size: 12.5px; color: var(--yt-muted); }
.yt-eq-field input, .yt-eq-field select, .yt-eq-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; font: 500 16px/1.4 var(--yt-font-body); color: #fff;
  background: #0E1730; border: 1px solid rgba(255,255,255,.18); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.yt-eq-field textarea { min-height: 104px; resize: vertical; }
.yt-eq-field ::placeholder { color: #7F8CA6; opacity: 1; }
.yt-eq-field input:focus, .yt-eq-field select:focus, .yt-eq-field textarea:focus { outline: none; border-color: var(--a2); box-shadow: 0 0 0 4px var(--a-soft); }
.yt-eq-field [aria-invalid="true"], .yt-eq-group[aria-invalid="true"] .yt-eq-chip span { border-color: #FF6B8B; }
.yt-eq-select { position: relative; }
.yt-eq-select select { padding-right: 40px; cursor: pointer; }
.yt-eq-select select.is-empty { color: #7F8CA6; }
.yt-eq-select option { color: #fff; background: #0E1730; }
.yt-eq-select i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--yt-muted); pointer-events: none; }

/* option chips (radio = one choice, checkbox = several) */
.yt-eq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yt-eq-chip { position: relative; cursor: pointer; }
.yt-eq-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yt-eq-chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  font: 600 13.5px/1.2 var(--yt-font-head); color: #E3E9F5; background: #0E1730; border: 1px solid rgba(255,255,255,.18);
  transition: border-color .2s, background .2s, color .2s;
}
.yt-eq-chip input[type="checkbox"] + span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.35); transition: background .2s, border-color .2s; }
.yt-eq-chip:hover span { border-color: color-mix(in srgb, var(--a) 60%, transparent); }
.yt-eq-chip input:checked + span { color: #fff; background: var(--a-soft); border-color: var(--a2); }
.yt-eq-chip input[type="checkbox"]:checked + span::before { background: var(--a2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--a2); }
.yt-eq-chip input:focus-visible + span { outline: 2px solid var(--a2); outline-offset: 2px; }

.yt-eq-error { font-size: 13px; font-weight: 500; color: #FF8DA6; }
.yt-eq-error[hidden] { display: none; }
.yt-eq-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.yt-eq-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.yt-eq-submit { min-height: 52px; padding-inline: 28px; background: var(--a-grad); box-shadow: 0 14px 30px -14px var(--a); }
.yt-eq-submit[disabled] { opacity: .75; cursor: progress; }
.yt-eq-note { font-size: 13px; color: var(--yt-muted); }
.yt-eq-note span { color: var(--a2); }
.yt-eq-status { margin-top: 16px; display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; color: #FFD1DB; background: rgba(255,107,139,.1); border: 1px solid rgba(255,107,139,.4); outline: none; }
.yt-eq-status[hidden] { display: none; }
.yt-eq-status i { margin-top: 3px; color: #FF8DA6; }
.yt-eq-status strong { display: block; color: #fff; }
.yt-eq-status a { color: #fff; text-decoration: underline; }
.yt-eq-switch { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--yt-border); font-size: 13.5px; color: var(--yt-muted); }
.yt-eq-switch-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #E3E9F5; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.yt-eq-switch-link:hover { color: var(--a2); }

.yt-eq-done { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 40px 10px; text-align: center; outline: none; }
.yt-eq-done[hidden] { display: none; }
.yt-eq-done-ico { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, #0FB58A, #2ED3A0); box-shadow: 0 0 0 9px rgba(46,211,160,.15); }
.yt-eq-done-title { margin-top: 8px; font: 800 26px/1.2 var(--yt-font-head); color: #fff; }
.yt-eq-done-text { max-width: 40ch; font-size: 16px; color: #E3E9F5; }
.yt-eq-done .yt-btn { margin-top: 12px; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 860px) {
  .yt-eq { padding: 0; place-items: end stretch; }
  .yt-eq-panel { width: 100%; height: auto; max-height: 94vh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border-radius: 22px 22px 0 0; transform: translateY(40px); }
  /* the context panel becomes a compact header */
  .yt-eq-aside { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 18px 64px 16px 20px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--yt-border); }
  .yt-eq-badge { width: 42px; height: 42px; border-radius: 13px; font-size: 17px; grid-row: span 2; }
  .yt-eq-eyebrow { margin-top: 0; flex: 1; }
  .yt-eq-aside-title { flex-basis: 100%; font-size: 19px; }
  .yt-eq-aside-text, .yt-eq-next, .yt-eq-reach { display: none; }
  .yt-eq-product { flex-basis: 100%; margin-top: 6px; padding: 9px 12px; }
  .yt-eq-main { padding: 20px 20px 26px; }
  .yt-eq-close { top: 16px; right: 16px; }
  .yt-eq-heading { display: none; }
  .yt-eq-form { margin-top: 0; }
}
@media (max-width: 559px) {
  .yt-eq-grid { grid-template-columns: minmax(0, 1fr); }
  .yt-eq-submit { width: 100%; justify-content: center; }
  .yt-eq-note { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .yt-eq-panel, .yt-eq-overlay { transition: none; } }

/* single tick box (e.g. consent on the ShiftX Talent candidate form) */
.yt-eq-consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13.5px; line-height: 1.55; color: var(--yt-text-2); }
.yt-eq-consent input { -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 20px; height: 20px; min-height: 0; margin-top: 1px; padding: 0; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.35); background: #0E1730; cursor: pointer; transition: background .2s, border-color .2s; }
.yt-eq-consent input:checked { background: var(--a2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--a2); }
.yt-eq-consent input:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.yt-eq-consent[aria-invalid="true"] input { border-color: #FF6B8B; }
.yt-eq-consent-field + .yt-eq-consent-field { margin-top: -6px; }
