.bnfe-signup {
    display: grid;
    place-items: center;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    margin-left: calc(50% - 50vw);
    padding: clamp(1rem, 3vw, 2rem);
    background-color: #eef6f8;
    background-image:
        linear-gradient(135deg, rgba(246, 250, 252, .93), rgba(232, 244, 248, .76)),
        url("/Portals/0/Images/Signup.png");
    background-image:
        linear-gradient(135deg, rgba(246, 250, 252, .93), rgba(232, 244, 248, .76)),
        image-set(
            url("/Portals/0/Images/Signup.webp") type("image/webp"),
            url("/Portals/0/Images/Signup.png") type("image/png")
        );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bnfe-signup-panel {
    width: min(980px, 100%);
    padding: clamp(1rem, 2.4vw, 1.8rem);
    border: 1px solid rgba(63, 158, 195, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 60px rgba(20, 35, 60, 0.14);
    backdrop-filter: blur(8px);
}

.bnfe-signup-head {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.bnfe-signup-head h1,
.bnfe-signup-field label {
    margin: 0;
    letter-spacing: 0;
}

.bnfe-signup-head h1 {
    color: #14233c;
}

.bnfe-signup-logo {
    display: block;
    width: min(300px, 72vw);
    height: auto;
}

.bnfe-signup-logo-link {
    display: inline-block;
}

.bnfe-signup-head h1 {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.bnfe-signup-context {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin: 0 0 1.2rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(244, 122, 42, .28);
    border-radius: 8px;
    background: #fff8f2;
}

.bnfe-signup-context-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(244, 122, 42, .12);
    color: #f47a2a;
    font-size: 1.05rem;
}

.bnfe-signup-context span {
    display: block;
    margin-bottom: .2rem;
    color: #f47a2a;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.bnfe-signup-context h2 {
    margin: 0;
    color: #14233c;
    font-size: 1.08rem;
    line-height: 1.25;
}

.bnfe-signup-context p {
    margin: .24rem 0 0;
    color: #516273;
    font-size: .9rem;
    line-height: 1.4;
}

.bnfe-signup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.bnfe-signup-field {
    display: grid;
    gap: 0.32rem;
}

.bnfe-signup-field-wide {
    grid-column: 1 / -1;
}

.bnfe-signup-field label {
    color: #334155;
    font-size: 0.86rem;
    font-weight: 750;
}

.bnfe-signup-field label span {
    color: #b54747;
}

.bnfe-signup-field label em {
    color: #718096;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 650;
}

.bnfe-signup-help {
    margin: 0.1rem 0 0;
    color: #5f6f82;
    font-size: 0.8rem;
    line-height: 1.35;
}

.bnfe-signup-field input,
.bnfe-signup-field select {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.78rem;
    border: 1px solid #d8e2ec;
    border-radius: 8px;
    background: #ffffff;
    color: #14233c;
    font-size: 0.96rem;
}

.bnfe-signup-field input::placeholder,
.bnfe-multiselect-menu input::placeholder {
    color: #9aa8b8;
    opacity: 1;
}

.bnfe-signup-password-control {
    position: relative;
    display: flex;
    align-items: center;
}

.bnfe-signup-password-control input {
    padding-right: 3rem;
}

.bnfe-signup-password-control button {
    position: absolute;
    right: 0.36rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #526071;
    cursor: pointer;
}

.bnfe-signup-password-control button:hover,
.bnfe-signup-password-control button:focus {
    background: #eef8ff;
    color: #24586f;
    outline: none;
}

.bnfe-signup-field input:focus,
.bnfe-signup-field select:focus {
    outline: none;
    border-color: #3f9ec3;
    box-shadow: 0 0 0 3px rgba(63, 158, 195, 0.16);
}

.bnfe-signup-field .is-invalid {
    border-color: #b54747;
    background: #fffafa;
}

.bnfe-segment-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.25rem;
    border: 1px solid #d8e2ec;
    border-radius: 8px;
    background: #ffffff;
}

.bnfe-segment-control.is-invalid,
.bnfe-multiselect.is-invalid .bnfe-multiselect-trigger {
    border-color: #d59a36;
    background: #fffaf0;
}

.bnfe-segment-control button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 850;
}

.bnfe-segment-control button:hover,
.bnfe-segment-control button:focus {
    background: #eef8ff;
    color: #24586f;
    outline: none;
}

.bnfe-segment-control button.is-active {
    background: #3f9ec3;
    color: #ffffff;
}

.bnfe-multiselect {
    position: relative;
}

.bnfe-multiselect.is-disabled {
    opacity: 0.72;
}

.bnfe-multiselect-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.78rem;
    border: 1px solid #d8e2ec;
    border-radius: 8px;
    background: #ffffff;
    color: #14233c;
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 750;
    text-align: left;
}

.bnfe-multiselect-trigger:disabled {
    cursor: not-allowed;
    color: #718096;
}

.bnfe-multiselect-trigger:hover,
.bnfe-multiselect-trigger:focus {
    border-color: #3f9ec3;
    box-shadow: 0 0 0 3px rgba(63, 158, 195, 0.16);
    outline: none;
}

.bnfe-multiselect-menu {
    position: absolute !important;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.55rem;
    max-height: 340px;
    padding: 0.65rem;
    border: 1px solid rgba(63, 158, 195, 0.24);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(20, 35, 60, 0.16);
    overflow: hidden;
}

.bnfe-multiselect-menu input {
    min-height: 40px;
}

.bnfe-multiselect-options {
    display: grid;
    gap: 0.3rem;
    max-height: 270px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.bnfe-multiselect-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 38px;
    padding: 0.48rem 0.55rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 750;
    text-align: left;
}

.bnfe-multiselect-option:hover,
.bnfe-multiselect-option:focus {
    background: #eef8ff;
    color: #24586f;
    outline: none;
}

.bnfe-multiselect-option.is-selected {
    background: #eaf7fc;
    color: #24586f;
}

.bnfe-multiselect-option.is-disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.bnfe-multiselect-empty {
    margin: 0;
    padding: 0.45rem 0.25rem;
    color: #718096;
    font-size: 0.86rem;
}

.bnfe-selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.bnfe-selected-categories button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0.35rem 0.52rem;
    border: 1px solid rgba(63, 158, 195, 0.24);
    border-radius: 999px;
    background: #eef8ff;
    color: #24586f;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
}

.bnfe-signup-validation-summary {
    width: 100%;
    margin: 0.85rem 0 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(181, 71, 71, 0.24);
    border-radius: 8px;
    background: #fffafa;
    color: #7a2f2f;
}

.bnfe-signup-validation-summary strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #5f2424;
    font-size: 0.92rem;
}

.bnfe-signup-validation-summary ul {
    display: grid;
    gap: 0.22rem;
    margin: 0;
    padding-left: 1.05rem;
    font-size: 0.84rem;
    line-height: 1.35;
}

.bnfe-signup-alert {
    grid-column: 1 / -1;
    padding: 0.85rem;
    border: 1px solid rgba(63, 158, 195, 0.24);
    border-radius: 8px;
    background: #eef8ff;
    color: #24586f;
    font-weight: 700;
}

.bnfe-signup-alert-success {
    border-color: rgba(14, 151, 100, 0.24);
    background: #edf9f4;
    color: #116a4a;
}

.bnfe-signup-confirmation {
    display: grid;
    justify-items: center;
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.6rem) 0 0.3rem;
    text-align: center;
}

.bnfe-signup-confirmation-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    border: 1px solid rgba(14, 151, 100, 0.18);
    border-radius: 50%;
    background: #edf9f4;
    color: #0e9764;
    font-size: 2rem;
}

.bnfe-signup-confirmation h2 {
    margin: 0 0 0.65rem;
    color: #14233c;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.bnfe-signup-confirmation p {
    margin: 0;
    color: #526071;
    font-size: 1rem;
    line-height: 1.65;
}

.bnfe-signup-confirmation-note {
    margin-top: 0.8rem !important;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(63, 158, 195, 0.18);
    border-radius: 8px;
    background: #f5fbff;
}

.bnfe-signup-confirmation-note strong {
    color: #14233c;
}

.bnfe-signup-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 1.1rem;
    padding: 0.68rem 1rem;
    border: 1px solid rgba(63, 158, 195, 0.38);
    border-radius: 8px;
    color: #24586f;
    font-weight: 800;
    text-decoration: none;
}

.bnfe-signup-secondary-link:hover,
.bnfe-signup-secondary-link:focus {
    background: #eef8ff;
    text-decoration: none;
}

.bnfe-signup-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 50px;
    margin-top: 1rem;
    border: 0;
    border-radius: 8px;
    background: #3f9ec3;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
}

.bnfe-signup-submit:disabled {
    cursor: progress;
    opacity: 0.72;
}

.bnfe-signup-login {
    margin: 0.85rem 0 0;
    color: #526071;
    font-size: 0.92rem;
    text-align: center;
}

.bnfe-signup-login a {
    color: #3f9ec3;
    font-weight: 800;
    text-decoration: none;
}

.bnfe-signup-login a:hover,
.bnfe-signup-login a:focus {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .bnfe-signup-grid {
        grid-template-columns: 1fr;
    }

    .bnfe-signup-context {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 540px) {
    .bnfe-signup {
        align-items: start;
        padding: 0.75rem;
        background:
            linear-gradient(135deg, rgba(246, 250, 252, 0.96), rgba(232, 244, 248, 0.94)),
            url("https://images.pexels.com/photos/28486682/pexels-photo-28486682.jpeg?auto=compress&cs=tinysrgb&w=1200") center / cover no-repeat,
            #eef6f8;
    }

    .bnfe-signup-panel {
        padding: 0.9rem;
        border-radius: 8px;
    }

    .bnfe-signup-logo {
        width: min(250px, 76vw);
    }

    .bnfe-signup-field input,
    .bnfe-signup-field select {
        min-height: 44px;
        font-size: 16px;
    }

}
