/* DIP Online Application — Created by Creovationstudio.com */
.dipa-modal, .dipa-launch {
	--dipa-primary: #6043A5;
	--dipa-accent: #5EEAD4;
	--dipa-error: #D63638;
	--dipa-dark: #27273A;
	--dipa-ink: #3B2A7A;          /* "pen" colour of the answers, like the PDF */
	--dipa-line: #1d1d1d;
	--dipa-soft: #F3F0FB;
	--dipa-ui: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--dipa-doc: 'Century Gothic', 'Questrial', 'Avenir', sans-serif;
	--dipa-cal: 'Calibri', 'Carlito', 'Segoe UI', sans-serif;
}
.dipa-modal *, .dipa-modal *::before, .dipa-modal *::after, .dipa-launch * { box-sizing: border-box; }

/* ---------- Launch button ---------- */
.dipa-btn {
	appearance: none; border: 0; cursor: pointer; text-decoration: none !important;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--dipa-primary); color: #fff !important;
	font-family: var(--dipa-ui); font-size: 15px; font-weight: 700; letter-spacing: .2px; line-height: 1.2;
	padding: 14px 26px; border-radius: 10px; position: relative; overflow: hidden;
	box-shadow: 0 8px 20px rgba(96, 67, 165, .28);
	transition: transform .15s, box-shadow .2s, filter .2s, opacity .2s;
}
.dipa-btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 28%; background: var(--dipa-accent); }
.dipa-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.dipa-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.dipa-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dipa-btn--ghost { background: #fff; color: var(--dipa-dark) !important; box-shadow: inset 0 0 0 1.5px #DCD6EE; }
.dipa-btn--ghost::after { display: none; }

/* ---------- Modal shell ---------- */
.dipa-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(24, 20, 48, .66); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 2vh 16px; font-family: var(--dipa-ui); color: var(--dipa-dark); animation: dipaFade .25s ease; }
.dipa-modal[hidden] { display: none; }
.dipa-shell { position: relative; width: 100%; max-width: 920px; height: 96vh; height: 96dvh; background: #F1EFF8; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 90px rgba(0, 0, 0, .35); animation: dipaPop .35s cubic-bezier(.2, .9, .3, 1.15); }

.dipa-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 16px; background: #fff; border-bottom: 1px solid #E7E3F3; flex: none; }
.dipa-top__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dipa-top__brand img { height: 38px; width: auto; max-width: 120px; object-fit: contain; }
.dipa-top__brand strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dipa-top__brand small { display: block; font-size: 12px; color: #505065; font-weight: 600; margin-top: 2px; }
.dipa-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #F1EFF8; color: var(--dipa-dark); font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; padding: 0; }
.dipa-x:hover { background: var(--dipa-primary); color: #fff; }
.dipa-x--sm { width: 34px; height: 34px; font-size: 22px; }
.dipa-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #ECE9F5; }
.dipa-progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--dipa-primary) 0 82%, var(--dipa-accent) 82%); transition: width .35s ease; }

.dipa-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 22px 16px 10px; }
.dipa-foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #E7E3F3; }
.dipa-foot [data-prev] { margin-right: auto; }
.dipa-err { flex: 1 1 100%; font-size: 13px; font-weight: 600; color: #9b1c1c; background: #fdf1f1; border-left: 4px solid var(--dipa-error); border-radius: 6px; padding: 8px 12px; }

/* ---------- The paper (PDF replica) ---------- */
.dipa-page { animation: dipaIn .3s ease; }
.dipa-page[hidden] { display: none; }
.dipa-paper {
	position: relative; max-width: 816px; margin: 0 auto; background: #fff; color: #111;
	padding: 34px 48px 26px; border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 30px rgba(39, 39, 58, .10);
	font-family: var(--dipa-doc); font-size: 15.5px; line-height: 1.55;
}
.dipa-plogo { display: block; height: 78px; width: auto; max-width: 240px; object-fit: contain; margin: 0 0 6px; }
.dipa-plogo--txt { height: auto; font-family: var(--dipa-ui); font-weight: 800; font-size: 18px; color: var(--dipa-dark); }
.dipa-ptitle { text-align: center; margin: 14px 0 26px; font-size: 21px; font-weight: 700; letter-spacing: .3px; color: #111; line-height: 1.3; }
.dipa-ptitle--mid { margin: 22px 0 14px; }
.dipa-ptitle--sm { font-size: 18px; margin-bottom: 30px; }
.dipa-cal { font-family: var(--dipa-cal); }
.dipa-tah, .dipa-tah-b { font-family: Tahoma, Verdana, sans-serif; }
.dipa-treb { font-family: 'Trebuchet MS', var(--dipa-cal); }
.dipa-p { margin: 0 0 10px; }
.dipa-p--space { margin-top: 22px; }
.dipa-p--legal { font-size: 13.5px; line-height: 2; }
.dipa-p a { color: #1f3fd1; text-decoration: none; }
.dipa-ul { margin: 0 0 16px; padding-left: 26px; list-style: none; }
.dipa-ul li { position: relative; margin: 0 0 2px; }
.dipa-ul li::before { content: "◆"; position: absolute; left: -18px; top: 1px; font-size: 9px; }

/* Checkbox squares (☐) */
.dipa-boxes { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 12px; border-radius: 8px; padding: 4px 6px; width: fit-content; }
.dipa-box { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15.5px; margin: 0; }
.dipa-box input { position: absolute; opacity: 0; pointer-events: none; }
.dipa-sq { width: 20px; height: 20px; border: 1.5px solid #111; border-radius: 2px; display: inline-grid; place-items: center; background: #fff; transition: background .15s; }
.dipa-box input:checked + .dipa-sq { background: var(--dipa-ink); border-color: var(--dipa-ink); }
.dipa-box input:checked + .dipa-sq::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.dipa-box input:focus-visible + .dipa-sq { outline: 2px solid var(--dipa-primary); outline-offset: 2px; }
.dipa-boxes.is-invalid { background: #fdf1f1; box-shadow: inset 0 0 0 1.5px var(--dipa-error); }

/* Inline "Label ______" fields */
.dipa-row { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 16px; row-gap: 10px; margin-bottom: 14px; }
.dipa-row--sm { margin-bottom: 10px; }
.dipa-f { --g: 3; flex: 1 1 calc(var(--g) * 9%); display: flex; align-items: flex-end; gap: 6px; margin: 0; white-space: nowrap; font-weight: 400; color: #111; min-width: 0; }
.dipa-f.g1 { --g: 1; } .dipa-f.g2 { --g: 2; } .dipa-f.g3 { --g: 3; } .dipa-f.g4 { --g: 4; }
.dipa-f.g5 { --g: 5; } .dipa-f.g6 { --g: 6; } .dipa-f.g7 { --g: 7; } .dipa-f.g8 { --g: 8; }
.dipa-line {
	flex: 1 1 auto; min-width: 46px; width: 100%; height: 30px; margin: 0;
	border: 0; border-bottom: 1.4px solid var(--dipa-line); border-radius: 0; background: transparent; box-shadow: none;
	padding: 2px 6px 1px; font-family: Helvetica, Arial, sans-serif; font-size: 16px; color: var(--dipa-ink);
	transition: background .2s, border-color .2s;
	-webkit-appearance: none; appearance: none;
}
.dipa-line:hover { background: rgba(96, 67, 165, .05); }
.dipa-line:focus { outline: none; background: rgba(96, 67, 165, .09); border-bottom-color: var(--dipa-primary); border-bottom-width: 2px; }
.dipa-line[readonly] { color: var(--dipa-ink); background: transparent; cursor: default; }
.dipa-line[type=date] { min-width: 130px; }
.dipa-line::placeholder { color: #B4B0C6; }
.dipa-up { text-transform: uppercase; }
.dipa-line--xs { width: 54px; flex: none; display: inline-block; height: 24px; text-align: center; }
.dipa-line--sm { width: 120px; flex: none; display: inline-block; height: 24px; }
.dipa-modal .is-invalid.dipa-line { border-bottom-color: var(--dipa-error); background: rgba(214, 54, 56, .08); }
.dipa-helper { margin: -4px 0 10px; font-family: var(--dipa-ui); font-size: 13px; }
.dipa-helper label { display: inline-flex; align-items: center; gap: 8px; background: var(--dipa-soft); color: var(--dipa-primary); font-weight: 600; padding: 6px 12px; border-radius: 99px; cursor: pointer; margin: 0; }
.dipa-helper input { accent-color: var(--dipa-primary); width: 16px; height: 16px; margin: 0; }

/* Education table */
.dipa-edu-t { margin-top: 10px; margin-bottom: 0; }
.dipa-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; table-layout: fixed; }
.dipa-table th, .dipa-table td { border: 1.5px solid #111; padding: 0; vertical-align: middle; }
.dipa-table th { font-weight: 400; text-align: center; padding: 8px 6px 16px; }
.dipa-table th:first-child { text-align: left; }
.dipa-table td input { width: 100%; height: 34px; border: 0; margin: 0; padding: 4px 6px; background: transparent; font-family: Helvetica, Arial, sans-serif; font-size: 15px; color: var(--dipa-ink); border-radius: 0; box-shadow: none; }
.dipa-table td input:focus { outline: none; background: rgba(96, 67, 165, .09); box-shadow: inset 0 -2px 0 var(--dipa-primary); }
.dipa-table td input.is-invalid { background: rgba(214, 54, 56, .08); box-shadow: inset 0 -2px 0 var(--dipa-error); }

/* Signature + date */
.dipa-signrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.dipa-sigcell { display: flex; flex-direction: column; gap: 2px; width: 46%; min-width: 230px; }
.dipa-sigcell--inline, .dipa-datecell--inline { flex-direction: row; align-items: flex-end; gap: 6px; }
.dipa-sigcell--inline .dipa-sig { flex: 1; }
.dipa-datecell { display: flex; flex-direction: column; gap: 2px; width: 30%; min-width: 150px; }
.dipa-datecell--inline span, .dipa-sigcell--inline > span { white-space: nowrap; }
.dipa-sig {
	appearance: none; cursor: pointer; width: 100%; height: 62px; margin: 0; padding: 4px 6px;
	border: 0; border-bottom: 1.4px solid var(--dipa-line); border-radius: 0; background: transparent;
	display: flex; align-items: flex-end; justify-content: flex-start; font: inherit; color: inherit; box-shadow: none;
}
.dipa-sig__ph { display: inline-flex; align-items: center; gap: 6px; font-family: var(--dipa-ui); font-size: 13px; font-weight: 700; color: var(--dipa-primary); background: var(--dipa-soft); border: 1.5px dashed var(--dipa-primary); border-radius: 8px; padding: 8px 14px; margin-bottom: 6px; animation: dipaPulse 2s ease-in-out infinite; }
.dipa-sig img { height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; display: block; }
.dipa-sig.is-invalid .dipa-sig__ph { border-color: var(--dipa-error); color: var(--dipa-error); background: #fdf1f1; }
.dipa-sig:hover { background: rgba(96, 67, 165, .04); }
.dipa-sigcell--lic { margin-top: 12px; width: 100%; max-width: 420px; }
.dipa-sigcell--lic .dipa-sig { height: 56px; }

/* Notary (read only) */
.dipa-notary { position: relative; margin-top: 22px; padding: 14px 16px 6px; border-radius: 8px; background: repeating-linear-gradient(-45deg, #fafafa 0 10px, #f4f4f4 10px 20px); color: #444; }
.dipa-notary p { margin: 0 0 12px; }
.dipa-notary__tag { position: absolute; top: -10px; right: 12px; font-family: var(--dipa-ui); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: #fff; border: 1px solid #ddd; padding: 3px 9px; border-radius: 99px; color: #6B6880; }
.dipa-blank { display: inline-block; border-bottom: 1.2px solid #555; height: 1em; vertical-align: baseline; margin: 0 2px; }
.dipa-blank.s { width: 34px; } .dipa-blank.l { width: 45%; } .dipa-blank.xl { width: 60%; margin: 0; }

/* Payment page */
.dipa-fees { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 17px; margin: 0 0 14px; }
.dipa-attach { text-align: right; font-size: 17.5px; margin: 40px 0 0; }
.dipa-dated { margin-top: 36px; margin-bottom: 4px; }

/* Paper footer */
.dipa-pfoot { display: flex; justify-content: space-between; gap: 10px; margin-top: 46px; font-family: var(--dipa-cal); font-size: 11px; line-height: 1.35; color: #222; }
.dipa-pfoot .r { text-align: right; }
.dipa-pfoot--lg { font-size: 14px; }

/* Consent */
.dipa-consent { display: flex; gap: 12px; align-items: flex-start; max-width: 816px; margin: 16px auto 0; padding: 14px 16px; background: #fff; border-radius: 10px; border: 1.5px solid #DCD6EE; font-size: 14px; line-height: 1.55; cursor: pointer; }
.dipa-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--dipa-primary); }
.dipa-consent.is-invalid { border-color: var(--dipa-error); background: #fdf6f6; }

.dipa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.dipa-credit { text-align: center; font-size: 12px; color: #6B6880; margin: 18px 0 6px; }
.dipa-credit a { color: var(--dipa-primary) !important; font-weight: 700; text-decoration: none !important; border-bottom: 2px solid var(--dipa-accent); padding-bottom: 1px; }

/* ---------- Signature sheet ---------- */
.dipa-sheet { position: absolute; inset: 0; z-index: 5; background: rgba(24, 20, 48, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: dipaFade .2s ease; }
.dipa-sheet[hidden] { display: none; }
.dipa-sheet__box { width: 100%; max-width: 560px; background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: dipaUp .3s cubic-bezier(.2, .9, .3, 1.1); }
.dipa-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 17px; }
.dipa-pad { position: relative; height: 210px; border-radius: 12px; background: #FCFBFE; border: 1.5px solid #DCD6EE; overflow: hidden; touch-action: none; }
.dipa-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.dipa-pad__line { position: absolute; left: 24px; right: 24px; bottom: 46px; border-bottom: 1.5px solid #A9A3C6; pointer-events: none; }
.dipa-pad__hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 12px; color: #9B98AE; pointer-events: none; }
.dipa-sheet__note { font-size: 12.5px; color: #505065; margin: 10px 2px 14px; }
.dipa-sheet__actions { display: flex; justify-content: space-between; gap: 10px; }

/* ---------- Status (sending / success) ---------- */
.dipa-status { position: absolute; inset: 0; z-index: 6; background: rgba(24, 20, 48, .6); backdrop-filter: blur(3px); display: flex; padding: 16px; animation: dipaFade .2s ease; overflow-y: auto; }
.dipa-status[hidden] { display: none; }
.dipa-status__box { margin: auto; width: 100%; max-width: 470px; background: #fff; border-radius: 18px; padding: 30px 26px 16px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: dipaPop .35s cubic-bezier(.2, .9, .3, 1.2); }
.dipa-status__box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--dipa-primary) 0 78%, var(--dipa-accent) 78%); }
.dipa-status__logo { height: 52px; width: auto; max-width: 200px; object-fit: contain; display: block; margin: 0 auto 16px; }
.dipa-status h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 800; color: var(--dipa-dark); line-height: 1.3; }
.dipa-status p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #505065; }
.dipa-status p strong { color: var(--dipa-dark); }
.dipa-badge { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--dipa-primary); background: var(--dipa-soft); padding: 6px 12px; border-radius: 99px; }
.dipa-pay { text-align: left; font-size: 14px; line-height: 1.6; background: #F3F0FB; border-left: 4px solid var(--dipa-primary); border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; color: var(--dipa-dark); }
.dipa-pay strong { display: block; margin-bottom: 4px; }
.dipa-status__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dipa-plane { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; background: var(--dipa-soft); display: grid; place-items: center; position: relative; overflow: hidden; }
.dipa-plane svg { width: 44px; height: 44px; animation: dipaFly 1.6s ease-in-out infinite; position: relative; z-index: 1; }
.dipa-plane .b { fill: var(--dipa-primary); }
.dipa-plane .f { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; opacity: .85; }
.dipa-plane .t { position: absolute; left: 6px; top: 58%; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--dipa-accent)); animation: dipaTrail 1.6s ease-in-out infinite; }
.dipa-bar { height: 8px; border-radius: 99px; background: #ECE9F5; overflow: hidden; margin: 0 0 6px; }
.dipa-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--dipa-primary), #5F75B3); transition: width .25s ease; }
.dipa-status small { display: block; font-size: 12px; color: #505065; font-weight: 600; }
.dipa-done svg { width: 78px; height: 78px; display: block; margin: 0 auto; }
.dipa-done circle { stroke: var(--dipa-primary); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: dipaDraw .6s ease forwards; }
.dipa-done path { stroke: var(--dipa-primary); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dipaDraw .4s .45s ease forwards; }
.dipa-bang { width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; background: #fdecec; color: var(--dipa-error); font-size: 34px; font-weight: 800; display: grid; place-items: center; }

body.dipa-lock { overflow: hidden !important; }
.dipa-modal [hidden] { display: none !important; }

/* ---------- Animations ---------- */
@keyframes dipaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dipaPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes dipaUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes dipaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dipaFly { 0%, 100% { transform: translate(-3px, 3px) rotate(-4deg); } 50% { transform: translate(4px, -4px) rotate(4deg); } }
@keyframes dipaTrail { 0%, 100% { opacity: .2; transform: translateX(-6px); } 50% { opacity: 1; transform: translateX(2px); } }
@keyframes dipaDraw { to { stroke-dashoffset: 0; } }
@keyframes dipaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(96, 67, 165, .25); } 50% { box-shadow: 0 0 0 6px rgba(96, 67, 165, 0); } }

/* ---------- Tablet ---------- */
@media (max-width: 860px) {
	.dipa-paper { padding: 28px 28px 22px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
	.dipa-modal { padding: 0; }
	.dipa-shell { height: 100vh; height: 100dvh; max-width: none; border-radius: 0; }
	.dipa-top { padding: 10px 12px 13px; }
	.dipa-top__brand img { height: 30px; }
	.dipa-top__brand strong { font-size: 14px; }
	.dipa-body { padding: 12px 8px 8px; }
	.dipa-paper { padding: 18px 16px 16px; font-size: 15px; }
	.dipa-plogo { height: 54px; }
	.dipa-ptitle { font-size: 18px; margin: 10px 0 18px; }
	.dipa-ptitle--sm { font-size: 16.5px; }

	.dipa-row { column-gap: 12px; row-gap: 14px; }
	.dipa-f { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 0; white-space: normal; font-size: 13px; color: #444; }
	.dipa-f.g1, .dipa-f.g2 { flex: 1 1 calc(50% - 6px); }
	.dipa-line { height: 36px; font-size: 16px; }

	.dipa-table, .dipa-table tbody, .dipa-table tr, .dipa-table td { display: block; width: 100%; border: 0; }
	.dipa-table thead { display: none; }
	.dipa-table tbody { margin: 0 0 6px; }
	.dipa-table tbody:first-of-type::before { content: "Name of High School/GED"; }
	.dipa-table tbody:last-of-type::before { content: "Name of College/University"; }
	.dipa-table tbody::before { display: block; font-weight: 700; font-size: 13px; margin: 6px 0; color: var(--dipa-dark); }
	.dipa-table tr { border: 1.5px solid #111; border-radius: 6px; padding: 6px 10px 8px; margin: 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
	.dipa-table td:first-child { grid-column: 1 / -1; }
	.dipa-table td::before { content: attr(data-label); display: block; font-size: 11.5px; color: #666; margin-top: 4px; }
	.dipa-table td input { border-bottom: 1.2px solid #111; height: 34px; font-size: 16px; }

	.dipa-signrow { flex-direction: column; align-items: stretch; gap: 14px; }
	.dipa-sigcell, .dipa-datecell { width: 100%; min-width: 0; }
	.dipa-fees { flex-direction: column; gap: 4px; font-size: 15.5px; }
	.dipa-attach { text-align: left; font-size: 15.5px; margin-top: 26px; }
	.dipa-p--legal { font-size: 13px; line-height: 1.8; }
	.dipa-pfoot { font-size: 10px; margin-top: 28px; }
	.dipa-pfoot--lg { font-size: 11px; }
	.dipa-blank.l { width: 38%; }

	.dipa-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
	.dipa-foot .dipa-btn { padding: 13px 18px; font-size: 14px; }
	.dipa-foot [data-next] { flex: 1; }
	.dipa-sheet { align-items: flex-end; padding: 0; }
	.dipa-sheet__box { border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
	.dipa-pad { height: 200px; }
	.dipa-status__box { padding: 26px 18px 14px; }
	.dipa-status__actions .dipa-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.dipa-modal * { animation: none !important; transition: none !important; }
}

/* ---------- Step 3 (after paying) ---------- */
.dipa-step3 { font-family: Arial, Helvetica, sans-serif; color: var(--dipa-dark); }
.dipa-step3__card { max-width: 720px; margin: 0 auto; background: #F8F6FD; border: 1px solid #E6E0F5; border-radius: 16px; padding: 30px 30px 18px; position: relative; overflow: hidden; }
.dipa-step3__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--dipa-primary) 0 78%, var(--dipa-accent) 78% 100%); }
.dipa-step3__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px #E6E0F5; font-size: 22px; margin-bottom: 14px; color: var(--dipa-primary); }
.dipa-step3__kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dipa-primary); margin-bottom: 6px; }
.dipa-step3__title { font-family: Arial, Helvetica, sans-serif; font-size: 23px; line-height: 1.25; font-weight: 700; margin: 0 0 12px; color: var(--dipa-dark); }
.dipa-step3__title::after { content: ""; display: block; width: 52px; height: 3px; border-radius: 3px; margin-top: 10px; background: linear-gradient(90deg, var(--dipa-primary) 70%, var(--dipa-accent) 70%); }
.dipa-step3__text { font-size: 14px; line-height: 1.65; color: #4E4C61; margin: 0 0 18px; }
.dipa-step3__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.dipa-step3 .dipa-btn { font-family: Arial, Helvetica, sans-serif; font-size: 14px; padding: 12px 22px; }
.dipa-steps { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: s; }
.dipa-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #8C89A0; text-align: center; }
.dipa-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 2px #DCD6EE; font-size: 13px; position: relative; z-index: 1; }
.dipa-steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: #DCD6EE; }
.dipa-steps li.is-done { color: var(--dipa-primary); }
.dipa-steps li.is-done span { background: var(--dipa-primary); color: #fff; box-shadow: none; }
.dipa-steps li.is-done::after { background: var(--dipa-primary); }
.dipa-steps li.is-current { color: var(--dipa-dark); }
.dipa-steps li.is-current span { box-shadow: inset 0 0 0 2px var(--dipa-primary), 0 0 0 4px rgba(96, 67, 165, .12); color: var(--dipa-primary); }

/* "Paid online" stamp on the payment page */
.dipa-paidstamp { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px auto; max-width: 360px; padding: 10px 14px; border: 1.5px solid var(--dipa-primary); border-left: 5px solid var(--dipa-accent); border-radius: 8px; background: #fff; }
.dipa-paidstamp__ico { width: 28px; height: 28px; border-radius: 50%; background: var(--dipa-primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.dipa-paidstamp strong { display: block; color: var(--dipa-primary); font-size: 14px; letter-spacing: .4px; text-transform: uppercase; }
.dipa-paidstamp small { color: #4E4C61; font-size: 12px; }
.dipa-pay.is-paid { border-left-color: var(--dipa-accent); background: #F0FBF9; }
@media (max-width: 560px) {
	.dipa-step3__card { padding: 24px 18px 14px; }
	.dipa-steps li { font-size: 11px; }
}
