/* Online application forms (/apply). Uses the site colours from custom.css (--s-green, --s-navy ...). */
.apply-page { padding: 50px 0 70px; background: var(--s-soft, #f5f7fa); }
.apply-page .container { max-width: 1040px; }
.apply-page h2, .apply-page h3 { font-family: Poppins, sans-serif; color: var(--s-navy, #1a2b4a); }

/* ---------- list of forms */
.apf-hub-intro { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.apf-hub-intro h2 { font-size: 28px; margin: 0 0 12px; }
.apf-hub-intro p { font-size: 17px; color: var(--s-mute, #687083); }
.apf-hub-facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; color: var(--s-ink, #21242b); font-size: 15px; }
.apf-hub-facts i { color: var(--s-green, #0b7e3f); margin-right: 6px; }
.apf-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.apf-hub-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--s-line, #e3e7ee); border-radius: 14px; padding: 26px 24px 22px; color: var(--s-ink, #21242b); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; overflow: hidden; }
.apf-hub-card:before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, #d4161d 0 50%, var(--s-green, #0b7e3f) 50% 100%); }
.apf-hub-card:hover, .apf-hub-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(26, 43, 74, .12); border-color: var(--s-green, #0b7e3f); color: var(--s-ink, #21242b); text-decoration: none; }
.apf-hub-card:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.apf-hub-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--s-green-l, #e8f4ee); color: var(--s-green, #0b7e3f); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.apf-hub-t { font-family: Poppins, sans-serif; font-weight: 600; font-size: 18px; color: var(--s-navy, #1a2b4a); margin-bottom: 8px; line-height: 1.3; }
.apf-hub-d { font-size: 15px; color: var(--s-mute, #687083); line-height: 1.55; flex: 1; }
.apf-hub-go { margin-top: 18px; font-weight: 600; color: var(--s-green, #0b7e3f); font-size: 15px; }
.apf-hub-go i { transition: transform .18s; margin-left: 4px; }
.apf-hub-card:hover .apf-hub-go i { transform: translateX(4px); }
.apf-hub-help { text-align: center; margin: 34px 0 0; color: var(--s-mute, #687083); }

/* ---------- form head */
.apf-head { background: #fff; border: 1px solid var(--s-line, #e3e7ee); border-radius: 14px; padding: 28px 30px; margin-bottom: 22px; border-top: 4px solid var(--s-green, #0b7e3f); }
.apf-head h2 { font-size: 24px; margin: 0 0 6px; line-height: 1.3; }
.apf-head-sub { font-weight: 600; color: var(--s-ink, #21242b); margin-bottom: 10px; }
.apf-head p { color: #4a5160; font-size: 15px; margin: 0 0 8px; }
.apf-head-req { font-size: 14px !important; margin-top: 12px !important; }

/* ---------- progress */
.apf-progress { position: sticky; top: var(--apf-top, 0px); z-index: 20; background: rgba(245, 247, 250, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 12px 0 10px; margin-bottom: 14px; display: none; }
.apf-js .apf-progress { display: block; }
.apf-progress ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.apf-progress ol::-webkit-scrollbar { display: none; }
.apf-progress li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--s-mute, #687083); cursor: pointer; padding: 4px 2px; }
.apf-progress li[aria-disabled="true"] { cursor: default; }
.apf-dot { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c9d0db; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; background: #fff; transition: all .2s; }
.apf-step-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apf-progress li.is-done .apf-dot { background: var(--s-green, #0b7e3f); border-color: var(--s-green, #0b7e3f); color: #fff; }
.apf-progress li.is-current { color: var(--s-navy, #1a2b4a); font-weight: 600; }
.apf-progress li.is-current .apf-dot { border-color: var(--s-green, #0b7e3f); color: var(--s-green, #0b7e3f); box-shadow: 0 0 0 4px rgba(11, 126, 63, .15); }
.apf-bar { height: 4px; background: #e3e7ee; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.apf-bar span { display: block; height: 100%; width: 0; background: var(--s-green, #0b7e3f); transition: width .3s; }

/* ---------- sections */
.apf { margin: 0; }
.apf-sec { background: #fff; border: 1px solid var(--s-line, #e3e7ee); border-radius: 14px; padding: 26px 30px 24px; margin: 0 0 22px; min-width: 0; }
.apf-js .apf-sec { display: none; }
.apf-js .apf-sec.is-active { display: block; animation: apfIn .25s ease; }
@keyframes apfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.apf-sec > legend { float: left; width: 100%; padding: 0 0 14px; margin: 0 0 18px; border-bottom: 1px solid var(--s-line, #e3e7ee); font-family: Poppins, sans-serif; font-size: 21px; font-weight: 600; color: var(--s-navy, #1a2b4a); }
.apf-sec > legend + * { clear: both; }
.apf-eyebrow { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--s-green, #0b7e3f); font-weight: 600; margin-bottom: 2px; }
.apf-intro { color: #4a5160; font-size: 15px; }
.apf-sub { font-size: 17px; margin: 26px 0 10px; color: var(--s-green, #0b7e3f) !important; }
.apf-text p, .apf-text li { font-size: 15px; color: #3a404c; line-height: 1.65; text-align: justify; }
.apf-text ul { padding-left: 20px; margin: 0 0 12px; }
.apf-note { font-size: 13.5px; color: var(--s-mute, #687083); background: var(--s-soft, #f5f7fa); border-left: 3px solid #c9d0db; padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; }

/* ---------- fields */
.apf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
.apf-grid.apf-g3 { grid-template-columns: repeat(3, 1fr); }
.apf-grid.apf-g1 { grid-template-columns: 1fr; }
.apf-wide { grid-column: 1 / -1; }
.apf-field { min-width: 0; }
.apf-field > label:not(.apf-drop), .apf-label, .apf-group > legend, .apf-choice > legend, .apf-rep > legend { display: block; font-weight: 600; font-size: 14.5px; color: var(--s-ink, #21242b); margin: 0 0 6px; line-height: 1.4; border: 0; padding: 0; width: auto; }
.apf-hint { display: block; font-size: 13px; color: var(--s-mute, #687083); font-weight: 400; margin: -2px 0 6px; }
.apf-choice > legend .apf-hint, .apf-label .apf-hint, summary .apf-hint { display: inline; margin: 0; }
.apf-req { color: #d4161d; font-weight: 700; }
.apf input[type=text], .apf input[type=email], .apf input[type=tel], .apf input[type=url], .apf input[type=date], .apf input[type=number], .apf select, .apf textarea {
    width: 100%; height: auto; min-height: 46px; margin: 0; padding: 11px 14px; font-size: 15.5px; line-height: 1.4; color: var(--s-ink, #21242b); background: #fff;
    border: 1.5px solid #cfd5df; border-radius: 9px; box-shadow: none; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
.apf textarea { min-height: 96px; resize: vertical; }
.apf select { appearance: auto; }
.apf input:focus, .apf select:focus, .apf textarea:focus { outline: none; border-color: var(--s-green, #0b7e3f); box-shadow: 0 0 0 4px rgba(11, 126, 63, .14); }
.apf .has-err input:not([type=radio]):not([type=checkbox]), .apf .has-err select, .apf .has-err textarea, .apf [aria-invalid="true"] { border-color: #d4161d; }
.apf-err { color: #c0141a; font-size: 13.5px; margin: 6px 0 0; font-weight: 500; }
.apf-err:before { content: "\f071"; font-family: FontAwesome; margin-right: 6px; }
.apf-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.apf-group > .apf-grid { margin-bottom: 0; }
.apf-group .apf-field > label { font-weight: 500; font-size: 13.5px; color: #4a5160; }
.apf-sr, .apf-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- searchable country list */
.apf-combo { position: relative; }
.apf .apf-combo input { padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='%23687083' stroke-width='1.6'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='%23687083' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 13px center / 16px no-repeat; }
.apf-combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1.5px solid #cfd5df; border-radius: 10px; box-shadow: 0 14px 30px rgba(26, 43, 74, .14); }
.apf-combo-list li { padding: 9px 12px; border-radius: 7px; font-size: 15px; cursor: pointer; color: var(--s-ink, #21242b); }
.apf-combo-list li.is-active, .apf-combo-list li:hover { background: var(--s-green-l, #e8f4ee); color: #073d1f; }
.apf-combo-list li[aria-selected="true"] { font-weight: 600; }
.apf-combo-list li[aria-selected="true"]:after { content: "\f00c"; font-family: FontAwesome; float: right; color: var(--s-green, #0b7e3f); }
.apf-combo-list .apf-combo-empty { color: var(--s-mute, #687083); cursor: default; background: none !important; }

/* ---------- choices */
.apf-choice, .apf-matrix-row, .apf-rep { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.apf-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.apf-choice-list .apf-opts { flex-direction: column; }
.apf-opt { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.apf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apf-opt span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px 10px 12px; border: 1.5px solid #cfd5df; border-radius: 9px; background: #fff; font-size: 15px; line-height: 1.35; transition: all .15s; }
.apf-opt span:before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid #9aa3b2; border-radius: 50%; background: #fff; transition: all .15s; }
.apf-opt input[type=checkbox] + span:before { border-radius: 5px; }
.apf-opt input:checked + span { border-color: var(--s-green, #0b7e3f); background: var(--s-green-l, #e8f4ee); color: #073d1f; }
.apf-opt input:checked + span:before { border-color: var(--s-green, #0b7e3f); background: var(--s-green, #0b7e3f); box-shadow: inset 0 0 0 3px #fff; }
.apf-opt input[type=checkbox]:checked + span:before { box-shadow: none; background: var(--s-green, #0b7e3f) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.apf-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(11, 126, 63, .2); border-color: var(--s-green, #0b7e3f); }
.apf-opt:hover span { border-color: #9aa3b2; }
.apf-choice.has-err .apf-opt span, .apf-matrix-row.has-err .apf-opt span { border-color: #e7a1a3; }
.apf-opt-sm span { min-height: 38px; padding: 7px 12px 7px 9px; font-size: 14px; }
.apf-other { margin-top: 10px; max-width: 520px; display: none; }
.apf-other.is-on, .no-js .apf-other { display: block; }
.apf-other label { font-size: 13.5px; font-weight: 500; color: #4a5160; margin-bottom: 4px; display: block; }
.apf-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 15px; cursor: pointer; margin: 4px 0 14px; }
.apf-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--s-green, #0b7e3f); flex: 0 0 auto; }
.apf-declare { background: var(--s-green-l, #e8f4ee); border: 1.5px solid #b9dcc8; border-radius: 10px; padding: 14px 16px; margin: 16px 0 20px; }
.apf-declare.has-err { border-color: #d4161d; background: #fff4f4; }
.apf-copy { background: var(--s-soft, #f5f7fa); border-radius: 9px; padding: 10px 14px; display: inline-flex; }

/* ---------- matrix */
.apf-matrix { border: 1px solid var(--s-line, #e3e7ee); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.apf-matrix-head { display: grid; grid-template-columns: 1fr 260px; background: var(--s-green-l, #e8f4ee); font-weight: 600; font-size: 14px; color: #073d1f; padding: 10px 16px; }
.apf-matrix-row { display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 10px; padding: 12px 16px; margin: 0; border-top: 1px solid var(--s-line, #e3e7ee); }
.apf-matrix-row > legend { float: left; font-size: 15px; font-weight: 400; padding: 0; margin: 0; }
.apf-matrix-row .apf-err { grid-column: 1 / -1; }

/* ---------- owner cards (grid) */
.apf-cards { display: grid; gap: 14px; margin-bottom: 18px; }
.apf-card { border: 1px solid var(--s-line, #e3e7ee); border-radius: 12px; background: #fff; }
.apf-card > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15.5px; color: var(--s-navy, #1a2b4a); list-style: none; display: flex; align-items: center; gap: 8px; }
.apf-card > summary::-webkit-details-marker { display: none; }
.apf-card > summary:before { content: "\f067"; font-family: FontAwesome; color: var(--s-green, #0b7e3f); font-size: 13px; width: 16px; }
.apf-card[open] > summary:before { content: "\f068"; }
.apf-card[open] > summary { border-bottom: 1px solid var(--s-line, #e3e7ee); }
.apf-card > .apf-grid { padding: 16px 18px 2px; }

/* ---------- repeater */
.apf-rep-row { display: flex; gap: 12px; align-items: flex-end; padding: 14px; border: 1px dashed #cfd5df; border-radius: 10px; margin-bottom: 10px; background: #fcfdfe; }
.apf-rep-row .apf-grid { flex: 1; margin: 0; }
.apf-rep-row .apf-field > label { font-size: 13.5px; font-weight: 500; }
.apf-rep-n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--s-green-l, #e8f4ee); color: var(--s-green, #0b7e3f); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.apf-rep-del { flex: 0 0 auto; width: 40px; height: 46px; border: 1.5px solid #e3c4c5; background: #fff; color: #c0141a; border-radius: 9px; font-size: 22px; line-height: 1; cursor: pointer; }
.apf-rep-del:hover { background: #fff4f4; }
.apf-rep [data-rep-list] .apf-rep-row:only-child .apf-rep-del { visibility: hidden; }

/* ---------- supporting documents */
.apf-files-hint { background: var(--s-soft, #f5f7fa); padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.apf-docs { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--s-line, #e3e7ee); border-radius: 12px; overflow: hidden; }
.apf-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 14px 22px; padding: 16px 18px; border-top: 1px solid var(--s-line, #e3e7ee); align-items: start; }
.apf-doc:first-child { border-top: 0; }
.apf-doc.has-err { background: #fff8f8; }
.apf-doc-l { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--s-ink, #21242b); }
.apf-doc-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; background: var(--s-navy, #1a2b4a); color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.apf-doc-r { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.apf-status { display: flex; gap: 8px; flex-wrap: wrap; }
.apf-drop { position: relative; display: block; border: 1.5px dashed #b3bcca; border-radius: 10px; background: #fafbfc; padding: 12px 14px; margin: 0; cursor: pointer; transition: all .15s; font-weight: 400; }
.apf-drop:hover, .apf-drop.is-over { border-color: var(--s-green, #0b7e3f); background: var(--s-green-l, #e8f4ee); }
.apf-drop input[type=file] { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; cursor: pointer; width: 100%; }
.apf-drop-t { display: block; font-size: 14.5px; color: #3a404c; }
.apf-drop-t i { color: var(--s-green, #0b7e3f); margin-right: 4px; }
.apf-drop-list { display: block; font-size: 13px; color: #073d1f; }
.apf-drop-list span { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apf-drop-list span:before { content: "\f00c"; font-family: FontAwesome; margin-right: 6px; color: var(--s-green, #0b7e3f); }
.apf-drop.is-muted { opacity: .55; }
.apf-drop:focus-within { box-shadow: 0 0 0 4px rgba(11, 126, 63, .2); border-color: var(--s-green, #0b7e3f); }

/* ---------- signature */
.apf-sign { border-top: 1px solid var(--s-line, #e3e7ee); padding-top: 18px; margin-top: 8px; }
.apf-sign > .apf-field { margin-bottom: 16px; }
.apf-pad { position: relative; border: 1.5px solid #cfd5df; border-radius: 10px; background: #fff; max-width: 640px; touch-action: none; }
.apf-pad canvas { display: block; width: 100%; height: 190px; cursor: crosshair; border-radius: 10px; }
.apf-pad-line { position: absolute; left: 22px; right: 22px; bottom: 40px; border-top: 1px solid #c9d0db; font-size: 11px; color: #9aa3b2; padding-top: 4px; pointer-events: none; }
.apf-pad [data-sig-clear] { position: absolute; top: 8px; right: 8px; }
.has-err .apf-pad { border-color: #d4161d; }

.apf-stamp-row { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; max-width: 640px; }
.apf-stamp-drop { flex: 1 1 240px; display: flex; flex-direction: column; justify-content: center; min-height: 120px; text-align: center; }
.apf-stamp-drop[hidden] { display: none; }
.apf-stamp-prev { flex: 0 0 auto; margin: 0; text-align: center; border: 1.5px solid #cfd5df; border-radius: 10px; padding: 8px; background: #fff; }
.apf-stamp-prev[hidden] { display: none; }
.apf-stamp-prev canvas { display: block; width: 210px; height: 140px; border-radius: 6px; background: repeating-conic-gradient(#f1f3f6 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; }
.apf-stamp-prev figcaption { font-size: 12px; color: var(--s-mute, #687083); margin: 6px 0; }
.apf-stamp-none { margin: 12px 0 0; }

/* ---------- buttons, navigation */
.apf-btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 48px; padding: 12px 26px; border: 0; border-radius: 10px; background: var(--s-green, #0b7e3f); color: #fff !important; font-family: Poppins, sans-serif; font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none !important; text-transform: none; letter-spacing: normal; transition: background .15s, box-shadow .15s, transform .1s; line-height: 1.2; }
.apf-btn:hover, .apf-btn:focus { background: var(--s-green-d, #086632); box-shadow: 0 6px 16px rgba(11, 126, 63, .28); color: #fff; }
.apf-btn:active { transform: translateY(1px); }
.apf-btn:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.apf-btn-ghost { background: #fff; color: var(--s-navy, #1a2b4a) !important; border: 1.5px solid #cfd5df; }
.apf-btn-ghost:hover, .apf-btn-ghost:focus { background: var(--s-soft, #f5f7fa); color: var(--s-navy, #1a2b4a) !important; box-shadow: none; border-color: #9aa3b2; }
.apf-btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13.5px; }
.apf-btn-submit { background: #d4161d; }
.apf-btn-submit:hover, .apf-btn-submit:focus { background: #b01218; box-shadow: 0 6px 16px rgba(212, 22, 29, .28); }
.apf-btn[disabled] { opacity: .7; cursor: wait; }
.apf-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--s-line, #e3e7ee); padding-top: 20px; margin-top: 24px; }
.apf:not(.apf-js) .apf-nav [data-prev], .apf:not(.apf-js) .apf-nav [data-next] { display: none; }
.apf-alert { background: #fff4f4; border: 1.5px solid #f0b8ba; border-left: 5px solid #d4161d; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; color: #6d0b0f; font-size: 15px; }
.apf-alert ul { margin: 8px 0 0 18px; padding: 0; }
.apf-alert p { margin: 8px 0 0; }
.apf-alert:focus { outline: none; }
.apf-privacy { text-align: center; color: var(--s-mute, #687083); font-size: 13.5px; margin: 8px 0 0; }
.apf-privacy i { color: var(--s-green, #0b7e3f); }

/* ---------- confirmation */
.apf-done { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--s-line, #e3e7ee); border-radius: 16px; padding: 44px 40px 36px; text-align: center; box-shadow: 0 18px 40px rgba(26, 43, 74, .08); }
.apf-done-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--s-green, #0b7e3f); color: #fff; font-size: 36px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 0 0 10px var(--s-green-l, #e8f4ee); animation: apfPop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes apfPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.apf-done h2 { font-size: 25px; margin: 0 0 6px; }
.apf-done-form { color: var(--s-mute, #687083); }
.apf-ref { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; background: var(--s-soft, #f5f7fa); border: 1.5px dashed var(--s-green, #0b7e3f); border-radius: 12px; padding: 16px 22px; margin: 16px 0 18px; }
.apf-ref span { width: 100%; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--s-mute, #687083); }
.apf-ref strong { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 26px; letter-spacing: 1.5px; color: var(--s-navy, #1a2b4a); }
.apf-next { list-style: none; padding: 0; margin: 20px auto 26px; text-align: left; max-width: 520px; }
.apf-next li { padding: 8px 0 8px 30px; position: relative; color: #3a404c; font-size: 15px; }
.apf-next i { position: absolute; left: 0; top: 11px; color: var(--s-green, #0b7e3f); width: 20px; text-align: center; }
.apf-done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- update page (private link) */
.apf-request { background: #fff7f7; border-left: 4px solid #d4161d; border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 14px 0 6px; }
.apf-request p { margin: 4px 0 0 !important; color: var(--s-ink, #21242b) !important; font-size: 16px !important; line-height: 1.6; }
.apf-sec > .apf-field { margin-bottom: 24px; }
.apf-sec > .apf-field .apf-drop { margin-top: 2px; }
.apf-edit { margin-top: 8px; }
.apf-edit-body { padding: 4px 18px 8px; }
.apf-done-icon-warn { background: #b26a00; box-shadow: 0 0 0 10px #fff3df; }

.apf-preview { background: #fff7e0; border: 1px solid #f0d58a; border-left: 5px solid #d99a00; border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; color: #5b4300; font-size: 14.5px; }
.apf-preview i { color: #b07d00; margin-right: 4px; }

.apf-captcha { margin: 22px 0 4px; }
.apf-captcha .g-recaptcha { display: inline-block; min-height: 78px; border-radius: 4px; }
.apf-captcha.has-err .g-recaptcha { outline: 2px solid #d4161d; outline-offset: 2px; }

.apf-head p a, .apf-text a, .apf-note a { color: var(--s-green, #0b7e3f); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; word-break: break-word; }
.apf-head p a:hover, .apf-text a:hover, .apf-note a:hover { color: var(--s-green-d, #086632); }

/* ---------- tablet / mobile */
@media (max-width: 991px) {
    .apf-doc { grid-template-columns: 1fr; }
    .apf-step-t { display: none; }
    .apf-progress li.is-current .apf-step-t { display: inline; }
    .apf-progress li { flex: 0 0 auto; }
    .apf-progress li.is-current { flex: 1 1 auto; }
}
@media (max-width: 767px) {
    .apply-page { padding: 24px 0 40px; }
    .apf-head, .apf-sec { padding: 20px 16px; border-radius: 12px; }
    .apf-head h2 { font-size: 20px; }
    .apf-sec > legend { font-size: 18px; }
    .apf-grid, .apf-grid.apf-g3 { grid-template-columns: 1fr; gap: 14px; }
    .apf-matrix-head { display: none; }
    .apf-matrix-row { grid-template-columns: 1fr; }
    .apf-rep-row { flex-wrap: wrap; }
    .apf-rep-row .apf-grid { flex-basis: 100%; order: 2; }
    .apf-rep-del { order: 1; margin-left: auto; height: 36px; }
    .apf-nav { position: sticky; bottom: 0; background: #fff; margin: 20px -16px -20px; padding: 12px 16px; border-radius: 0 0 12px 12px; box-shadow: 0 -6px 16px rgba(0, 0, 0, .06); }
    .apf-nav .apf-btn { flex: 1; padding: 12px 14px; }
    .apf-done { padding: 30px 18px; }
    .apf-ref strong { font-size: 20px; }
    .apf-pad canvas { height: 160px; }
    /* the site's floating buttons stay above the sticky Back / Continue bar */
    .go-top, .custom_footer_link { bottom: 86px !important; }
}
.apf-print-head { display: none; }
@media print {
    .site-alert, .site-header, .footer, .page-title, .page-breadcrumbs, .go-top, .custom_footer_link, .apf-done-actions, [data-copy], .ai-widget, [class*="ai-"] { display: none !important; }
    .apply-page a[href]:after, .apply-page abbr[title]:after { content: "" !important; }
    .apply-page { background: #fff; padding: 0; }
    .apf-print-head { display: block; margin: 0 0 18px; }
    .apf-print-head img { width: 100%; height: auto; }
    .apf-done { box-shadow: none; border: 0; padding: 10px 0 0; }
    .apf-done-icon, .apf-ref { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none; }
    .apf-done-icon i { color: #fff !important; }
}
@media (prefers-reduced-motion: reduce) { .apf-js .apf-sec.is-active, .apf-done-icon { animation: none; } }
