/* OVERLAY */
.global-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* POPUP */
.global-modal-box {
  display: flex;
  width: 900px;
  max-width: 95%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

/* ACTIVE ANIMATION */
.global-modal-overlay.active .global-modal-box {
  transform: scale(1);
  opacity: 1;
}

/* LEFT PANEL */
.global-modal-left {
  width: 40%;
  background: linear-gradient(135deg, #0f4c97, #1d6fdc);
  color: white;
  padding: 32px;
}

.global-modal-left h2 {
  margin: 20px 0;
}

/* RIGHT PANEL */
.global-modal-right {
  width: 60%;
  padding: 30px;
}

/* FORM ROW */
.global-row {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

/* INPUTS */
.global-modal-right input,
.global-modal-right select,
.global-modal-right textarea {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: #f3f4f6;
  transition: 0.2s;
}

.global-modal-right input:focus,
.global-modal-right select:focus,
.global-modal-right textarea:focus {
  outline: none;
  background: #e8eefc;
}

/* PHONE FIELD */
.global-phone-field {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 0 12px;
  width: 100%;
}

.global-country-code {
  font-size: 14px;
  margin-right: 8px;
  color: #555;
}

.global-phone-field input {
  border: none;
  background: transparent;
  padding: 12px 0;
  width: 100%;
}

.global-phone-field input:focus {
  outline: none;
}

/* BUTTONS */
.global-actions {
  display: flex;
  gap: 10px;
}

.global-primary {
  background: linear-gradient(135deg, #0f4c97, #1d6fdc);
  color: white;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  flex: 1;
}

.global-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.global-secondary {
  background: #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  flex: 1;
}

.global-secondary:hover {
  background: #d1d5db;
}

/* CLOSE BUTTON */
.global-close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

/* THANK YOU */
.global-thankyou {
  display: none;
  text-align: center;
  animation: globalFadeIn 0.4s ease;
}

/* ANIMATION */
@keyframes globalFadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .global-modal-box {
    flex-direction: column;
  }

  .global-modal-left,
  .global-modal-right {
    width: 100%;
  }

  .global-row {
    flex-direction: column;
  }
}