/* Form 30 (Contract Review) terms popup — step 3 (2026-11-03). Same look as the .ea-terms-modal popup
   in app.css, under its own ea-acc-* names. Field 9's hide rules live in app.css and in an inline style. */

.ea-acc-backdrop { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(21,52,80,0.55); }
.ea-acc-backdrop[hidden] { display: none; }
html.ea-acc-open { overflow: hidden; }

.ea-acc-dialog { position: relative; background: #fff; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; border-radius: 14px; padding: 26px 24px 22px; box-shadow: 0 24px 64px rgba(0,0,0,0.32); color: var(--ea-ink); }
.ea-acc-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0 0 18px; color: var(--ea-ink); }

.ea-acc-row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.ea-acc-check { order: -1; flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #204CE5; cursor: pointer; }
.ea-acc-check[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.ea-acc-label { cursor: pointer; color: var(--ea-ink); }
.ea-acc-label a { color: #204CE5; text-decoration: underline; }
.ea-acc-label a.ea-acc-opened { color: #5B6B7A; } /* opened: theme Muted, 5.5:1 on white */
.ea-acc-hint { font-size: 12.5px; line-height: 1.4; color: var(--ea-muted); margin: -6px 0 12px 28px; }
.ea-acc-hint:empty { margin: 0; }

.ea-acc-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.ea-acc-actions button { font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; border-radius: 3px; padding: 0 18px; min-height: 44px; cursor: pointer; border: none; }
.ea-acc-accept { background: #204CE5 !important; color: #fff !important; }
.ea-acc-accept:hover { background: #1c44cc !important; }
.ea-acc-accept[aria-disabled="true"] { background: #8c9fdc !important; cursor: not-allowed; }
.ea-acc-cancel { background: #eef1f6 !important; color: var(--ea-ink) !important; }
.ea-acc-cancel:hover { background: #e3e8ef !important; }
/* Focus rings only after keyboard use (ea-acc-kbd is set by ea-acceptance.js), never after a click or tap. */
.ea-acc-dialog a:focus, .ea-acc-dialog input:focus, .ea-acc-dialog button:focus, .ea-acc-retry:focus, #gform_submit_button_30:focus { outline: none; }
html.ea-acc-kbd .ea-acc-dialog a:focus, html.ea-acc-kbd .ea-acc-dialog input:focus, html.ea-acc-kbd .ea-acc-dialog button:focus, html.ea-acc-kbd .ea-acc-retry:focus { outline: 2px solid var(--ea-steel); outline-offset: 2px; }
html.ea-acc-kbd #gform_submit_button_30:focus { outline: 2px solid var(--ea-amber); outline-offset: 2px; }

.ea-acc-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ea-acc-status { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: #b32d2e; }
.ea-acc-status-empty { margin: 0; }
.ea-acc-retry { font-family: inherit; font-size: 14px; font-weight: 500; border: none; border-radius: 3px; background: #204CE5; color: #fff; padding: 8px 14px; margin-left: 4px; cursor: pointer; }

/* Reading panel (popup version 2): the document opens inside the popup and scrolls on its own. */
.ea-acc-dialog [hidden] { display: none !important; }
.ea-acc-dialog .ea-acc-doclink { display: inline; padding: 0 !important; margin: 0; border: 0 !important; background: none !important; box-shadow: none !important; min-height: 0; font: inherit !important; line-height: inherit; color: #204CE5 !important; text-decoration: underline; text-align: left; cursor: pointer; }
.ea-acc-dialog .ea-acc-doclink.ea-acc-opened { color: #5B6B7A !important; } /* opened: theme Muted, 5.5:1 on white */
.ea-acc-progress { font-size: 12.5px; line-height: 1.4; color: var(--ea-muted); margin: -6px 0 6px 28px; }
.ea-acc-dialog.ea-acc-reading { display: flex; flex-direction: column; height: 88vh; height: 88dvh; overflow: hidden; }
.ea-acc-panel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.ea-acc-panel-head { flex: 0 0 auto; }
.ea-acc-dialog .ea-acc-back { font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; border: none; border-radius: 3px; padding: 0 14px; min-height: 40px; margin: 0 0 12px; cursor: pointer; background: #eef1f6 !important; color: var(--ea-ink) !important; }
.ea-acc-dialog .ea-acc-back:hover { background: #e3e8ef !important; }
.ea-acc-panel-title { margin: 0 0 2px; }
.ea-acc-panel-version { font-size: 12.5px; color: var(--ea-muted); margin: 0 0 10px; }
.ea-acc-doc { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1px solid #d9dee5; border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.55; color: var(--ea-ink); }
.ea-acc-doc h2 { font-size: 15px; line-height: 1.35; margin: 18px 0 8px; }
.ea-acc-doc p, .ea-acc-doc ul { margin: 0 0 10px; }
.ea-acc-doc ul { padding-left: 20px; list-style: disc; }
.ea-acc-doc-end { margin: 18px 0 0 !important; padding-top: 10px; border-top: 1px solid #d9dee5; text-align: center; font-size: 12.5px; color: var(--ea-muted); }
.ea-acc-doc-status { flex: 0 0 auto; font-size: 13px; line-height: 1.4; color: var(--ea-muted); margin: 8px 0 0; min-height: 1.4em; }
.ea-acc-panel .ea-acc-actions { flex: 0 0 auto; margin-top: 10px; }
.ea-acc-dialog .ea-acc-doc:focus { outline: none; }
html.ea-acc-kbd .ea-acc-dialog .ea-acc-doc:focus { outline: 2px solid var(--ea-steel); outline-offset: 2px; }
