/* ============================================================
   B.Tech application promo popup (main site root embed)
   ============================================================ */

.btech-app-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(13, 27, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.btech-app-popup.open {
  opacity: 1;
  visibility: visible;
}

body.btech-app-popup-open {
  overflow: hidden;
}

.btech-app-popup-inner {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 56px rgba(13, 27, 42, 0.28);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.btech-app-popup.open .btech-app-popup-inner {
  transform: translateY(0) scale(1);
}

.btech-app-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btech-app-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.btech-app-popup-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.btech-app-popup-img-panel {
  position: relative;
  background: #0f2347;
  overflow: hidden;
  min-height: 420px;
}

.btech-app-popup-img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.btech-app-popup-action-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
  text-align: center;
  background: #f8f9fc;
}

.btech-app-popup-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: rgba(23, 48, 112, 0.1);
  color: #173070;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btech-app-popup-action-panel h3 {
  margin: 0 0 0.5rem;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f2347;
}

.btech-app-popup-action-panel p {
  margin: 0 0 1.5rem;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4b5563;
  max-width: 280px;
}

.btech-app-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #173070, #1e4080);
  color: #fff;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btech-app-popup-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(23, 48, 112, 0.3);
  color: #fff;
  text-decoration: none;
}

.btech-app-popup-dismiss {
  margin-top: 1rem;
  padding: 0.5rem;
  border: none;
  background: none;
  color: #6b7280;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btech-app-popup-dismiss:hover {
  color: #173070;
}

@media (max-width: 767px) {
  .btech-app-popup {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .btech-app-popup-inner {
    grid-template-columns: 1fr;
    max-height: 96vh;
    border-radius: 18px 18px 0 0;
  }

  .btech-app-popup-img-panel {
    min-height: 220px;
    max-height: 42vh;
  }

  .btech-app-popup-action-panel {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .btech-app-popup-cta {
    width: 100%;
    min-width: 0;
  }
}
