/*
 * Sent panel (parts/v3-done.php, filled by assets/js/v3-done.js): the one success state of
 * every form. Own tokens and px sizes, because the call back dialog also opens on legacy pages
 * where style.css styles bare headings, paragraphs and lists. The accent follows the section
 * (--accent) and falls back to teal. Two columns when the panel itself is at least 600px wide.
 */
.v3-done {
	--dn-accent: var(--accent, #0d737c);
	--dn-ink: #0e1622;
	--dn-text: #3f4a57;
	--dn-muted: #5f6b78;
	--dn-line: #dde2e8;
	--dn-surface: #f3f5f8;
	container-type: inline-size;
	outline: 0;
}
.v3-done[hidden],
.v3-done [hidden] { display: none !important; }
.v3-done :is(h2, h3, h4, p, dl, dt, dd, ol, li) { margin: 0; padding: 0; font-family: inherit; letter-spacing: normal; text-transform: none; }

.v3-done__in { display: grid; gap: 28px; align-items: start; }
@container (min-width: 600px) {
	.v3-done.has-steps .v3-done__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4cqi, 64px); }
}

/* Main column */
.v3-done__main { display: grid; justify-items: start; gap: 14px; }
.v3-done__tick { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; background: var(--dn-accent); color: #fff; }
.v3-done__tick svg { width: 26px; height: 26px; }
.v3-done .v3-done__title { font-size: clamp(22px, .6vw + 16px, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--dn-ink); }
.v3-done .v3-done__title:focus { outline: 0; } /* Focused by script only (tabindex -1), never by Tab. */
.v3-done .v3-done__text { max-width: 52ch; font-size: clamp(16px, .2vw + 14px, 19px); line-height: 1.6; color: var(--dn-text); }
.v3-done .v3-done__text a { color: var(--dn-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Your details: reference and what was chosen */
.v3-done .v3-done__sum { display: grid; width: 100%; margin-top: 4px; border-top: 1px solid var(--dn-line); }
.v3-done .v3-done__sum > div { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--dn-line); }
.v3-done .v3-done__sum dt { font-size: clamp(14px, .1vw + 12.5px, 16px); font-weight: 600; line-height: 1.5; color: var(--dn-muted); }
.v3-done .v3-done__sum dd { font-size: clamp(15px, .15vw + 13px, 17px); font-weight: 500; line-height: 1.5; color: var(--dn-ink); overflow-wrap: anywhere; }
.v3-done .v3-done__sum [data-v3-done-ref] dd { font-weight: 700; }

/* Actions: links, and a dialog's Close button */
.v3-done__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 6px; }
.v3-done .v3-done__link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 3px; font-size: clamp(16px, .2vw + 14px, 19px); font-weight: 700; line-height: 1.4; color: var(--dn-accent); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
.v3-done .v3-done__link:is(:hover, :focus-visible) { color: var(--dn-accent); border-bottom-color: currentColor; }
.v3-done .v3-done__link svg { flex: none; width: 20px; height: 20px; transition: transform .2s; }
.v3-done .v3-done__link:is(:hover, :focus-visible) svg { transform: translateX(4px); }

/* What happens next: numbered accent circles on a hairline spine, as beside the lead form */
.v3-done__next { padding: clamp(20px, 2.4cqi, 36px); border-radius: 16px; background: var(--dn-surface); }
.v3-done .v3-done__next-title { font-size: clamp(17px, .3vw + 14px, 22px); font-weight: 700; line-height: 1.3; color: var(--dn-ink); }
.v3-done .v3-done__steps { position: relative; display: grid; gap: 18px; margin-top: 18px; list-style: none; }
.v3-done .v3-done__steps::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 15px; width: 2px; background: var(--dn-line); }
.v3-done .v3-done__steps li { position: relative; display: flex; gap: 16px; align-items: flex-start; list-style: none; }
.v3-done .v3-done__steps li::before { content: none; }
.v3-done__n { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--dn-accent); font-size: 14px; font-weight: 700; line-height: 1; color: #fff; }
.v3-done__step { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; font-size: clamp(15px, .15vw + 13px, 17px); line-height: 1.55; color: var(--dn-text); }
.v3-done__step strong { font-weight: 700; color: var(--dn-ink); }

/* Large screens: a touch more room, never wider than the card. */
@media (min-width: 2200px) {
	.v3-done__tick { width: 64px; height: 64px; }
	.v3-done__tick svg { width: 32px; height: 32px; }
	.v3-done__n { width: 38px; height: 38px; font-size: 16px; }
	.v3-done .v3-done__steps::before { left: 18px; }
}

/* Translations: room for tall glyphs. */
html.translated-ltr .v3-done :is(.v3-done__title, .v3-done__text, .v3-done__next-title, .v3-done__step, dt, dd) { line-height: 1.7; }

@media (prefers-reduced-motion: no-preference) {
	.v3-done:not([hidden]) .v3-done__in { animation: v3-done-in .45s cubic-bezier(.2, .7, .1, 1) both; }
	@keyframes v3-done-in { from { opacity: 0; transform: translateY(12px); } }
}

/* A dialog's Close button, under everything else. */
.v3-done__close { display: flex; margin-top: 24px; }

/* Brochure offer (acma_v3_br_done_offer): the page's brochure while the reply is prepared. */
.v3-done__brochure { display: grid; gap: 12px; justify-items: start; margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: #f3f5f8; box-shadow: inset 0 0 0 1px #dde2e8; }
.v3-done__brochure-text { margin: 0; font-size: 16px; line-height: 1.55; color: #0e1622; }
.v3-done__brochure .v3-brdl { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #071a33; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.v3-done__brochure .v3-brdl:hover { background: var(--pill, #5b3fc4); color: #fff; }
.v3-done__brochure .v3-brdl:focus-visible { outline: 3px solid #005f9f; outline-offset: 3px; }
.v3-done__brochure .v3-brdl__i { width: 18px; height: 18px; }
.v3-done__brochure .v3-brsr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
