/* =========================
   MODAL CSS COMPLETE
========================= */

/* =========================
   MODAL OVERLAY
========================= */

.custom-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  inset: 0;
  background: rgba(10, 10, 25, 0.65);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* =========================
   MODAL BOX
========================= */

.custom-modal-content {
  width: 100%;
  max-width: 980px;
  min-height: 540px;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  position: relative;

  box-shadow:
    0 10px 40px rgba(0,0,0,0.18),
    0 2px 10px rgba(0,0,0,0.08);

  animation: modalSmooth .35s ease;
}

/* =========================
   TOP HEADING
========================= */

.modal-top-heading {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 5;
  padding: 0 60px;
  box-sizing: border-box;
}

.modal-top-heading h1 {
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.modal-top-heading p {
  font-size: 16px;
  color: #6b7280;
  font-weight: 500;
}

/* =========================
   POPUP ANIMATION
========================= */

@keyframes modalSmooth {

  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   CLOSE BUTTON
========================= */

.custom-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f3f4f8;
  color: #1f2937;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: .25s ease;
}

.custom-close:hover {
  background: #e5e7eb;
  transform: rotate(90deg);
}

/* =========================
   LEFT PANEL
========================= */

.custom-left-panel {
  width: 50%;
  background:
    linear-gradient(
      135deg,
      #c026ff 0%,
      #8b5cf6 35%,
      #6366f1 70%,
      #4f46e5 100%
    );

  position: relative;
  overflow: visible;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 135px 52px 52px;
}

/* GLOW EFFECTS */

.custom-left-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  top: -120px;
  right: -100px;
  filter: blur(10px);
}

.custom-left-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  bottom: -100px;
  left: -80px;
}

/* =========================
   LEFT CONTENT
========================= */

.left-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.custom-left-panel h2 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 22px;
  color: #ffffff;
}

.custom-left-panel p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-bottom: 34px;
  max-width: 360px;
}

/* =========================
   CALL BUTTON
========================= */

.call-btn {
  border: none;
  background: #ffffff;
  color: #5b21b6;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 999px;
  cursor: pointer;

  transition: all .3s ease;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.15);
}

.call-btn:hover {
  transform: translateY(-3px);

  box-shadow:
    0 16px 40px rgba(0,0,0,0.22);
}

/* =========================
   RIGHT PANEL
========================= */

.custom-right-panel {
  width: 50%;
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 135px 52px 52px;
}

.right-inner {
  width: 100%;
  max-width: 420px;
}

.custom-right-panel h3 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
  margin-bottom: 18px;
}

.custom-right-panel p {
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 32px;
}

/* =========================
   INPUTS
========================= */

.input-group {
  margin-bottom: 18px;
}

.input-group input {
  width: 100%;
  height: 58px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 0 22px;
  font-size: 14px;
  outline: none;
  transition: all .25s ease;
  background: #f9fafb;
  box-sizing: border-box;
}

.input-group input:focus {
  border-color: #8b5cf6;
  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(139,92,246,0.12);
}

/* =========================
   BUTTON
========================= */

.whatsapp-btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      #c026ff,
      #6366f1
    );

  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  margin-top: 10px;

  transition: all .3s ease;

  box-shadow:
    0 12px 30px rgba(99,102,241,0.25);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 18px 40px rgba(99,102,241,0.35);
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 991px) {

  .custom-modal-content {
    flex-direction: column;
    max-width: 680px;
    min-height: auto;
  }

  .custom-left-panel,
  .custom-right-panel {
    width: 100%;
  }

  .custom-left-panel {
    padding: 120px 35px 45px;
  }

  .custom-right-panel {
    padding: 55px 35px 45px;
  }

  .modal-top-heading h1 {
    font-size: 38px;
  }

  .modal-top-heading p {
    font-size: 15px;
  }

  .custom-left-panel h2 {
    font-size: 40px;
  }

  .custom-right-panel h3 {
    font-size: 34px;
  }

}

@media (max-width: 640px) {

  .custom-modal {
    padding: 14px;
  }

  .custom-modal-content {
    border-radius: 24px;
    height: 80vh !important;
    overflow-y: scroll;
  }

  .modal-top-heading {
    top: 22px;
    padding: 20px 20px 0;
    position: unset;
  }

  .modal-top-heading h1 {
    font-size: 30px;
  }

  .modal-top-heading p {
    font-size: 14px;
    line-height: 1.5;
  }

  .custom-left-panel,
  .custom-right-panel {
    padding: 30px 24px 30px;
  }

  .custom-left-panel h2 {
    font-size: 34px;
  }

  .custom-right-panel h3 {
    font-size: 28px;
  }

  .custom-left-panel p,
  .custom-right-panel p {
    font-size: 14px;
  }

  .call-btn,
  .whatsapp-btn {
    height: 56px;
    width: 100%;
  }

}