/* ─── MODAL OVERLAY ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 202;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 24px 16px;
}

.modal-overlay.open {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  animation: modalFadeIn 0.25s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── MODAL CONTAINER ─── */
.modal-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: modalSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ─── CLOSE BUTTON ─── */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-lt);
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.15s, transform 0.1s;
}

.modal-close:hover  { background: #F0EDE5; }
.modal-close:active { transform: scale(0.92); }

/* ─── MODAL TRUST LIST ─── */
.modal-trust-list {
  display: flex;
  gap: 6px 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-lt);
}

.modal-trust-list span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.1px;
}

/* ─── BYPASS LINK ─── */
.bypass-link {
  text-align: center;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.75;
}

.bypass-link a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bypass-link a:hover { opacity: 0.8; }

/* ─── BYPASS BACK LINK ─── */
.bypass-back {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
}

.bypass-back a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.7;
}

/* ─── QUESTION TEXTAREA ─── */
.question-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-lt);
  border-radius: 8px;
  background: var(--calc-input, #FFFCF8);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

.question-textarea:focus {
  border-color: var(--gold);
}
