/* Ported from the live production page's page-specific stylesheet
   (funnl.ancileservices.in /static/css/3190.fb6340c8.chunk.css), reformatted.
   Fully self-contained: no Bootstrap / framework dependency. */

* {
  box-sizing: border-box;
}

html:has(.job-landing-page) {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
}

.job-landing-page {
  --job-navy: #050b1b;
  --job-navy-2: #07122c;
  --job-blue: #0d1d42;
  --job-blue-light: #182d5c;
  --job-gold: #f1ca55;
  --job-gold-dark: #d8ad32;
  --job-white: #fff;
  --job-text: #f5f7fc;
  --job-muted: #aab4ca;
  --job-border: #ffffff24;
  background: var(--job-navy);
  color: var(--job-text);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.job-container {
  margin: 0 auto;
  width: min(1400px, calc(100% - 80px));
}

/* ---------------------------------------------------------------- Hero */

.job-hero {
  background: #040a19;
  overflow-x: clip;
  padding: 80px 0 90px;
  position: relative;
}

.job-hero-bg {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.job-hero-bg-media {
  line-height: 0;
  position: absolute;
  transform: translate(-50%);
  z-index: 0;
}

.job-hero-bg-motion {
  animation: jobHeroBgDrift 28s ease-in-out infinite alternate;
  -webkit-mask-composite: source-in, xor;
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(180deg, #0000 0, #000 14%, #000 86%, #0000),
    linear-gradient(90deg, #0000 0, #000 12%, #000 88%, #0000);
  mask-image: linear-gradient(180deg, #0000 0, #000 14%, #000 86%, #0000),
    linear-gradient(90deg, #0000 0, #000 12%, #000 88%, #0000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  will-change: transform;
}

.job-hero-bg-image {
  display: block;
  height: auto;
  max-height: min(1500px, calc(100% - 48px));
  max-width: min(2250px, calc(100vw - 48px));
  object-fit: contain;
  object-position: center center;
  opacity: 0.58;
  width: min(2250px, calc(100vw - 48px));
}

.job-hero-bg-shade {
  background: radial-gradient(ellipse at center, #040a1947 0, #040a1994 72%, #040a19e0 100%),
    linear-gradient(90deg, #040a19e0 0, #040a1985 32%, #040a1985 68%, #040a19e0);
  inset: 0;
  position: absolute;
  z-index: 1;
}

@keyframes jobHeroBgDrift {
  0% {
    transform: translate(0);
  }
  50% {
    transform: translate(-14px, -10px);
  }
  to {
    transform: translate(12px, 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-hero-bg-motion,
  .job-highlights-bg-motion {
    animation: none;
    transform: none;
  }
}

@media (max-width: 991px) {
  .job-hero {
    padding-bottom: 70px;
    padding-top: 56px;
  }
  .job-hero-bg-motion {
    -webkit-mask-image: linear-gradient(180deg, #0000 0, #000 12%, #000 88%, #0000),
      linear-gradient(90deg, #0000 0, #000 10%, #000 90%, #0000);
    mask-image: linear-gradient(180deg, #0000 0, #000 12%, #000 88%, #0000),
      linear-gradient(90deg, #0000 0, #000 10%, #000 90%, #0000);
  }
  .job-hero-bg-image {
    max-height: min(1500px, calc(100svh - 120px));
    max-width: min(2250px, calc(100vw - 24px));
    opacity: 0.5;
    width: min(2250px, calc(100vw - 24px));
  }
  .job-hero-bg-shade {
    background: radial-gradient(ellipse at center, #040a1952 0, #040a199e 70%, #040a19e6 100%);
  }
}

.job-hero:after {
  background: linear-gradient(180deg, #0000 70%, #050b1bbf);
  content: "";
  pointer-events: none;
}

.job-hero-overlay,
.job-hero:after {
  inset: 0;
  position: absolute;
  z-index: 1;
}

.job-hero-overlay {
  background-image: linear-gradient(hsla(0, 0%, 100%, 0.025) 1px, #0000 0),
    linear-gradient(90deg, hsla(0, 0%, 100%, 0.025) 1px, #0000 0);
  background-size: 50px 50px;
  opacity: 0.12;
}

.job-hero-container {
  position: relative;
  z-index: 2;
}

.job-hero-sticky-section {
  position: relative;
}

.job-hero-main {
  width: 100%;
}

.job-hero-application-track {
  margin-top: 30px;
  width: 100%;
}

.job-application-spacer {
  display: none;
}

.job-hero-content {
  padding: 20px 30px 20px 0;
}

@media (min-width: 992px) {
  .job-hero-sticky-section {
    min-height: 0;
    position: relative;
  }
  .job-hero-main {
    max-width: 58.333%;
    padding-right: 24px;
    width: 58.333%;
  }
  .job-hero-application-track {
    height: 100%;
    margin-top: 0;
    overflow: visible;
    position: absolute;
    right: 0;
    top: 0;
    width: 41.666%;
  }
  .job-application-spacer {
    display: block;
    pointer-events: none;
    visibility: hidden;
  }
  .job-application-card--sticky {
    left: 0;
    overflow: visible;
    position: absolute;
    top: 0;
    width: 100%;
  }
  .job-application-card--sticky.is-fixed {
    position: fixed;
    top: 24px;
    z-index: 15;
  }
  .job-application-card--sticky.is-anchored {
    bottom: 0;
    top: auto;
  }
}

.job-eyebrow {
  align-items: center;
  color: var(--job-gold);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 2px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.job-eyebrow span {
  background: var(--job-gold);
  display: inline-block;
  height: 2px;
  width: 32px;
}

.job-hero-title {
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 400;
  letter-spacing: -3px;
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 800px;
}

.job-location {
  align-items: center;
  color: #d7dcea;
  display: flex;
  font-size: 16px;
  gap: 8px;
  margin-bottom: 28px;
}

.job-location-icon {
  color: var(--job-gold);
  font-size: 22px;
}

/* ------------------------------------------------------ Position details */

.job-hero-position-details {
  margin-bottom: 30px;
}

.job-hero-position-heading {
  align-items: center;
  color: var(--job-gold);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.job-hero-position-heading span {
  background: var(--job-gold);
  display: inline-block;
  height: 2px;
  width: 28px;
}

.job-hero-position-grid {
  gap: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-hero-position-card {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: linear-gradient(145deg, #ffffff14, #ffffff08);
  border: 1px solid #ffffff1f;
  border-radius: 18px;
  box-shadow: 0 18px 40px #00000038, inset 0 1px 0 #ffffff0f;
  overflow: hidden;
  padding: 22px 20px 18px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.job-hero-position-card:before {
  background: linear-gradient(90deg, #0000, var(--job-gold), #0000);
  content: "";
  height: 3px;
  left: 0;
  opacity: 0.85;
  position: absolute;
  right: 0;
  top: 0;
}

.job-hero-position-card:hover {
  border-color: #f1ca5559;
  transform: translateY(-3px);
}

.job-hero-position-card-top {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.job-hero-position-card-top:has(+ .job-hero-position-rows) {
  border-bottom: 1px solid #ffffff14;
  padding-bottom: 14px;
}

.job-hero-position-card-header {
  align-items: center;
  display: flex;
  gap: 10px;
}

.job-hero-position-icon {
  align-items: center;
  background: #f1ca551f;
  border: 1px solid #f1ca5538;
  border-radius: 12px;
  display: flex;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  width: 40px;
}

.job-hero-position-icon img {
  display: block;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.job-hero-position-label {
  color: var(--job-gold);
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.job-hero-position-head {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  width: 100%;
  word-break: break-word;
}

.job-hero-position-card-top + .job-hero-position-rows {
  margin-top: 14px;
}

.job-hero-position-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 0;
}

.job-hero-position-row {
  align-items: flex-start;
  border-bottom: 1px solid #ffffff0f;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
}

.job-hero-position-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.job-hero-position-row-label {
  color: var(--job-gold);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.4;
  text-transform: uppercase;
}

.job-hero-position-row-value {
  color: #e8ecf4;
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  width: 100%;
  word-break: break-word;
}

/* -------------------------------------------------------------- Video */

.job-hero-video {
  margin-bottom: 30px;
}

.job-section-title {
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
  margin: 0 0 24px;
}

.job-video-wrapper {
  background: #0a1532;
  border: 1px solid #ffffff1a;
  border-radius: 22px;
  box-shadow: 0 30px 70px #0000004d;
  overflow: hidden;
  position: relative;
}

.job-video-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* --------------------------------------------------------- Description */

.job-hero-description {
  color: #fff;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 730px;
}

.job-hero-description p {
  margin-bottom: 10px;
}

.job-hero-description,
.job-hero-description * {
  color: #fff !important;
}

/* --------------------------------------------------------- Apply card */

.job-application-card {
  background: #0a1532;
  border: 1px solid #ffffff26;
  border-radius: 24px;
  box-shadow: 0 30px 80px #00000059, inset 0 1px 0 #ffffff0a;
  padding: 30px;
  scroll-margin-top: 100px;
}

.job-hero-container .job-application-card {
  padding-top: 20px;
}

.job-form-top-line {
  align-items: center;
  color: var(--job-gold);
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.job-form-top-line span {
  background: var(--job-gold);
  height: 2px;
  width: 28px;
}

.job-form-title {
  color: #fff;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 8px;
}

.job-form-subtitle {
  color: var(--job-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.job-application-form .job-form-row {
  display: flex;
  gap: 15px;
}

.job-application-form .job-form-row .job-form-group {
  flex: 1 1 0;
  min-width: 0;
}

.job-form-group {
  margin-bottom: 15px;
}

.job-form-group label {
  color: #e4e8f1;
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}

.job-form-group label span {
  color: var(--job-gold);
  margin-left: 3px;
}

.job-form-group label small {
  color: #7d89a5;
  font-size: 10px;
  font-weight: 400;
  margin-left: 5px;
}

.job-form-group .form-control,
.job-form-group .form-select {
  background: #172442 !important;
  border: 1px solid #ffffff1f !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 13px;
  min-height: 48px;
  padding: 11px 14px;
  width: 100%;
  font-family: inherit;
}

.job-form-group .form-control.is-invalid,
.job-form-group .form-select.is-invalid {
  border-color: #ff7676 !important;
}

.job-form-group textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.job-form-group .form-control::placeholder {
  color: #7d89a5;
}

.job-form-group .form-control:focus,
.job-form-group .form-select:focus {
  border-color: var(--job-gold) !important;
  box-shadow: 0 0 0 2px #f1ca551a !important;
  outline: none;
}

.job-form-group select option {
  background: #101c36;
  color: #fff;
}

.job-form-feedback {
  color: #ff7676;
  font-size: 11px;
  margin-top: 5px;
  display: none;
}

.job-form-feedback.d-block {
  display: block;
}

.job-file-upload {
  position: relative;
}

.job-file-upload input[type="file"] {
  line-height: 48px;
  min-height: 48px;
  padding: 0 12px;
}

.job-file-text {
  color: #6f7c99;
  font-size: 9px;
  margin-top: 5px;
}

.job-question-section {
  border-top: 1px solid #ffffff17;
  margin-top: 22px;
  padding-top: 20px;
}

.job-question-heading {
  color: var(--job-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.job-terms {
  margin-top: 18px;
}

.job-checkbox-row {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.job-checkbox-row input {
  margin-top: 3px;
  min-width: 16px;
}

.job-checkbox-row label {
  color: #929db4;
  font-size: 11px;
  line-height: 1.6;
}

.job-checkbox-row label a {
  color: var(--job-gold);
  text-decoration: none;
}

.job-checkbox-row label a:hover {
  text-decoration: underline;
}

.job-checkbox-row label .agree-color {
  color: var(--job-gold);
}

.job-terms-error {
  color: #ff7676;
  font-size: 11px;
  margin-top: 5px;
}

.job-submit-btn {
  background: var(--job-gold) !important;
  border: 0 !important;
  border-radius: 30px !important;
  color: #071027 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  margin-top: 10px;
  min-height: 51px;
  transition: all 0.25s ease !important;
  width: 100%;
  cursor: pointer;
}

.job-submit-btn span {
  font-size: 18px;
  margin-left: 10px;
}

.job-submit-btn:hover:not(:disabled) {
  background: #ffdf70 !important;
  transform: translateY(-2px);
}

.job-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ---------------------------------------------------------- Highlights */

.job-highlights {
  background: #050b1b;
  overflow: visible;
  padding: 85px 0;
  position: relative;
}

.job-highlights .job-container {
  position: relative;
  z-index: 2;
}

.job-highlights-bg {
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.job-highlights-bg-media {
  line-height: 0;
  position: absolute;
  transform: translate(-50%);
  z-index: 0;
}

.job-highlights-bg-motion {
  animation: jobHeroBgDrift 28s ease-in-out infinite alternate;
  -webkit-mask-composite: source-in, xor;
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(180deg, #0000 0, #000 14%, #000 86%, #0000),
    linear-gradient(90deg, #0000 0, #000 12%, #000 88%, #0000);
  mask-image: linear-gradient(180deg, #0000 0, #000 14%, #000 86%, #0000),
    linear-gradient(90deg, #0000 0, #000 12%, #000 88%, #0000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  will-change: transform;
}

.job-highlights-bg-image {
  display: block;
  height: auto;
  max-height: min(1279px, calc(100svh - 48px));
  max-width: min(1920px, calc(100vw - 48px));
  object-fit: contain;
  object-position: center center;
  opacity: 0.58;
  width: min(1920px, calc(100vw - 48px));
}

.job-highlights-bg-shade {
  background: radial-gradient(ellipse at center, #050b1b47 0, #050b1b94 72%, #050b1be0 100%),
    linear-gradient(90deg, #050b1be0 0, #050b1b85 32%, #050b1b85 68%, #050b1be0);
  inset: 0;
  position: absolute;
  z-index: 1;
}

@media (max-width: 991px) {
  .job-highlights-bg-motion {
    -webkit-mask-image: linear-gradient(180deg, #0000 0, #000 12%, #000 88%, #0000),
      linear-gradient(90deg, #0000 0, #000 10%, #000 90%, #0000);
    mask-image: linear-gradient(180deg, #0000 0, #000 12%, #000 88%, #0000),
      linear-gradient(90deg, #0000 0, #000 10%, #000 90%, #0000);
  }
  .job-highlights-bg-image {
    max-height: min(1279px, calc(100svh - 24px));
    max-width: min(1920px, calc(100vw - 24px));
    opacity: 0.5;
    width: min(1920px, calc(100vw - 24px));
  }
  .job-highlights-bg-shade {
    background: radial-gradient(ellipse at center, #050b1b52 0, #050b1b9e 70%, #050b1be6 100%);
  }
}

.job-section-heading-row {
  align-items: flex-end;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.job-section-heading-row h2 {
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
  margin: 0;
}

.job-section-heading-row p {
  color: var(--job-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 430px;
}

.job-highlight-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.job-highlight-card {
  background: #142753;
  border: 1px solid #ffffff1a;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 190px;
  padding: 27px;
  transition: all 0.3s ease;
  width: 100%;
}

.job-highlight-card:hover {
  border-color: #f1ca5573;
  transform: translateY(-5px);
}

.job-highlight-number {
  color: var(--job-gold);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 28px;
}

.job-highlight-card h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 9px;
}

.job-highlight-card p {
  color: #aeb8cd;
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------- Loader */

.job-page-loader {
  align-items: center;
  background: #050b1b;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  gap: 15px;
  justify-content: center;
  min-height: 100vh;
}

.job-page-loader .job-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #f1ca5540;
  border-top-color: #f1ca55;
  animation: jobSpin 0.8s linear infinite;
}

@keyframes jobSpin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------- Toast */

.job-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  box-shadow: 0 12px 30px #00000059;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.job-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.job-toast--success {
  background: #1e7d4f;
}

.job-toast--error {
  background: #a33636;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1199px) {
  .job-container {
    width: min(100% - 50px, 1100px);
  }
  .job-hero {
    padding: 65px 0 70px;
  }
  .job-hero-title {
    font-size: 55px;
  }
  .job-application-card {
    padding: 25px;
  }
}

@media (max-width: 991px) {
  .job-container {
    width: calc(100% - 40px);
  }
  .job-hero-sticky-section {
    display: flex;
    flex-direction: column;
  }
  .job-hero-main {
    max-width: 100%;
    padding-right: 0;
    width: 100%;
  }
  .job-hero-content {
    padding-right: 0;
  }
  .job-hero-application-track {
    height: auto;
    margin-top: 20px;
    position: static;
    width: 100%;
  }
  .job-application-spacer {
    display: none;
    height: 0 !important;
  }
  .job-application-card--sticky {
    bottom: auto;
    left: auto;
    overflow: visible;
    position: static;
    top: auto;
    width: 100% !important;
  }
  .job-hero-title {
    font-size: 52px;
  }
  .job-application-card {
    margin-top: 0;
  }
  .job-section-heading-row {
    display: block;
  }
  .job-section-heading-row p {
    margin-top: 20px;
  }
  .job-highlight-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .job-container {
    width: calc(100% - 30px);
  }
  .job-hero {
    padding: 50px 0;
  }
  .job-hero-title {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .job-hero-description {
    font-size: 15px;
  }
  .job-hero-position-grid {
    grid-template-columns: 1fr;
  }
  .job-hero-position-card {
    padding: 18px 16px 16px;
  }
  .job-hero-position-head {
    font-size: 15px;
  }
  .job-application-card {
    border-radius: 18px;
    padding: 20px;
  }
  .job-form-title {
    font-size: 25px;
  }
  .job-application-form .job-form-row {
    flex-direction: column;
    gap: 0;
  }
  .job-highlights {
    padding: 65px 0;
  }
  .job-section-heading-row h2,
  .job-section-title {
    font-size: 40px;
  }
  .job-video-wrapper iframe {
    height: 300px;
  }
  .job-highlight-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .job-hero-title {
    font-size: 38px;
  }
  .job-eyebrow {
    font-size: 10px;
  }
  .job-form-group .form-control,
  .job-form-group .form-select {
    min-height: 46px;
  }
}
