.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.4s ease-out;
  justify-content: center;
  align-items: center;
}

/*.modal.hidden {*/
/*  display: none !important;*/
/*}*/

.modal-content {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  /* padding: 0px 50px; */
  width: 100%;
  max-width: 500px; 
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(-40px) scale(0.95);
  animation: cardEntrance 0.5s ease-out forwards;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  gap: 20px;
  height: 30%;
    display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes cardEntrance {
  0% { transform: translateY(-40px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Close Button ===== */
.close-button {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: clamp(18px, 3vw, 24px); 
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.close-button:hover {
  color: #e74c3c;
  transform: rotate(90deg);
}

.modal-text-content{
  display: flex;
  flex-direction: column;
  width: 50%;
  margin-left: 20px
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* margin-bottom: 16px; */
}

.modal-header h2 {
  font-size: 22px;
  margin: 8px 0 0;
  color: #333;
}

.modal-body {
  text-align: left;
  /* margin: 11px 0; */
  font-size: clamp(14px, 2.3vw, 16px);
  color: #555;
  width: 100%;
}

.logo-container{
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-logo {
  /* position: absolute; */
  display: flex;
  justify-content: center;
  align-items: center;
  right: 10%;
  bottom: 25%;
  /* width: clamp(60px, 22vw, 100px);  */
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  width: 80%
}

.modal-logo:hover {
  transform: scale(1.15);
}

/* ===== Media Queries ===== */
@media (max-width: 600px) {
  .modal-content {
    /* padding: 6% 7%; */
    width: 92%;
  }
}

@media (max-width: 400px) {
  .modal-content {
    /* padding: 8% 7%; */
    width: 95%;
  }

  .modal-logo{
    width: 100%
    bottom: 20%;
  }

  .logo-container{
    width: 25%
  }

  .modal-text-content{
    margin: 0px
  }
}
