:root {
    --mhj-primary: #119da0;
    --mhj-primary-dark: #0a7478;
    --mhj-primary-soft: #e8f8f7;
    --mhj-ink: #17363b;
    --mhj-muted: #60777b;
    --mhj-border: #d9e9e8;
    --mhj-bg: #f5fbfa;
    --mhj-white: #ffffff;
    --mhj-danger: #c0392b;
    --mhj-success: #198754;
    --mhj-shadow: 0 28px 80px rgba(14, 66, 72, .24);
}

html.mhj-modal-open,
body.mhj-modal-open {
    overflow: hidden !important;
}

.mhj-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--mhj-ink);
}

.mhj-modal.is-open {
    display: flex;
}

.mhj-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 29, 34, .72);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.mhj-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: min(92vh, 900px);
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 4%, rgba(23, 182, 178, .16), transparent 32%),
        linear-gradient(145deg, #ffffff 0%, #fbfefe 58%, #eefaf9 100%);
    box-shadow: var(--mhj-shadow);
    border: 1px solid rgba(255, 255, 255, .8);
    transform: translateY(20px) scale(.985);
    opacity: 0;
    transition: transform .24s ease, opacity .24s ease;
}

.mhj-modal.is-open .mhj-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mhj-dialog::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -150px;
    bottom: -180px;
    border-radius: 50%;
    border: 42px solid rgba(17, 157, 160, .07);
    pointer-events: none;
}

.mhj-close {
    position: absolute;
    top: 18px;
    left: 18px;
    right: auto;
    z-index: 20;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--mhj-primary-dark);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(5, 68, 73, .34), 0 0 0 2px rgba(17, 157, 160, .22);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.mhj-close:hover,
.mhj-close:focus-visible {
    background: #075f63;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: scale(1.06);
    box-shadow: 0 11px 30px rgba(5, 68, 73, .42), 0 0 0 4px rgba(17, 157, 160, .18);
    outline: none;
}

.mhj-close[hidden],
.mhj-modal:not(.mhj-can-close) .mhj-close {
    display: none !important;
}

.mhj-brandline {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 82px;
    padding: 16px 30px 12px 82px;
    border-bottom: 1px solid rgba(217, 233, 232, .85);
}

.mhj-brandmark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 16px;
    color: var(--mhj-primary);
    background: var(--mhj-primary-soft);
}

.mhj-brandmark svg {
    width: 33px;
    height: 33px;
}

.mhj-brandmark-image {
    width: auto;
    max-width: min(240px, 42vw);
    flex: 0 1 auto;
    padding: 5px 8px;
    background: rgba(255, 255, 255, .92);
}

.mhj-brandmark-image img {
    display: block;
    width: auto;
    max-width: min(var(--mhj-logo-width, 150px), 100%);
    max-height: 43px;
    object-fit: contain;
}

.mhj-hero-media {
    position: relative;
    height: 170px;
    margin: 4px 30px 0;
    overflow: hidden;
    border-radius: 20px;
    background: #dff4f2;
    box-shadow: inset 0 0 0 1px rgba(17, 157, 160, .08);
}

.mhj-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mhj-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 57, 63, .5) 0%, rgba(7, 57, 63, .08) 58%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.mhj-hero-logo {
    position: absolute;
    left: 22px;
    bottom: 18px;
    display: grid;
    place-items: center;
    max-width: calc(100% - 44px);
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 28px rgba(7, 54, 59, .2);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.mhj-hero-logo img {
    display: block;
    width: auto;
    max-width: min(var(--mhj-logo-width, 150px), 100%);
    max-height: 55px;
    object-fit: contain;
}

.mhj-dialog.has-hero .mhj-step-scroll {
    max-height: calc(min(92vh, 900px) - 335px);
}

.mhj-popup-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .01em;
}

.mhj-application-number {
    margin-top: 3px;
    color: var(--mhj-muted);
    font-size: 12px;
    font-weight: 700;
}

.mhj-progress {
    padding: 14px 30px 8px;
}

.mhj-progress-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5f0ef;
}

.mhj-progress-bar span {
    display: block;
    height: 100%;
    width: 25%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mhj-primary-dark), #28c2bb);
    transition: width .28s ease;
}

.mhj-progress-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
    color: var(--mhj-muted);
    font-size: 12px;
    font-weight: 700;
}

.mhj-status {
    margin: 4px 30px 0;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.mhj-status[hidden] {
    display: none;
}

.mhj-status.is-info {
    color: #275f69;
    background: #eaf7f9;
}

.mhj-status.is-success {
    color: #156d4a;
    background: #e7f7ef;
}

.mhj-status.is-error {
    color: #9e2d24;
    background: #fff0ee;
}

.mhj-step {
    display: none;
    min-height: 420px;
}

.mhj-step.is-active {
    display: block;
    animation: mhjFadeIn .22s ease both;
}

.mhj-step-scroll {
    max-height: calc(min(92vh, 900px) - 160px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 30px 32px;
    scrollbar-width: thin;
    scrollbar-color: #9bc8c7 transparent;
}

@keyframes mhjFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mhj-kicker {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 28px;
    margin-bottom: 9px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--mhj-primary-dark);
    background: var(--mhj-primary-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.mhj-step h2 {
    max-width: 720px;
    margin: 0 0 14px;
    color: var(--mhj-ink);
    font-size: clamp(25px, 3.3vw, 39px);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.mhj-copy {
    max-width: 790px;
    color: #405d62;
    font-size: 15px;
    line-height: 1.75;
}

.mhj-copy p {
    margin: 0 0 12px;
}

.mhj-challenge,
.mhj-message-prompt {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #cfe9e7;
    border-left: 4px solid var(--mhj-primary);
    border-radius: 14px;
    color: #245a5f;
    background: rgba(232, 248, 247, .74);
    font-size: 14px;
    font-weight: 800;
}

.mhj-form {
    margin-top: 20px;
}

.mhj-form label,
.mhj-contact-method {
    display: block;
    margin: 0 0 15px;
}

.mhj-form label > span,
.mhj-contact-method legend {
    display: block;
    margin-bottom: 7px;
    color: #294d52;
    font-size: 13px;
    font-weight: 800;
}

.mhj-form input[type="text"],
.mhj-form input[type="tel"],
.mhj-form input[type="email"],
.mhj-form textarea,
.mhj-form select {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #cddfdd;
    border-radius: 13px;
    outline: none;
    color: var(--mhj-ink);
    background: rgba(255, 255, 255, .96);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.mhj-form textarea {
    min-height: 135px;
    resize: vertical;
    line-height: 1.55;
}

.mhj-form input:focus,
.mhj-form textarea:focus,
.mhj-form select:focus {
    border-color: var(--mhj-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(17, 157, 160, .12);
}

.mhj-grid {
    display: grid;
    gap: 14px;
}

.mhj-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhj-phone-grid {
    display: grid;
    grid-template-columns: minmax(100px, 145px) minmax(0, 1fr);
    gap: 14px;
}

.mhj-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 17px 0 !important;
    padding: 13px 14px;
    border: 1px solid var(--mhj-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .75);
    cursor: pointer;
}

.mhj-check input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 2px 0 0;
    accent-color: var(--mhj-primary);
}

.mhj-check span {
    margin: 0 !important;
    color: #405d62 !important;
    font-weight: 600 !important;
    line-height: 1.5;
}

.mhj-contact-method {
    padding: 0;
    border: 0;
}

.mhj-choice-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mhj-choice-row label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.mhj-choice-row input {
    position: absolute;
    opacity: 0;
}

.mhj-choice-row span {
    display: grid !important;
    place-items: center;
    min-height: 48px;
    margin: 0 !important;
    padding: 10px;
    border: 1px solid #cddfdd;
    border-radius: 13px;
    color: #35565b !important;
    background: white;
    text-align: center;
    transition: .2s ease;
}

.mhj-choice-row input:checked + span {
    border-color: var(--mhj-primary);
    color: var(--mhj-primary-dark) !important;
    background: var(--mhj-primary-soft);
    box-shadow: 0 0 0 3px rgba(17, 157, 160, .09);
}

.mhj-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.mhj-actions-end {
    justify-content: flex-end;
}

.mhj-primary,
.mhj-secondary,
.mhj-open-button,
.mhj-resume-fab {
    appearance: none;
    border: 0;
    border-radius: 13px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.mhj-primary {
    min-height: 48px;
    padding: 12px 23px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, var(--mhj-primary-dark), var(--mhj-primary));
    box-shadow: 0 10px 24px rgba(17, 157, 160, .22);
}

.mhj-modal button.mhj-primary,
.mhj-modal button.mhj-primary:hover,
.mhj-modal button.mhj-primary:focus,
.mhj-modal button.mhj-primary:active,
button.mhj-open-button,
button.mhj-open-button:hover,
button.mhj-open-button:focus,
button.mhj-open-button:active,
button.mhj-resume-fab,
button.mhj-resume-fab:hover,
button.mhj-resume-fab:focus,
button.mhj-resume-fab:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.mhj-primary *,
.mhj-open-button *,
.mhj-resume-fab * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

.mhj-primary:hover,
.mhj-open-button:hover,
.mhj-resume-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(17, 157, 160, .3);
}

.mhj-secondary {
    min-height: 48px;
    padding: 12px 21px;
    color: #35565b;
    background: #eaf3f2;
}

.mhj-secondary:hover {
    background: #dceceb;
}

.mhj-primary:disabled,
.mhj-secondary:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.mhj-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.mhj-review-notice {
    margin: 0 0 18px;
    color: var(--mhj-muted);
    line-height: 1.6;
}

.mhj-review-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    padding: 14px 15px;
    border: 1px solid var(--mhj-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .84);
}

.mhj-review-card > div {
    min-width: 0;
}

.mhj-review-card strong,
.mhj-review-card span {
    display: block;
}

.mhj-review-card strong {
    margin-bottom: 4px;
    color: #33565a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mhj-review-card span {
    overflow-wrap: anywhere;
    color: var(--mhj-ink);
    font-size: 15px;
    line-height: 1.5;
}

.mhj-review-card button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    color: var(--mhj-primary-dark);
    background: var(--mhj-primary-soft);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.mhj-review-message {
    align-items: flex-start;
}

.mhj-success {
    min-height: 500px;
    padding: 50px 30px 45px;
    text-align: center;
}

.mhj-success-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--mhj-primary-dark), #2cc5b5);
    box-shadow: 0 18px 38px rgba(17, 157, 160, .25);
    font-size: 38px;
    font-weight: 900;
}

.mhj-success h2 {
    margin-right: auto;
    margin-left: auto;
}

.mhj-success .mhj-copy {
    margin: 0 auto 22px;
}

.mhj-code-card {
    display: grid;
    gap: 4px;
    max-width: 480px;
    margin: 10px auto;
    padding: 13px 16px;
    border: 1px solid var(--mhj-border);
    border-radius: 13px;
    background: white;
}

.mhj-code-card span {
    color: var(--mhj-muted);
    font-size: 12px;
    font-weight: 700;
}

.mhj-code-card strong {
    color: var(--mhj-primary-dark);
    font-size: 20px;
    letter-spacing: .04em;
}

.mhj-success > .mhj-primary {
    margin-top: 18px;
}

.mhj-resume-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    min-height: 48px;
    padding: 12px 18px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, var(--mhj-primary-dark), var(--mhj-primary));
    box-shadow: 0 12px 30px rgba(8, 78, 84, .28);
}

.mhj-resume-fab[hidden] {
    display: none !important;
}

.mhj-open-button {
    min-height: 46px;
    padding: 11px 18px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, var(--mhj-primary-dark), var(--mhj-primary));
}

@media (max-width: 720px) {
    .mhj-modal {
        padding: 0;
        align-items: stretch;
    }

    .mhj-dialog {
        width: 100%;
        max-height: 100dvh;
        min-height: 100dvh;
        border-radius: 0;
    }

    .mhj-brandline {
        min-height: 72px;
        padding: 12px 18px 10px 70px;
    }

    .mhj-brandmark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .mhj-popup-title {
        font-size: 14px;
    }

    .mhj-brandmark-image {
        max-width: min(190px, 55vw);
    }

    .mhj-brandmark-image img {
        max-height: 38px;
    }

    .mhj-hero-media {
        height: 138px;
        margin: 0 18px;
        border-radius: 16px;
    }

    .mhj-hero-logo {
        left: 14px;
        bottom: 13px;
        max-width: calc(100% - 28px);
        padding: 8px 11px;
    }

    .mhj-hero-logo img {
        max-height: 42px;
    }

    .mhj-close {
        top: 12px;
        left: 12px;
        right: auto;
        width: 45px;
        height: 45px;
        font-size: 30px;
    }

    .mhj-progress {
        padding: 12px 18px 6px;
    }

    .mhj-status {
        margin-right: 18px;
        margin-left: 18px;
    }

    .mhj-step-scroll {
        max-height: calc(100dvh - 137px);
        padding: 15px 18px calc(28px + env(safe-area-inset-bottom));
    }

    .mhj-dialog.has-hero .mhj-step-scroll {
        max-height: calc(100dvh - 287px);
    }

    .mhj-step h2 {
        font-size: 27px;
    }

    .mhj-copy {
        font-size: 14px;
        line-height: 1.65;
    }

    .mhj-grid-2,
    .mhj-phone-grid,
    .mhj-choice-row {
        grid-template-columns: 1fr;
    }

    .mhj-phone-grid {
        grid-template-columns: 105px 1fr;
    }

    .mhj-choice-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mhj-actions {
        position: sticky;
        bottom: -28px;
        margin-right: -18px;
        margin-left: -18px;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(217, 233, 232, .85);
        background: rgba(250, 254, 253, .94);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mhj-primary,
    .mhj-secondary {
        flex: 1 1 auto;
    }

    .mhj-review-card {
        align-items: flex-start;
    }

    .mhj-success {
        min-height: calc(100dvh - 137px);
        padding: 45px 18px 30px;
    }

    .mhj-resume-fab {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        max-width: calc(100vw - 28px);
    }
}

@media (max-width: 420px) {
    .mhj-phone-grid,
    .mhj-choice-row {
        grid-template-columns: 1fr;
    }

    .mhj-actions {
        flex-direction: column-reverse;
    }

    .mhj-actions button {
        width: 100%;
    }
}

.mhj-check a {
    color: var(--mhj-primary-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}
