.goprofor-form-modal {
    --form-navy: #102d4e;
    --form-blue: #117ca6;
    --form-green: #2f8a63;
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    font-family: "Montserrat", Arial, sans-serif;
    transition: opacity .22s ease, visibility .22s ease;
}

.goprofor-form-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.goprofor-form-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 26, 45, .78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.goprofor-form-modal__card {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(3, 22, 38, .32);
    transform: translateY(18px) scale(.985);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.goprofor-form-modal.is-open .goprofor-form-modal__card {
    transform: translateY(0) scale(1);
}

.goprofor-form-modal__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--form-navy), var(--form-blue) 55%, var(--form-green));
}

.goprofor-form-modal__close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #5e7182;
    background: #eef4f6;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.goprofor-form-modal__close:hover,
.goprofor-form-modal__close:focus {
    color: #fff;
    background: var(--form-navy);
    transform: rotate(6deg);
    outline: none;
}

.goprofor-form-modal__brand {
    min-height: 100px;
    padding: 24px 76px 20px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e7eef1;
    background: linear-gradient(105deg, #f6fbfc, #ecf6f1);
}

.goprofor-form-modal__brand img {
    display: block;
    width: min(285px, 58%);
    height: auto;
}

.goprofor-form-modal__brand span {
    padding: 8px 12px;
    border: 1px solid rgba(47, 138, 99, .18);
    border-radius: 999px;
    color: #24734f;
    background: rgba(47, 138, 99, .1);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    white-space: nowrap;
}

.goprofor-form-modal__content {
    padding: 34px;
}

.goprofor-form-modal__eyebrow {
    margin: 0 0 12px;
    color: var(--form-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.goprofor-form-modal__eyebrow i {
    margin-right: 7px;
}

.goprofor-form-modal h2 {
    max-width: 620px;
    margin: 0 0 14px;
    color: var(--form-navy);
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -.035em;
}

.goprofor-form-modal__content > p:not(.goprofor-form-modal__eyebrow):not(.goprofor-form-modal__error) {
    max-width: 650px;
    margin: 0;
    color: #556b7d;
    font-size: 15px;
    line-height: 1.65;
}

.goprofor-form-modal__details {
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.goprofor-form-modal__details span {
    min-height: 72px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dfeaec;
    border-radius: 14px;
    color: var(--form-navy);
    background: #f8fbfc;
    font-size: 11px;
    line-height: 1.4;
}

.goprofor-form-modal__details i {
    color: var(--form-blue);
    font-size: 18px;
}

.goprofor-form-modal__notice {
    padding: 15px 17px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 14px;
    color: #496070;
    background: #edf7f2;
}

.goprofor-form-modal__notice > i {
    margin-top: 3px;
    color: var(--form-green);
}

.goprofor-form-modal__notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}

.goprofor-form-modal__error {
    display: none;
    margin: 14px 0 0;
    padding: 11px 13px;
    border-radius: 10px;
    color: #9b342f;
    background: #fff0ef;
    font-size: 12px;
    font-weight: 600;
}

.goprofor-form-modal__error.is-visible {
    display: block;
}

.goprofor-form-modal__actions {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.goprofor-form-modal__primary,
.goprofor-form-modal__secondary {
    min-height: 50px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.goprofor-form-modal__primary {
    padding: 0 22px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #147fa8, #2f8a63);
    box-shadow: 0 12px 25px rgba(24, 120, 126, .22);
}

.goprofor-form-modal__primary i {
    margin-left: 10px;
}

.goprofor-form-modal__primary:hover,
.goprofor-form-modal__primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(24, 120, 126, .29);
    outline: none;
}

.goprofor-form-modal__primary[disabled] {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.goprofor-form-modal__secondary {
    padding: 0 6px;
    border: 0;
    color: #607383;
    background: transparent;
}

.goprofor-form-modal__secondary:hover,
.goprofor-form-modal__secondary:focus {
    color: var(--form-navy);
    text-decoration: underline;
    outline: none;
}

body.goprofor-form-modal-open {
    overflow: hidden;
}

@media (max-width: 680px) {
    .goprofor-form-modal {
        padding: 12px;
    }

    .goprofor-form-modal__card {
        max-height: calc(100vh - 24px);
        border-radius: 19px;
    }

    .goprofor-form-modal__brand {
        min-height: 86px;
        padding: 22px 66px 16px 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .goprofor-form-modal__brand img {
        width: min(240px, 82%);
    }

    .goprofor-form-modal__content {
        padding: 25px 22px 27px;
    }

    .goprofor-form-modal h2 {
        font-size: 27px;
    }

    .goprofor-form-modal__details {
        grid-template-columns: 1fr;
    }

    .goprofor-form-modal__details span {
        min-height: 50px;
    }

    .goprofor-form-modal__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .goprofor-form-modal__primary,
    .goprofor-form-modal__secondary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .goprofor-form-modal,
    .goprofor-form-modal__card,
    .goprofor-form-modal__close,
    .goprofor-form-modal__primary {
        transition: none;
    }
}
