.hidden {
    display: none;
}

.popup__wrapper {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: scroll;
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .popup__wrapper {
        overflow-y: scroll;
    }
}

.popup__container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    max-width: 1280px;
    height: max-content;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 48px 24px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.popup__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    margin-bottom: 12px;
}

p.bold {
    font-weight: 700;
}

.popup__container .mktoForm {
    padding: 0 !important;
}

.popup__container form {
    font-family: inherit !important;
    display: grid;
    width: 100% !important;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 6px;
    padding: 0 !important;
}

.popup__container input.mktoInvalid,
.popup__container select.mktoInvalid {
    border: 0.0625rem solid #d71f2d !important;
    border-bottom: 0.125rem solid #d71f2d !important;
}

.popup__container .mktoCheckboxList.mktoInvalid input[type="checkbox"] {
    accent-color: #d71f2d !important;
    background: #d71f2d !important;
    border-color: #d71f2d !important;
}

.popup__container input.mktoInvalid+span {
    display: block !important;
}

.popup__container input.mktoInvalid+span::after {
    content: "\f06a";
    color: #d71f2d;
    position: absolute;
    right: 0.625rem;
    top: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-family: "Font Awesome 6 Pro";
    font: var(--fa-font-solid);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    z-index: 1;
}

.popup__container input:focus,
.popup__container select:focus {
    border: 0.125rem solid #cccccc !important;
    border-bottom: 0.125rem solid #000000 !important;
    position: relative;
}

.popup__container form .mktoFormRow {
    grid-column: span 3;
}

.popup__container form .mktoFormRow.mktoCustomInputRow {
    grid-column: initial;
}

.popup__container form .mktoFormRow.mktoCustomInputRow {
    min-height: 48px;
}

.popup__container form .mktoFormRow.mktoCustomSpanTwoRow {
    grid-column: span 2;
}

.mktoFieldWrap .mktoGutter.mktoHasWidth,
.mktoFormRow .mktoOffset {
    display: none !important;
}

.mktoCustomInputRow .mktoFieldWrap {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: end;
}

.mktoCustomInputRow .mktoFieldDescriptor,
.mktoCustomCheckboxRow .mktoFieldDescriptor {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.mktoFieldWrap .mktoAsterix {
    color: inherit !important;
    padding-left: 0 !important;
}

.mktoCustomCheckboxRow .mktoAsterix {
    display: none !important;
}

.mktoCustomInputRow .mktoFieldWrap>input,
.mktoCustomInputRow .mktoFieldWrap>select {
    flex-grow: 1;
    padding-bottom: 0 !important;
    width: auto !important;
    min-height: auto !important;
    padding: 8px 4px 4px 4px !important;
    line-height: 13px;
}

.mktoCustomInputRow .mktoFieldWrap>select {
    padding-bottom: 0 !important;
}

.mktoCustomInputRow .mktoFieldWrap>label {
    width: max-content !important;
    padding-right: 8px;
}

input[type="hidden"] {
    display: none;
}

.mktoCustomInputRow .mktoFieldWrap .mktoError {
    width: 100%;
    position: static !important;
    right: 0 !important;
    top: 0 !important;
}

.mktoCustomInputRow .mktoFieldWrap .mktoError .mktoErrorArrowWrap {
    display: none;
}

.mktoCustomInputRow .mktoFieldWrap .mktoError .mktoErrorMsg {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
    color: #d71f2d !important;
    width: max-content !important;
    max-width: 100% !important;
}

.mktoCustomInputRow .mktoFieldWrap .mktoError .mktoErrorMsg>* {
    display: inline !important;
}

.popup__container input:focus+.mktoError {
    display: none !important;
}

.mktoCustomCheckboxRow .mktoFieldWrap {
    display: flex;
    width: 100% !important;
    column-gap: 8px;
}

.mktoCustomCheckboxRow .mktoFieldWrap .mktoCheckboxList {
    max-width: 1rem;
    order: -1;
}

.mktoCustomCheckboxRow .mktoFieldWrap label {
    flex-grow: 1;
}

.mktoLongSelect .mktoFieldWrap {
    flex-wrap: nowrap;
}

.popup__container form .mktoLongSelect select {
    min-width: 20px !important;
    width: 100% !important;
}

.popup__container form .mktoLongSelect label#LblmOCSession.mktoLabel.mktoHasWidth {
    display: block !important;
    width: max-content !important;
    min-width: max-content !important;
}

.mktoCustomCheckboxRow input[type="checkbox"] {
    display: inline-block;
    vertical-align: middle;
    min-height: auto;
    z-index: 2;
    border-radius: 0rem;
    background: transparent;
    padding: 0;
    max-width: 1rem;
    margin: 0;
    width: 100%;
    min-width: 1rem;
    border: 0.0625rem solid #333333;
    accent-color: #333333;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

.popup__container .mktoHtmlText {
    width: 100% !important;
    padding-left: 24px;
}

.popup__container .mktoHtmlText a {
    color: inherit !important;
    font-size: inherit !important;
    padding: 0 !important;
}

.popup__container strong {
    padding: 0 !important;
}

.popup__container .mktoButtonRow {
    grid-column: span 3;
}

.popup__container .mktoButtonRow .mktoButtonWrap,
.popup__container .mktoButtonRow .mktoButtonWrap button {
    margin: auto !important;
    display: block;
}

.popup__container .mktoButtonRow .mktoButtonWrap button {
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0rem;
    display: inline-flex;
    padding: 1.09375rem 2.4375rem 1.09375rem !important;
    border: 0.0625rem solid transparent !important;
    font-size: 1rem !important;
    transition: all 0.3s ease-in-out;
    font-family: "Akkurat Pro";
    text-decoration: none;
    background-color: #d71f2d !important;
    background-image: none !important;
    font-weight: 400;
    gap: 0.4375rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40% !important;
    margin: 48px auto 0 auto !important;
    display: block;
}

.popup__container .mktoButtonRow .mktoButtonWrap button:hover {
    background-color: #bc0026 !important;
    border: 0.0625rem solid transparent;
    transition: all 0.3s ease-in-out;
}

.popup__container .popup__button--close {
    position: absolute;
    right: 20px !important;
    top: 20px !important;
    background-color: transparent;
    border: none;
    padding: 0 12px;
}

.popup__container .popup__button--close span {
    background: #959595;
    display: block;
    height: 3px;
    left: 0;
    position: absolute;
    transform-origin: center center;
    width: 18px;
}

.popup__container .popup__button--close span:nth-child(1) {
    transform: rotate(45deg);
}

.popup__container .popup__button--close span:nth-child(2) {
    transform: rotate(-45deg);
}

@media screen and (max-width: 1366px) {
    .popup__container {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 90%;
    }

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

    .popup__container form .mktoFormRow,
    .popup__container .mktoButtonRow {
        grid-column: span 2;
    }

    .popup__container form .mktoFormRow.mktoCustomSpanTwoRow {
        grid-column: span 1;
    }
}

@media screen and (max-width: 1024px) {
    .popup__wrapper {
        max-height: 100%;
        border-radius: 0;
        overflow-y: auto;
    }

    .popup__container {
        position: relative;
        width: 100%;
        min-height: 100%;
        transform: none;
        top: 0;
        left: 0;
    }
}

@media screen and (max-width: 768px) {
    .popup__header {
        grid-template-columns: 1fr;
    }

    .popup__container {
        padding: 48px 12px;
    }

    .popup__container form {
        grid-template-columns: 1fr;
        max-width: 100% !important;
    }

    .popup__container form .mktoFormRow,
    .popup__container .mktoButtonRow {
        grid-column: span 1;
    }

    .mktoFieldWrap .mktoAsterix {
        float: right !important;
        padding-right: 0 !important;
    }

    .popup__container input.mktoInvalid+span::after {
        bottom: 0.375rem !important;
        top: auto !important;
    }

    .mktoCustomInputRow .mktoFieldWrap>label {
        /* width: fit-content !important; */
        flex-grow: 0;
        min-width: max-content;
    }

    .mktoCustomInputRow .mktoFieldWrap>select,
    .mktoCustomInputRow .mktoFieldWrap>input {
        width: 100% !important;
    }

    .popup__container form .mktoFormRow.mktoCustomInputRow {
        min-height: 2.5rem !important;
    }

    .popup__container form select {
        font-size: 1em !important;
    }

    .popup__container .mktoHtmlText {
        padding-top: 2.5em !important;
    }

    .mktoCustomInputRow .mktoFieldWrap {
        height: 2rem !important;
        align-items: end !important;
        flex-wrap: nowrap;
        max-width: 100% !important;
    }

    .mktoCustomInputRow .mktoFieldWrap .mktoError {
        position: absolute !important;
        top: 100% !important;
    }

    .mktoCustomInputRow .mktoFieldWrap .mktoError>div {
        margin-top: 0 !important;
    }

    .mktoCustomInputRow+.mktoCustomCheckboxRow {
        margin-top: 24px !important;
    }

}

@media (min-width: 600px) and (max-width:1200px) {
    .popup__container p {
        font-size: 14px !important;
    }

    .popup__container {
        padding: 24px 24px !important;
    }

    .popup__header h2 {
        font-size: 22px !important;
    }

    .popup__header {
        margin-bottom: 0px !important;
    }
}

@media (max-height: 775px) {
    .popup__container {
        position: relative !important;
        width: 100% !important;
        min-height: 100% !important;
        transform: none !important;
        top: 0 !important;
        left: 0 !important;
    }
}

.mktoCustomCheckboxRow .mktoFieldDescriptor .mktoRequiredField .mktoAsterix {
    display: block !important;
}

.mktoCustomCheckboxRow .mktoFieldDescriptor .mktoFieldWrap.mktoRequiredField .mktoAsterix {
    float: left !important;
}

@media screen and (max-width: 768px) {
    .mktoCustomCheckboxRow .mktoFieldDescriptor .mktoFieldWrap.mktoRequiredField .mktoAsterix {
        float: left !important;
    }
}