/* 1. The Overlay (Background) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000cc; /* Dark semi-transparent bg */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Class to make it visible via JS */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 2. The Card Container */
.modal-card {
  width: 100%;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: visible; /* Important: Allows icon to stick out if needed */
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  position: relative;
  padding: 35px;
}

.icon-circle img {
  aspect-ratio: 208/208;
}

/* 5. Content Body */
.modal-body {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 690px;
  text-align: center;
  gap: 24px;
}

.modal-body h2 {
  color: #d27e2b;
  margin: 0;
}

.modal-body p {
  color: #000;
}

.body-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 6. Button */
.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #D27E2B; /* Orange */
  color: #ffffff;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid #D27E2B;
  text-decoration: none;
  
  transition: background-color 0.3s;
  width: 100%;
  max-width: 230px;
  height: 52px;
}

.modal-btn:hover {
  background: #000000;
  color: white;
  border: 1px solid #000;
}

@media (max-width: 1024px) {
  .modal-card {
    width: 100%;
    max-width: 550px;
    border-radius: 6px;
    gap: 24px;
  }

  .icon-circle img {
    height: auto;
    max-width: 118px;
  }

  .modal-body {
    max-width: 573px;
  }

  .body-text {
    gap: 12px;
  }

  .modal-btn {
    max-width: 230px;
    height: 44px;
  }
}
/* ==================================================
   RESPONSIVE QUERIES
   ================================================== */

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
  .body-text p {
    font-size: 20px !important;
  }
  .modal-card {
    width: 100%;
    border-radius: 4px;
    margin: 0 20px;
    padding: 24px 12px;
  }

  .icon-circle img {
    max-width: 130px;
  }

  .modal-btn {
    max-width: 230px;
    height: 46px;
    
  }
}
