.modal-wrapper {
  width: 70%;
  max-width: 850px;
  background: rgba(247, 247, 247, 1);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 35px;
  border-radius: 25px;
  max-height: 95vh;
  overflow-y: auto; /* Enable vertical scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

.modal-wrapper::-webkit-scrollbar {
  width: 0px; /* Remove scrollbar for WebKit browsers */
  background: transparent; /* Optional: make scrollbar transparent */
}

@media screen and (max-width: 991px) {
  .modal-wrapper {
    padding: 20px;
    width: 95%;
  }
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
}

.close-button-wrapper {
  display: flex;
  justify-content: flex-end;
}

.hidden {
  display: none;
}

.show {
  display: block;
}

/* Collapsible sections inside modals */
.modal-section {
  margin-top: 1.25rem;
}

.modal-section-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  border-left: 4px solid #db2c74;
  padding: 8px 8px 8px 12px;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.modal-section-toggle:hover {
  background: rgba(219, 44, 116, 0.05);
}

.modal-section-body {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0.75rem 0 0;
}

.modal-section.collapsed .modal-section-body {
  max-height: 0;
  padding: 0;
}

.modal-section-arrow {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-left: 8px;
}

.modal-section.collapsed .modal-section-arrow {
  transform: rotate(-90deg);
}

/* Tighten trust signals in compact grid */
.trust-signals p {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.modal-content ul li {
  line-height: 1.6;
}

