/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.53); /* Subtle blue tint overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Card */
.modal-content {
  background: #fff;
  max-width: 825px;
  width: 85%;
  padding: 0px 30px 50px;
  border-radius: 14px;
  text-align: center;
  position: relative;
}

.success-icon-wrapper img {
  margin: 0 auto;
}

.thank-you-box {
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 20px;
}

/* Next Steps Box */
.next-steps-box {
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
  background-color: #ffede6; /* Light orange tint from design */
  padding: 20px;
  border-radius: 5px;
  text-align: left;
  margin-top: 16px;
}

.next-steps-box .next-box-heading {
  color: #f5520f;
  font-size: var(--fs-large-bold);
  line-height: var(--lh-large-bold);
  font-weight: 700;
  margin-bottom: 8px;
}

.next-steps-box p {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

@media (max-width: 1300px) {
  .modal-content {
    max-width: 780px;
  }

  .next-steps-box {
    margin-top: 24px;
  }

  .next-steps-box .next-box-heading {
    margin-bottom: 4px;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    padding: 0px 15px 30px;
  }

  .thank-you-box {
    margin-top: 33px;
  }

  .next-steps-box {
    padding: 15px;
  }
}
