/* Forms hub (the "New patients and forms" page, English and Spanish).
   Used by every design: colors come from the page's own variables, with neutral fallbacks. */
.forms-hub { display: grid; gap: 40px; margin-top: 30px; }
.form-group h3 { margin: 0 0 16px; font-size: 1.2rem; }
.form-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.form-row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 22px 36px; align-items: start;
  padding: 24px 26px; border: 1px solid var(--line, rgba(127, 127, 127, 0.3)); border-radius: 24px; background: var(--card, rgba(127, 127, 127, 0.08));
}
.form-info { display: flex; gap: 16px; align-items: flex-start; }
.form-info .icon-bubble { flex: none; margin: 0; }
.form-info h4 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; }
.form-info p { margin: 0; font-size: 0.98rem; color: var(--muted, inherit); }
.form-langs { display: grid; gap: 16px; }
.form-lang { padding-top: 16px; border-top: 1px solid var(--line, rgba(127, 127, 127, 0.3)); }
.form-lang:first-child { padding-top: 0; border-top: 0; }
.form-lang-head { margin: 0 0 10px; font-size: 0.95rem; }
.form-lang-head b { margin-right: 8px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.form-soon { font-size: 0.92rem; color: var(--muted, inherit); }
.embed-wrap-note { margin-top: 12px; }
@media (max-width: 860px) {
  .form-row { grid-template-columns: 1fr; padding: 20px 18px; border-radius: 20px; }
}

/* The pop-up window that opens a form on the same page */
.form-modal {
  width: min(940px, 94vw); height: min(90vh, 940px); max-width: none; max-height: none; padding: 0; overflow: hidden;
  border: 1px solid var(--line, rgba(127, 127, 127, 0.35)); border-radius: 24px; background: var(--bg-2, #0d1730); color: var(--text, inherit);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
}
.form-modal[open] { display: flex; flex-direction: column; }
.form-modal::backdrop { background: rgba(7, 13, 26, 0.76); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.form-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line, rgba(127, 127, 127, 0.3)); }
.form-modal-title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.form-modal-close {
  flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(127, 127, 127, 0.22); color: inherit; font-size: 1.7rem; line-height: 1;
}
.form-modal-close:hover { background: rgba(127, 127, 127, 0.38); }
.form-modal-body { position: relative; flex: 1; min-height: 0; background: #fff; }
.form-modal-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #4b5870; font-weight: 600; }
.form-modal-loading[hidden] { display: none; }
.form-modal-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.form-modal-help { margin: 0; padding: 10px 24px 14px; font-size: 0.92rem; color: var(--muted, inherit); border-top: 1px solid var(--line, rgba(127, 127, 127, 0.3)); }
html.modal-open { overflow: hidden; }
@media (max-width: 700px) {
  .form-modal { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .form-modal-bar { padding-left: 16px; }
  .form-modal-help { padding: 8px 16px 12px; }
}

