﻿html.asq-dialog-open { overflow: hidden; }

.asq-dialog {
  width: min(690px, calc(100% - 40px));
  max-height: min(92dvh, 1020px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--ink, #15255a);
  background: var(--beige, #f5f2eb);
  border: 1px solid #dadfdc;
  border-radius: 16px;
  box-shadow: 0 24px 72px rgb(21 37 90 / 14%);
  font-family: var(--font, 'Inclusive Sans', sans-serif);
  font-size: 18px;
  line-height: 1.55;
  overscroll-behavior: contain;
}

.asq-dialog::backdrop {
  background: rgb(21 37 90 / 45%);
  backdrop-filter: blur(4px);
}

.asq-dialog[open] { animation: asq-dialog-enter 560ms var(--ease, cubic-bezier(.32, .4, .28, 1)); }
.asq-dialog-shell { position: relative; padding: 48px; }
.asq-dialog-content > :where(h2, .asq-information-body, .asq-dialog-actions) {
  animation: asq-step-enter 520ms var(--ease, cubic-bezier(.32, .4, .28, 1)) both;
}
.asq-dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--ink, #15255a);
  background: transparent;
  border: 1px solid #c7cecf;
  border-radius: 50%;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.asq-dialog-close:hover { background: var(--mint, #dff2e9); transform: rotate(6deg); }
.asq-dialog-close:active { transform: scale(.95); }
.asq-dialog-close svg { width: 22px; height: 22px; }

.asq-information-eyebrow {
  margin: 0 30px 24px 0;
  color: var(--blue, #224bc7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.asq-dialog h2 {
  max-width: 530px;
  margin: 0 0 22px;
  color: var(--ink, #15255a);
  font-family: var(--heading, 'DM Sans', sans-serif);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.asq-dialog h2:focus { outline: none; }
.asq-dialog-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.asq-dialog .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 25px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}
.asq-dialog .button-primary { color: #fff; background: var(--blue, #224bc7); }
.asq-dialog .button-primary:hover { background: var(--ink, #15255a); }
.asq-dialog .button svg { width: 20px; height: 20px; flex: 0 0 20px; }
.asq-dialog button:focus-visible { outline: 3px solid var(--blue, #224bc7); outline-offset: 4px; }

.asq-information-body > p { margin: 0 0 22px; color: #4a5675; font-size: 18px; line-height: 1.6; }
.asq-information-body strong { color: var(--ink, #15255a); font-weight: 500; }
.asq-information-note { padding: 26px; margin: 28px 0; background: #fff; border-left: 2px solid var(--blue); border-radius: 0; }
.asq-information-note strong { font-size: 17px; }
.asq-information-note p { margin: 10px 0 0; color: #4a5675; font-size: 16px; line-height: 1.6; }

@keyframes asq-dialog-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes asq-step-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 560px) {
  .asq-dialog { width: calc(100% - 24px); max-height: 92dvh; border-radius: 12px; }
  .asq-dialog-shell { padding: 32px 22px 28px; }
  .asq-dialog-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .asq-dialog h2 { font-size: 34px; }
  .asq-information-body > p { font-size: 17px; }
  .asq-dialog-actions { align-items: stretch; }
  .asq-dialog-actions .button { justify-content: center; width: 100%; min-width: 0; padding-inline: 20px; }
  .asq-information-note { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .asq-dialog[open] { animation: none; }
  .asq-dialog *, .asq-dialog *::before, .asq-dialog *::after { animation: none !important; transition: none !important; }
}
