html.request-popup-open,
html.request-popup-open body { overflow: hidden; }

.request-popup {
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(16,24,39,.3);
}

.request-popup::backdrop { background: rgba(16,24,39,.65); backdrop-filter: blur(3px); }
.request-popup-content { position: relative; padding: 28px; }
.request-popup .section-tag { margin-bottom: 10px; padding-right: 36px; }
.request-popup h2 { padding-right: 24px; color: var(--navy); font: 700 34px/1.08 "Cormorant Garamond", serif; }
.request-popup h2:focus { outline: none; }
.request-popup #request-popup-description { margin: 12px 0 22px; color: var(--gray); font-size: 15px; line-height: 1.6; }
.request-popup .form-group { margin-bottom: 14px; }
.request-popup .form-group input,
.request-popup .form-group textarea { font-size: 16px; }
.request-popup .form-group textarea { height: 86px; min-height: 72px; }
.request-popup-optional { color: var(--gray); font-weight: 400; }
.request-popup .form-check { margin-bottom: 14px; }
.request-popup .form-check input { flex: 0 0 auto; width: 17px; height: 17px; }
.request-popup-privacy { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.request-popup-note { margin-bottom: 18px; color: var(--gray); font-size: 11px; line-height: 1.6; }
.request-popup-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--navy); background: transparent; border: 0; border-radius: 50%; font-size: 30px; line-height: 1; }
.request-popup-close:hover { background: var(--gold3); }
.request-popup-dismiss { display: block; margin: 16px auto 0; padding: 6px 12px; color: var(--gray); background: transparent; border: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.request-popup button:focus-visible,
.request-popup a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 768px) {
  .request-popup { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .request-popup-content { padding: 24px 18px; }
  .request-popup h2 { font-size: 30px; }
  .request-popup .section-tag { font-size: 10px; letter-spacing: 2px; }
}
