.admf-wrap {
    /*PIMT brand colours (client-specified)*/
    --admf-navy: #004582;
    --admf-navy-dark: #004582;
    --admf-maroon: #c5373c;
    --admf-maroon-dark: #a32c31;
    --admf-bg-soft: #f4f6f8;
    --admf-border: #dde3ea;
    --admf-text-muted: #6b7686;
    max-width: 1180px;
    margin: 0 auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #16202c;
}

.admf-wrap h1,
.admf-wrap h2,
.admf-wrap h3,
.admf-vstep-title,
.admf-summary-title,
.admf-level-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/*---------- Shell layout ----------*/

.admf-shell {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.admf-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
}

.admf-main {
    flex: 1 1 600px;
    min-width: 0;
}

/*---------- Sidebar card ----------*/

.admf-side-card {
    background: var(--admf-navy-dark);
    color: #fff;
    border-radius: 14px;
    padding: 26px 22px;
}

.admf-steps-vert {
    display: flex;
    flex-direction: column;
}

.admf-vstep {
    display: flex;
    gap: 14px;
    cursor: pointer;
    padding-bottom: 4px;
}

.admf-vstep-line-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 32px;
}

.admf-vstep-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #9fb3c8;
    flex-shrink: 0;
    transition: all .15s ease;
}

.admf-vstep-line {
    width: 2px;
    flex: 1;
    background: rgba(255,255,255,0.14);
    margin: 4px 0;
    min-height: 28px;
}

.admf-vstep-text {
    padding-top: 3px;
    padding-bottom: 22px;
}

.admf-vstep-title {
    font-weight: 700;
    font-size: 15px;
    color: #8ea3ba;
    transition: color .15s ease;
}

.admf-vstep-sub {
    font-size: 12px;
    color: #64789180;
    margin-top: 2px;
}

.admf-vstep:hover .admf-vstep-dot {
    border-color: rgba(255,255,255,0.4);
}

.admf-vstep.active .admf-vstep-dot {
    background: var(--admf-maroon);
    border-color: var(--admf-maroon);
    color: #fff;
}

.admf-vstep.active .admf-vstep-title {
    color: #fff;
}

.admf-vstep.active .admf-vstep-sub {
    color: #a9bdd3;
}

.admf-vstep.done .admf-vstep-dot {
    background: transparent;
    border-color: var(--admf-maroon);
    color: var(--admf-maroon);
}

.admf-vstep.done .admf-vstep-line {
    background: var(--admf-maroon);
}

.admf-vstep.done .admf-vstep-title {
    color: #d7e0ea;
}

.admf-side-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 0 18px;
}

.admf-side-summary {
    margin-bottom: 4px;
}

.admf-sb-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    color: #a9b3c1;
    gap: 12px;
}

.admf-sb-row strong {
    color: #fff;
    text-align: right;
}

.admf-progress-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: #7f93a5;
    margin-bottom: 8px;
}

.admf-progress-bar {
    background: rgba(255,255,255,0.12);
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
}

.admf-progress-fill {
    background: var(--admf-maroon);
    height: 100%;
    width: 0;
    transition: width .25s ease;
}

.admf-progress-pct {
    text-align: right;
    font-size: 12px;
    margin-top: 6px;
    color: #e8919380;
    font-weight: 600;
}

.admf-side-help {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 4px;
}

.admf-side-help a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--admf-navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.admf-side-help a:hover {
    text-decoration: underline;
}

.admf-help-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--admf-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.admf-wa-icon {
    border-color: #25d366;
    color: #25d366;
}

.admf-side-whatsapp {
    color: #1e9e56;
}

/*---------- Step content ----------*/

.admf-step h2 {
    font-size: 26px;
    margin: 0 0 6px;
    color: var(--admf-navy);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admf-sub {
    color: var(--admf-text-muted);
    margin: 0 0 24px;
}

.admf-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #33404f;
}

.admf-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--admf-border);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    font-family: inherit;
}

.admf-input:focus {
    outline: none;
    border-color: var(--admf-navy);
    box-shadow: 0 0 0 3px rgba(0, 69, 130, .1);
}

.admf-hint {
    color: #8a97a8;
    font-size: 12px;
    margin: 6px 0 0;
}

.admf-hint-warn {
    color: var(--admf-maroon);
    font-weight: 600;
}

.admf-field {
    margin-bottom: 20px;
}

.admf-field-sm {
    max-width: 100px;
}

.admf-row {
    margin-bottom: 20px;
}

.admf-row-2 {
    display: flex;
    gap: 20px;
}

.admf-row-3 {
    display: flex;
    gap: 16px;
}

.admf-row-2 .admf-field, .admf-row-3 .admf-field {
    flex: 1;
    margin-bottom: 0;
}

.admf-level-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.admf-level-card {
    flex: 1 1 150px;
    border: 2px solid var(--admf-border);
    border-radius: 10px;
    padding: 24px 16px 18px;
    text-align: center;
    cursor: pointer;
    transition: all .15s ease;
    background: #fff;
}

.admf-level-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admf-navy);
}

.admf-level-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admf-level-card:hover {
    border-color: var(--admf-navy);
}

.admf-level-card.selected {
    border-color: var(--admf-maroon);
    background: linear-gradient(180deg, #fdf1f0, #ffffff);
}

.admf-level-title {
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--admf-navy);
}

.admf-level-sub {
    color: var(--admf-text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.admf-level-count {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--admf-navy);
    background: var(--admf-bg-soft);
    border-radius: 20px;
    padding: 3px 12px;
}

.admf-level-card.selected .admf-level-count {
    background: #fff;
    color: var(--admf-maroon);
}

/*---------- Phone picker ----------*/

.admf-phone-row {
    display: flex;
    gap: 10px;
}

.admf-phone-picker {
    position: relative;
    flex: 0 0 130px;
}

.admf-phone-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid var(--admf-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.admf-phone-flag-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.admf-phone-caret {
    margin-left: auto;
    color: var(--admf-text-muted);
    font-size: 11px;
}

.admf-phone-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 260px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--admf-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 20;
}

.admf-phone-picker.open .admf-phone-dropdown {
    display: block;
}

.admf-phone-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
}

.admf-phone-option:hover {
    background: var(--admf-bg-soft);
}

.admf-phone-opt-name {
    flex: 1;
    color: #33404f;
}

.admf-phone-opt-code {
    color: var(--admf-text-muted);
}

.admf-phone-number {
    flex: 1;
}

.admf-fee-box {
    background: var(--admf-bg-soft);
    border-left: 3px solid var(--admf-maroon);
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
    letter-spacing: .3px;
    color: #4a5568;
}

.admf-fee-box strong {
    font-size: 18px;
    color: var(--admf-navy);
}

.admf-edu-row {
    position: relative;
    border: 1px solid var(--admf-border);
    border-radius: 8px;
    padding: 20px 20px 4px;
    margin-bottom: 16px;
    background: #fafbfc;
}

.admf-edu-remove {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--admf-text-muted);
    cursor: pointer;
}

.admf-edu-remove:hover {
    color: var(--admf-maroon);
}

.admf-checkbox-field label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    cursor: pointer;
}

.admf-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid #eef1f4;
    padding-top: 20px;
}

.admf-btn {
    padding: 12px 26px;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .3px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: inherit;
}

.admf-btn-primary {
    background: var(--admf-maroon);
    color: #fff;
}

.admf-btn-primary:hover {
    background: var(--admf-maroon-dark);
}

.admf-btn-secondary {
    background: #fff;
    color: var(--admf-navy);
    border: 1px solid var(--admf-border);
}

.admf-btn-outline {
    background: none;
    border: 1px dashed var(--admf-navy);
    color: var(--admf-navy);
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-family: inherit;
}

.admf-btn-outline:hover {
    background: var(--admf-bg-soft);
}

.admf-btn-submit {
    width: auto;
}

/*---------- Messages ----------*/

.admf-msg {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.admf-msg.error {
    background: #fdecec;
    color: #b3261e;
}

.admf-msg.success {
    background: #e7f7ee;
    color: #1e7a4a;
}

/*---------- Review: application summary card ----------*/

.admf-summary-card {
    background: var(--admf-bg-soft);
    border-radius: 12px;
    padding: 26px 28px;
    margin-bottom: 24px;
}

.admf-summary-title {
    font-size: 19px;
    font-weight: 800;
    color: #16202c;
    margin-bottom: 18px;
}

.admf-summary-section {
    margin-bottom: 22px;
}

.admf-summary-section:last-child {
    margin-bottom: 0;
}

.admf-summary-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.admf-summary-section-head span {
    color: var(--admf-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.admf-edit-link {
    color: var(--admf-maroon);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.admf-edit-link:hover {
    text-decoration: underline;
}

.admf-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    gap: 20px;
}

.admf-summary-row span:first-child {
    color: var(--admf-text-muted);
    flex-shrink: 0;
}

.admf-summary-row strong {
    text-align: right;
    color: #16202c;
}

.admf-summary-divider {
    height: 1px;
    background: var(--admf-border);
    margin: 20px 0;
}

@media (max-width: 900px) {
    .admf-shell {
        flex-direction: column;
    }

    .admf-sidebar {
        flex: 1 1 auto;
        width: 100%;
        position: static;
    }
}

@media (max-width: 760px) {
    .admf-row-2, .admf-row-3 {
        flex-direction: column;
        gap: 0;
    }

    .admf-row-2 .admf-field, .admf-row-3 .admf-field {
        margin-bottom: 20px;
    }
}

/*v1.4 enhancements*/

.admf-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.admf-captcha-wrap {
    margin: 20px 0;
    display: flex;
    justify-content: flex-end;
}

.admf-input.admf-invalid {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 3px rgba(198,40,40,.12) !important;
}

.admf-success-card {
    max-width: 680px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #dbe4ec;
    border-radius: 18px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 14px 38px rgba(0,69,130,.10);
}

.admf-success-card h2 {
    color: #004582;
    font-size: 30px;
    margin: 12px 0;
}

.admf-success-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5ec;
    color: #16833c;
    font-size: 34px;
    font-weight: 800;
}

.admf-reference-box {
    background: #f2f7fb;
    border: 1px dashed #004582;
    border-radius: 12px;
    margin: 25px auto;
    padding: 18px;
    max-width: 380px;
}

.admf-reference-box span {
    display: block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    color: #66788a;
}

.admf-reference-box strong {
    display: block;
    color: #004582;
    font-size: 25px;
    margin-top: 5px;
}

.admf-checkbox-field a {
    color: #004582;
    text-decoration: underline;
}

@media (max-width:600px) {
    .admf-success-card {
        padding: 28px 20px;
    }

    .admf-captcha-wrap {
        justify-content: flex-start;
        transform: scale(.9);
        transform-origin: left center;
    }
}

/*v1.4.1 programme icons, typography, and success actions*/

.admf-level-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.admf-success-email {
    margin-bottom: 8px;
}

.admf-success-support {
    max-width: 500px;
    margin: 24px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--admf-border);
}

.admf-success-support-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #253342;
}

.admf-success-contact-list {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.admf-success-contact-link {
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--admf-border);
    border-radius: 9px;
    color: var(--admf-navy);
    background: #fff;
    text-decoration: none;
    text-align: left;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.admf-success-contact-link:hover {
    border-color: var(--admf-navy);
    background: var(--admf-bg-soft);
    transform: translateY(-1px);
}

.admf-success-contact-link svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admf-success-contact-link span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admf-success-contact-link small {
    color: var(--admf-text-muted);
    font-size: 11px;
    line-height: 1.2;
}

.admf-success-contact-link strong {
    color: var(--admf-navy);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admf-success-actions {
    margin-top: 24px;
}

.admf-success-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 150px;
}

.admf-success-home:hover {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .admf-level-card {
        min-height: 150px;
    }

    .admf-success-contact-list {
        flex-direction: column;
    }

    .admf-success-contact-link {
        width: 100%;
        box-sizing: border-box;
    }
}

/*v1.4.2 mobile UX*/

.admf-side-summary-toggle > summary {
    display: none;
}

.admf-level-card.is-unavailable {
    cursor: not-allowed;
    opacity: .52;
    background: #f7f9fb;
    border-color: #e4e9ef;
}

.admf-level-card.is-unavailable:hover {
    border-color: #e4e9ef;
}

@media (max-width: 900px) {
    /*Let the help block become a sibling flex item, so it can sit after the form.*/

    .admf-sidebar {
        display: contents;
    }

    .admf-side-card {
        order: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .admf-main {
        order: 2;
        width: 100%;
        flex: 0 1 auto;
    }

    .admf-side-help {
        order: 3;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .admf-shell {
        gap: 0;
    }

    .admf-side-card {
        border-radius: 12px;
        padding: 18px;
        margin-bottom: 26px;
    }

    /*Show only the current stage instead of repeating all four stages.*/

    .admf-steps-vert .admf-vstep {
        display: none;
    }

    .admf-steps-vert .admf-vstep.active {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0;
        cursor: default;
    }

    .admf-vstep-line-wrap {
        flex: 0 0 38px;
    }

    .admf-vstep-dot {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .admf-vstep-line {
        display: none;
    }

    .admf-vstep-text {
        padding: 0;
        min-width: 0;
    }

    .admf-vstep-title {
        font-size: 16px;
    }

    .admf-vstep-sub {
        font-size: 12px;
        margin-top: 3px;
        color: #b6c7d8 !important;
    }

    .admf-side-card > .admf-side-divider {
        display: none;
    }

    .admf-side-summary-toggle {
        margin-top: 16px;
        border-top: 1px solid rgba(255,255,255,.14);
        border-bottom: 1px solid rgba(255,255,255,.14);
    }

    .admf-side-summary-toggle > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        color: #dbe7f1;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .02em;
        cursor: pointer;
        list-style: none;
    }

    .admf-side-summary-toggle > summary::-webkit-details-marker {
        display: none;
    }

    .admf-side-summary-toggle > summary::after {
        content: "+";
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
        color: #fff;
    }

    .admf-side-summary-toggle[open] > summary::after {
        content: "−";
    }

    .admf-side-summary {
        padding-bottom: 8px;
        margin-bottom: 0;
    }

    .admf-sb-row {
        padding: 6px 0;
        font-size: 12px;
    }

    .admf-sb-row strong {
        max-width: 62%;
        overflow-wrap: anywhere;
    }

    .admf-progress-label {
        margin-top: 15px;
        margin-bottom: 6px;
        font-size: 10px;
    }

    .admf-progress-bar {
        height: 5px;
    }

    .admf-progress-pct {
        margin-top: 5px;
        font-size: 11px;
        color: #f0a7aa;
    }

    /*Contact choices are more useful after the user finishes the current form step.*/

    .admf-side-help {
        margin: 24px 0 0;
        padding: 18px 2px 0;
        border-top: 1px solid var(--admf-border);
        gap: 12px;
    }

    .admf-side-help a {
        min-height: 40px;
        font-size: 13px;
        line-height: 1.35;
    }

    .admf-help-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .admf-step h2 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 7px;
    }

    .admf-sub {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /*Compact horizontal cards use less height and keep icons consistent.*/

    .admf-level-cards {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 22px;
    }

    .admf-level-card, .admf-level-card.is-unavailable {
        min-height: 0;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 2px;
        align-items: center;
        justify-items: stretch;
        padding: 14px;
        text-align: left;
        border-width: 1.5px;
    }

    .admf-level-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .admf-level-icon svg {
        width: 31px;
        height: 31px;
    }

    .admf-level-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 15px;
    }

    .admf-level-sub {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        font-size: 12px;
        line-height: 1.35;
    }

    .admf-level-count {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        margin: 0;
        padding: 4px 9px;
        white-space: nowrap;
        font-size: 10px;
    }

    .admf-field {
        margin-bottom: 18px;
    }

    .admf-label {
        font-size: 13px;
        margin-bottom: 7px;
    }

    .admf-input {
        min-height: 46px;
        padding: 11px 12px;
        font-size: 16px;
    }

    textarea.admf-input {
        min-height: 130px;
        line-height: 1.45;
    }

    .admf-hint {
        font-size: 12px;
        line-height: 1.45;
    }

    .admf-phone-row {
        gap: 8px;
    }

    .admf-phone-picker {
        flex-basis: 112px;
    }

    .admf-phone-trigger {
        min-height: 46px;
        padding: 10px;
    }

    .admf-phone-dropdown {
        width: min(280px, calc(100vw - 36px));
    }

    .admf-edu-row {
        padding: 18px 13px 2px;
        margin-bottom: 14px;
    }

    #admf_add_education {
        width: 100%;
        min-height: 46px;
    }

    .admf-summary-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .admf-summary-title {
        font-size: 19px;
        margin-bottom: 20px;
    }

    .admf-summary-section {
        margin-bottom: 24px;
    }

    .admf-summary-row {
        font-size: 14px;
        line-height: 1.45;
        padding: 7px 0;
        gap: 12px;
    }

    .admf-summary-row span:first-child {
        max-width: 42%;
    }

    .admf-summary-row strong {
        max-width: 58%;
        overflow-wrap: anywhere;
    }

    .admf-checkbox-field {
        margin-bottom: 10px;
    }

    .admf-checkbox-field label {
        min-height: 44px;
        gap: 12px;
        font-size: 14px;
        line-height: 1.45;
        padding: 7px 0;
    }

    .admf-checkbox-field input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin: 1px 0 0;
        flex: 0 0 20px;
        accent-color: var(--admf-navy);
    }

    .admf-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
        gap: 12px;
        margin-top: 24px;
        padding-top: 18px;
    }

    .admf-actions > span:empty {
        display: none;
    }

    .admf-step[data-step="1"] .admf-actions {
        grid-template-columns: 1fr;
    }

    .admf-btn {
        min-height: 46px;
        width: 100%;
        padding: 12px 14px;
        font-size: 13px;
    }

    .admf-step[data-step="4"] .admf-actions {
        grid-template-columns: 1fr;
    }

    .admf-step[data-step="4"] .admf-btn-submit {
        order: -1;
        width: 100%;
    }

    .admf-captcha-wrap {
        overflow: hidden;
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .admf-level-card, .admf-level-card.is-unavailable {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .admf-level-count {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
        margin-top: 5px;
    }
}

/*
 * Clean, calm application form interface (v1.8.5).
 * Visual-only update: no form fields, validation or workflow behaviour changed.
 */

.admf-wrap {
    --admf-primary: #004582;
    --admf-primary-dark: #003665;
    --admf-primary-soft: #edf5fb;
    --admf-surface: #ffffff;
    --admf-surface-soft: #f7f9fb;
    --admf-border-clean: #dfe6ed;
    --admf-text-clean: #17212b;
    --admf-muted-clean: #667485;
    padding: 28px 18px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.admf-wrap, .admf-wrap button, .admf-wrap input, .admf-wrap select, .admf-wrap textarea {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.admf-shell {
    gap: 30px;
}

.admf-main {
    background: var(--admf-surface);
    border: 1px solid var(--admf-border-clean);
    border-radius: 18px;
    padding: 38px 42px;
    box-shadow: 0 12px 36px rgba(16, 42, 67, .07);
}

.admf-side-card {
    background: linear-gradient(155deg, #003a6d 0%, #004582 58%, #075b99 100%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 12px 28px rgba(0, 69, 130, .16);
}

.admf-vstep-dot {
    font-weight: 600;
    background: rgba(255,255,255,.08);
    border-width: 1.5px;
}

.admf-vstep-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.admf-vstep-sub {
    line-height: 1.4;
    color: rgba(220,234,246,.63);
}

.admf-vstep.active .admf-vstep-dot, .admf-vstep.done .admf-vstep-dot {
    background: #fff;
    border-color: #fff;
    color: var(--admf-primary);
}

.admf-vstep.done .admf-vstep-line, .admf-progress-fill {
    background: #fff;
}

.admf-vstep.done .admf-vstep-title, .admf-vstep.active .admf-vstep-title {
    color: #fff;
}

.admf-progress-label, .admf-progress-pct {
    color: rgba(255,255,255,.74);
    font-weight: 500;
}

.admf-progress-bar {
    height: 7px;
    background: rgba(255,255,255,.16);
}

.admf-sb-row {
    color: rgba(232,241,249,.72);
    font-weight: 400;
}

.admf-sb-row strong {
    font-weight: 600;
}

.admf-side-help {
    margin-top: 20px;
    padding: 0 6px;
}

.admf-side-help a, .admf-side-whatsapp, .admf-wa-icon {
    color: var(--admf-primary);
    font-weight: 500;
}

.admf-help-icon, .admf-wa-icon {
    border-color: var(--admf-primary);
    color: var(--admf-primary);
}

.admf-step h2 {
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.2;
    margin-bottom: 9px;
    font-weight: 600;
    letter-spacing: -.025em;
    color: var(--admf-text-clean);
}

.admf-sub {
    max-width: 720px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--admf-muted-clean);
}

.admf-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #273646;
}

.admf-input, .admf-phone-trigger {
    min-height: 48px;
    border: 1px solid var(--admf-border-clean);
    border-radius: 10px;
    background: #fff;
    color: var(--admf-text-clean);
    font-size: 14px;
    font-weight: 400;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admf-input {
    padding: 12px 14px;
}

.admf-input::placeholder {
    color: #98a4b2;
    opacity: 1;
}

.admf-input:hover, .admf-phone-trigger:hover {
    border-color: #bdcad7;
}

.admf-input:focus, .admf-phone-trigger:focus-visible {
    outline: none;
    border-color: var(--admf-primary);
    box-shadow: 0 0 0 4px rgba(0, 69, 130, .10);
}

textarea.admf-input {
    min-height: 126px;
    line-height: 1.55;
    resize: vertical;
}

select.admf-input {
    cursor: pointer;
}

.admf-hint {
    color: #7c8997;
    line-height: 1.5;
}

.admf-hint-warn {
    font-weight: 500;
}

.admf-field {
    margin-bottom: 22px;
}

.admf-row {
    margin-bottom: 22px;
}

.admf-level-cards {
    gap: 14px;
    margin-bottom: 28px;
}

.admf-level-card {
    min-height: 166px;
    border: 1px solid var(--admf-border-clean);
    border-radius: 14px;
    padding: 22px 16px 18px;
    box-shadow: 0 3px 12px rgba(18, 45, 70, .035);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.admf-level-card:hover {
    transform: translateY(-2px);
    border-color: #9ebad2;
    box-shadow: 0 10px 24px rgba(0, 69, 130, .09);
}

.admf-level-card.selected {
    border-color: var(--admf-primary);
    background: var(--admf-primary-soft);
    box-shadow: 0 0 0 3px rgba(0, 69, 130, .08);
}

.admf-level-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--admf-primary-soft);
    color: var(--admf-primary);
}

.admf-level-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.65;
}

.admf-level-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--admf-text-clean);
}

.admf-level-sub {
    font-size: 12px;
    line-height: 1.45;
    color: var(--admf-muted-clean);
}

.admf-level-count {
    margin-top: 11px;
    background: #eef2f6;
    color: var(--admf-primary);
    font-weight: 500;
}

.admf-level-card.selected .admf-level-count {
    background: #fff;
    color: var(--admf-primary);
}

.admf-phone-dropdown {
    border-color: var(--admf-border-clean);
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(16, 42, 67, .16);
}

.admf-phone-option {
    padding: 10px 14px;
}

.admf-phone-option:hover {
    background: var(--admf-primary-soft);
}

.admf-fee-box {
    margin-top: 18px;
    padding: 17px 20px;
    border: 1px solid #d7e6f2;
    border-left: 4px solid var(--admf-primary);
    border-radius: 10px;
    background: var(--admf-primary-soft);
    letter-spacing: 0;
}

.admf-fee-box strong {
    font-size: 18px;
    font-weight: 600;
    color: var(--admf-primary);
}

.admf-edu-row {
    border-color: var(--admf-border-clean);
    border-radius: 14px;
    padding: 24px 22px 5px;
    background: var(--admf-surface-soft);
}

.admf-edu-remove {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #758393;
    font-weight: 400;
}

.admf-edu-remove:hover {
    background: #fff;
    color: #b42318;
}

.admf-actions {
    margin-top: 34px;
    padding-top: 24px;
    border-top-color: #e8edf2;
}

.admf-btn {
    min-height: 46px;
    padding: 11px 24px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.admf-btn:focus-visible {
    outline: 3px solid rgba(0,69,130,.2);
    outline-offset: 2px;
}

.admf-btn-primary {
    background: var(--admf-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,69,130,.16);
}

.admf-btn-primary:hover {
    background: var(--admf-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(0,69,130,.20);
}

.admf-btn-secondary {
    border-color: #cbd5df;
    border-radius: 9px;
    color: var(--admf-primary);
}

.admf-btn-secondary:hover {
    border-color: var(--admf-primary);
    background: var(--admf-primary-soft);
}

.admf-btn-outline {
    min-height: 44px;
    border: 1px solid #a9bfd3;
    border-radius: 9px;
    color: var(--admf-primary);
    font-weight: 600;
    text-transform: none;
}

.admf-btn-outline:hover {
    border-color: var(--admf-primary);
    background: var(--admf-primary-soft);
}

.admf-msg {
    border-radius: 10px;
    line-height: 1.5;
}

.admf-summary-card {
    border: 1px solid var(--admf-border-clean);
    border-radius: 14px;
    background: var(--admf-surface-soft);
    padding: 28px;
}

.admf-summary-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--admf-text-clean);
}

.admf-summary-section-head span, .admf-edit-link {
    color: var(--admf-primary);
    font-weight: 600;
}

.admf-summary-row strong {
    font-weight: 500;
    color: var(--admf-text-clean);
}

.admf-checkbox-field label {
    font-weight: 400;
    line-height: 1.55;
    color: #3e4c5a;
}

.admf-checkbox-field input[type="checkbox"] {
    accent-color: var(--admf-primary);
}

.admf-success-card {
    border-color: var(--admf-border-clean);
    box-shadow: 0 18px 46px rgba(0,69,130,.10);
}

.admf-success-card h2, .admf-reference-box strong {
    color: var(--admf-primary);
}

@media (max-width: 900px) {
    .admf-wrap {
        padding: 20px 14px;
    }

    .admf-main {
        padding: 32px 28px;
    }
}

@media (max-width: 600px) {
    .admf-wrap {
        padding: 12px 10px 24px;
    }

    .admf-main {
        padding: 26px 18px;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(16,42,67,.06);
    }

    .admf-side-card {
        border-radius: 14px;
        padding: 18px;
    }

    .admf-level-card, .admf-level-card.is-unavailable {
        border-radius: 12px;
    }

    .admf-level-icon {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .admf-level-icon svg {
        width: 27px;
        height: 27px;
    }

    .admf-btn {
        font-size: 14px;
    }

    .admf-summary-card {
        padding: 20px 16px;
    }
}

/*
 * v1.8.6 desktop width correction.
 * Break the form out of narrow theme content columns and use the plugin's intended width,
 * while keeping the existing responsive/mobile layout unchanged.
 */

@media (min-width: 901px) {
    .admf-wrap {
        width: min(1180px, calc(100vw - 40px));
        max-width: none;
        margin-left: 50%;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
}

/*v1.9 accessibility, searchable phone picker and printable summary*/

.admf-field-error {
    margin-top: 7px;
    color: #b42318;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.admf-input[aria-invalid="true"] {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 3px rgba(217,45,32,.12) !important;
}

.admf-phone-search-wrap {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    z-index: 2;
}

.admf-phone-search {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 10px;
    font: inherit;
}

.admf-phone-option[hidden] {
    display: none !important;
}

.admf-phone-option:focus {
    outline: 2px solid var(--admf-primary,#004582);
    outline-offset: -2px;
    background: #eff6ff;
}

/*WhatsApp preference*/

.admf-whatsapp-preference {
    margin: -8px 0 24px;
    padding: 16px 18px;
    border: 1px solid #dbe5ec;
    border-radius: 12px;
    background: #f8fbfd;
}

.admf-whatsapp-preference .admf-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.admf-whatsapp-preference .admf-check input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.admf-whatsapp-alt {
    margin: 14px 0 12px;
}

.admf-whatsapp-alt[hidden] {
    display: none !important;
}

.admf-whatsapp-consent {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4ebf0;
}

.admf-success-actions {
    flex-wrap: wrap;
}

@media (max-width:640px) {
    .admf-whatsapp-preference {
        padding: 14px;
    }

    .admf-success-actions .admf-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/*Administrator-defined lightweight custom fields (v1.9.12).*/

.admf-custom-slot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 22px 0;
}

.admf-custom-slot:empty {
    display: none;
}

.admf-custom-field {
    margin: 0;
}

.admf-custom-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #f9fbff;
    color: #263957;
}

.admf-custom-check input {
    margin-top: 3px;
}

.admf-required-mark {
    color: #bd2535;
    font-weight: 700;
}

.admf-custom-field .admf-field-error {
    margin-top: 7px;
}

/*Guided database-backed custom fields (v1.11.0).*/

.admf-custom-slot {
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: start;
}

.admf-custom-width-full {
    grid-column: 1/-1;
}

.admf-custom-width-half {
    grid-column: auto;
}

.admf-custom-options {
    display: grid;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #fff;
}

.admf-custom-options:focus {
    outline: 2px solid var(--admf-primary,#004582);
    outline-offset: 2px;
}

.admf-custom-options.admf-invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217,45,32,.12);
}

.admf-custom-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 500;
    line-height: 1.45;
    color: #263957;
    cursor: pointer;
}

.admf-custom-option input {
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--admf-primary,#004582);
}

.admf-custom-help {
    margin: 7px 0 0;
}

.admf-custom-type-checkbox.admf-custom-width-half {
    align-self: end;
}

@media (max-width:700px) {
    .admf-custom-slot {
        grid-template-columns: 1fr;
    }

    .admf-custom-width-full, .admf-custom-width-half {
        grid-column: 1/-1;
    }
}

[data-admf-custom-field][hidden] {
    display: none !important;
}

/*v1.11.3 simplified confirmation*/

.admf-success-simple {
    max-width: 620px;
    text-align: center;
}

.admf-success-simple .admf-reference-box {
    margin: 24px auto 18px;
}

.admf-success-simple .admf-success-next {
    margin: 12px 0 0;
    color: #52637a;
}

.admf-success-simple .admf-success-actions {
    justify-content: center;
    margin-top: 24px;
}

.admf-success-simple .admf-success-home {
    min-width: 170px;
}

/*v1.12.4 validated step navigation, compact mobile programmes and support cards*/

.admf-vstep.locked {
    cursor: not-allowed;
    opacity: .52;
}

.admf-vstep.locked:hover .admf-vstep-dot {
    border-color: rgba(255,255,255,.18);
}

.admf-vstep:focus-visible {
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 4px;
    border-radius: 8px;
}

.admf-side-help {
    gap: 10px;
    padding: 0;
}

.admf-side-help-title {
    margin: 0 2px 2px;
    font-size: 12px;
    font-weight: 700;
    color: #263957;
}

.admf-side-help .admf-support-card {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d9e2ec;
    border-radius: 11px;
    background: #fff;
    color: var(--admf-primary, #004582);
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(16,42,67,.035);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.admf-side-help .admf-support-card:hover {
    border-color: #9ebad2;
    background: #f8fbfe;
    box-shadow: 0 8px 20px rgba(0,69,130,.09);
    transform: translateY(-1px);
    text-decoration: none;
}

.admf-side-help .admf-support-card:focus-visible {
    outline: 3px solid rgba(0,69,130,.18);
    outline-offset: 2px;
}

.admf-support-card-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf5fb;
    color: var(--admf-primary, #004582);
}

.admf-support-card-whatsapp .admf-support-card-icon {
    background: #eef9f2;
    color: #1b8f4d;
}

.admf-support-card-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admf-support-card-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.admf-support-card-copy small {
    margin-bottom: 3px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;
    color: #7a8796;
}

.admf-support-card-copy strong {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--admf-primary, #004582);
    overflow-wrap: anywhere;
}

.admf-support-card-whatsapp .admf-support-card-copy strong {
    color: #1b7f47;
}

@media (max-width: 600px) {
    .admf-side-help {
        margin-top: 24px;
        padding: 18px 0 0;
        gap: 10px;
    }

    .admf-side-help-title {
        margin-bottom: 1px;
        font-size: 13px;
    }

    .admf-side-help .admf-support-card {
        min-height: 64px;
        padding: 12px 14px;
    }

    .admf-level-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 22px;
    }

    .admf-level-card, .admf-level-card.is-unavailable {
        min-width: 0;
        min-height: 142px;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-rows: auto minmax(38px, 1fr) auto;
        column-gap: 9px;
        row-gap: 8px;
        align-items: center;
        padding: 13px 12px;
        text-align: left;
    }

    .admf-level-icon {
        grid-column: 1;
        grid-row: 1;
        width: 34px;
        height: 34px;
        margin: 0;
        border-radius: 9px;
    }

    .admf-level-icon svg {
        width: 23px;
        height: 23px;
    }

    .admf-level-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 14px;
        line-height: 1.2;
    }

    .admf-level-sub {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        margin: 0;
        font-size: 10.5px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .admf-level-count {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: start;
        align-self: end;
        max-width: 100%;
        margin: 0;
        padding: 4px 8px;
        font-size: 9px;
        line-height: 1.2;
        white-space: normal;
    }
}

/*
 * v1.12.12 mobile spacing refinement.
 * Keep the sidebar/form separation compact on phones.
 */

@media (max-width: 600px) {
    .admf-shell {
        gap: 10px;
    }
}


/* v1.12.21 - force light field borders (theme CSS was overriding them) */
.admf-wrap .admf-input,
.admf-wrap input.admf-input,
.admf-wrap select.admf-input,
.admf-wrap textarea.admf-input,
.admf-wrap .admf-phone-trigger,
.admf-wrap .admf-phone-search {
    border: 1px solid #dfe6ed !important;
    box-shadow: none;
}

.admf-wrap .admf-input:hover,
.admf-wrap .admf-phone-trigger:hover {
    border-color: #bdcad7 !important;
}

.admf-wrap .admf-input:focus,
.admf-wrap .admf-phone-trigger:focus-visible {
    border-color: var(--admf-primary, #004582) !important;
    box-shadow: 0 0 0 4px rgba(0, 69, 130, .10);
}

.admf-wrap .admf-input.admf-invalid,
.admf-wrap .admf-input[aria-invalid="true"] {
    border-color: #c62828 !important;
}
