/* ============================
   OVERLAY (luxurious fade)
============================ */
#saswat-brochure-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99997;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

#saswat-brochure-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================
   POPUP CONTAINER
============================ */
#saswat-brochure-popup {
  position: fixed;
  z-index: 99998;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%) scale(0.92);
  width: 900px;
  max-width: 95%;
  background: #ffffff;
  color: #000;
  border-radius: 14px;
  overflow: hidden;
  display: none;
  box-shadow: 0 25px 80px rgba(0,0,0,0.55);
  transition: all .45s cubic-bezier(.16,1,.3,1);
}

#saswat-brochure-popup.active {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================
   LEFT IMAGE PANEL
============================ */
#saswat-brochure-popup .saswat-popup-left {
  width: 46%;
  min-height: 420px;
  border-right: 1px solid #eee;
  background: #f2f2f2;
  position: relative;
}

#saswat-brochure-popup .saswat-popup-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   RIGHT CONTENT PANEL
============================ */
#saswat-brochure-popup .saswat-popup-right {
  width: 54%;
  padding: 40px 34px;
}

#saswat-brochure-popup .saswat-popup-right h3 {
  font-size: 26px;
  margin-bottom: 6px;
  color: #000;
  letter-spacing: 0.3px;
}

#saswat-brochure-popup .saswat-cta-small {
  color: #444;
  font-size: 14px;
}

/* ============================
   INPUT STYLING
============================ */
#saswat-brochure-popup .saswat-input {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  transition: border .25s ease, background .25s ease;
}

#saswat-brochure-popup .saswat-input:focus {
  background: #fff;
  border-color: #18425d;
  outline: none;
}

/* ============================
   BUTTONS
============================ */
#saswat-submit-btn {
  padding: 12px 26px;
  background: #18425d;
  color: #fff;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background .25s ease, transform .2s ease;
}

#saswat-submit-btn:hover {
  background: #b30000;
  transform: translateY(-1px);
}

#saswat-brochure-popup .saswat-cancel {
  background: transparent !important;
  color: #777;
  border: 1px solid #bbb !important;
  border-radius: 30px;
  padding: 10px 22px;
}

#saswat-brochure-popup .saswat-cancel:hover {
  color: #000;
  border-color: #888;
}

/* ============================
   CLOSE BUTTON
============================ */
#saswat-brochure-popup .saswat-popup-close {
  position: absolute;
  right: 14px;
  top: 14px;
  background: none;
  border: none;
  color: #000;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .25s ease;
}

#saswat-brochure-popup .saswat-popup-close:hover {
  opacity: 1;
}

/* ============================
   SUCCESS / ERROR MESSAGES
============================ */
#saswat-brochure-popup .saswat-success {
  background: #e9fbe8;
  color: #2d7a31;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
}

#saswat-brochure-popup .saswat-error {
  background: #fdeaea;
  color: #b30000;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* ============================
   MOBILE RESPONSIVE
============================ */
@media (max-width: 860px) {

  #saswat-brochure-popup {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }

  #saswat-brochure-popup .saswat-popup-left {
    width: 100%;
    height: 240px !important;
  }

  #saswat-brochure-popup .saswat-popup-right {
    width: 100%;
    padding: 24px;
  }
}
