/* UpSkillX Phase-1 Career Lead Capture — v1.0 */
#upskillx-career-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 18, 43, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#upskillx-career-lead-modal.is-open { display: flex; }

body.upskillx-lead-modal-open { overflow: hidden; }

.upskillx-career-lead-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 96vw);
  height: min(900px, 94vh);
  max-height: 94vh;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
}

.upskillx-career-lead-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 16px 18px;
  background: linear-gradient(120deg, #061d4c, #0f79bd 72%, #12b9d1);
  color: #fff;
}

.upskillx-career-lead-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.upskillx-career-lead-brand img {
  width: auto;
  height: 38px;
  border-radius: 7px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
}

.upskillx-career-lead-copy { min-width: 0; }

.upskillx-career-lead-eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .86;
}

.upskillx-career-lead-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
}

.upskillx-career-lead-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: .92;
}

.upskillx-career-lead-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.upskillx-career-lead-close:hover {
  background: rgba(255,255,255,.18);
  transform: scale(1.03);
}

.upskillx-career-lead-body {
  min-height: 0;
  flex: 1 1 auto;
  background: #f6f8fb;
}

.upskillx-career-lead-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.upskillx-career-lead-fallback {
  padding: 8px 14px 10px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #e8edf3;
  font-size: 12px;
  color: #5f6b7a;
}

.upskillx-career-lead-fallback a {
  font-weight: 600;
  color: #075ca8;
  text-decoration: none;
}

.upskillx-career-lead-fallback a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  #upskillx-career-lead-modal {
    padding: 0;
    align-items: stretch;
  }

  .upskillx-career-lead-card {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .upskillx-career-lead-header {
    padding: 12px 13px;
  }

  .upskillx-career-lead-brand img {
    height: 34px;
  }

  .upskillx-career-lead-title {
    font-size: 16px;
  }

  .upskillx-career-lead-subtitle {
    font-size: 11px;
  }

  .upskillx-career-lead-close {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .upskillx-career-lead-fallback {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}
