/* ✅ Base Modal */
.offer-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(to right, #ffffff, #f0f9ff);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  max-width: 400px;
  width: 90%;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  animation: fadeIn 0.3s ease;
  transition: all 0.4s ease;
}

/* ✅ Headings & Text */
.offer-modal h2 {
  color: #0a4d8c;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.offer-modal p {
  font-size: 16px;
  margin-top: 10px;
}

/* ✅ Register Button – Center + Bottom Padding */
.offer-modal button#afsr-offer-register {
  background-color: #0a4d8c;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 70px;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
}

/* ✅ Close Button Centered */
.offer-modal button#offer-modal-close {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  display: block;
  margin: 0 auto;
  margin-top: -40px;
}

/* ✅ Mobile Drawer Mode */
/* 🔹 Mobile adjustments */
@media (max-width: 600px) {
  .offer-modal {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: 0;
    padding: 70px 70px; /* top & bottom padding */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center; /* horizontal centering */
    box-sizing: border-box;
    overflow-y: auto; /* allow scroll if content overflows */
    text-align: center;
  }

  .offer-modal h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .offer-modal p {
    font-size: 0.95rem;
    margin-top: 8px;
  }

  .offer-modal button#afsr-offer-register {
    font-size: 1rem;
    padding: 12px 24px;
    width: auto;          /* allow button to shrink */
    max-width: 280px;     
    margin: 20px auto 0;  /* horizontally center */
    display: block;       /* ensure block-level for margin auto */
  }



  .offer-modal button#offer-modal-close {
    margin-top: 15px;
    font-size: 14px;
  }
}