:root {
  /* Fonts */
  --font-primary: 'Manrope', sans-serif;
  --font-2:'Manrope', sans-serif;
}



    /* Full background image */
    .bg-image {
      position: absolute;
      width: 90%;
      margin:auto;
      margin-top: 15%;
      height: 90%;
      object-fit: cover;
      z-index: -1; /* push behind content */
    }

    /* Overlay background */
    /* Overlay with blur */
/* Overlay background */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

/* Modal Box */
.modal {
  background: #fdf3d6;
  display: none;
  border-radius: 8px;
  overflow: hidden;
  max-width: 750px;
  width: 90%;
  position: fixed;   /* ✅ fixed to viewport */
  top: 50%;          /* ✅ move to middle */
  left: 50%;
  transform: translate(-50%, -50%); /* ✅ perfectly center */
  border: 1px solid #ddd;
  z-index: 100000000;
  animation: popup 0.3s ease;
  
}

/* Simple popup animation */
@keyframes popup {
  from {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Responsive fix */
@media(max-width: 768px) {
  .modal {
    flex-direction: column;
    width: 90%;
    max-width: 400px;
  }
  .modal-image {
    padding: 10px;
  }
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

/* Left image */
.modal-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal-image img {
  width: 100%;
  height: auto;
  border: 5px solid #d4af3700;   /* golden border */
  border-radius: 6px;
  object-fit: cover;
  outline: 1px solid #d4af37;
  outline-offset: 2px;
}


/* Right form */
.modal-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-content h2 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 20px;
  font-family: var(--font-primary);
  line-height: 21px;
  letter-spacing: 0.5px;
  color: #6C283A;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  border-bottom: 2px solid #ccc;
  font-size: 14px;
}
.modal-content input::placeholder {
  color: #999;       
  font-size: 14px;
  font-family: var(--font-primary);
  line-height: 21px;
  letter-spacing: 0.5px;       
  letter-spacing: 0.5px;
}


.modal-content button {
  background: #6b2b2b;
  color: #fff;
  padding: 8px;
  width: 100%;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.5px;
  font-weight: 400;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.3s;
}

.modal-content button:hover {
  background: #8b3b3b;
}

/* Responsive */
@media(max-width: 768px) {
  .modal {
    flex-direction: column;
    margin-top: 100px;
    width: 70%;
  }
  .modal-image {
    padding: 10px;
  }
}
