.msc-form input,
.msc-form select,
.msc-form textarea {
    width: 100%;
    font-size: 16px;
    color: #4D4D4D;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    border-radius: 4px;
}

@media only screen and (max-width: 768px) {
    .msc-form .checkbox-field {
        justify-content: center;
    }
}

.msc-form .main-sub-title {
    font-size: 18px;
    font-weight: 700;
    color: #4D4D4D;
    text-transform: uppercase;
    padding: 0px 0px 25px;
    text-align: center;
}

.msc-form .main-description {
    font-size: 18px;
    color: #4D4D4D;
    text-align: left;
}

.msc-form span.error, .form-section span.error a {
    display: flex;
    justify-content: center;
    color: #8F1F21;
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0;
    background-color: unset;
    margin: 0;
    border: unset;
}

#dialog-product-option-list span.error {
    justify-content: left;
}

.msc-form span.error::before {
    content: "";
    display: inline-block;
    background: url(icons/error-icon.png) no-repeat center center;
    background-size: contain;
    height: 34px;
    width: 34px;
}

.msc-form span.error.link-error-mixed {
    display: block;
    text-align: center;
}

.form-section span.error.link-error-mixed a {
    display: inline;
}

.msc-form span.error.link-error-mixed::before {
    vertical-align: middle;
    margin-right: 5px;
}

.msc-form input.input-error,
.msc-form select.input-error,
.msc-form textarea.input-error {
    border: 5px solid #8F1F21 !important;
}

.msc-form .input-checkbox.input-error + .checkbox-indicator,
.msc-form .input-radio.input-error + .radio-indicator {
    border-color: #8F1F21 !important;
    border-width: 2px !important;
}

.msc-form .choices.input-error {
    outline: 5px solid #8F1F21 !important;
    border-radius: 5px;
}

/* Locked class dropdown styling */
.msc-form select.class-locked,
.msc-form .choices.class-locked,
.msc-form .choices.is-disabled {
    pointer-events: none !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #e9ecef !important;
    filter: grayscale(50%) brightness(0.95);
}

.msc-form .choices.class-locked .choices__inner,
.msc-form .choices.is-disabled .choices__inner {
    pointer-events: none !important;
    cursor: not-allowed !important;
    background-color: #e9ecef !important;
    opacity: 0.7 !important;
    color: #6c757d !important;
}

.msc-form .choices.class-locked .choices__list--single,
.msc-form .choices.is-disabled .choices__list--single {
    color: #6c757d !important;
}

.msc-form .main-title {
    font-size: 24px;
    font-weight: 700;
    color: #2e8540;
    text-transform: uppercase;
}

.msc-form .form-section label, .msc-form .form-section span.input-text, .msc-form .form-section span.label-text {
    color: #4D4D4D;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase !important;
    margin-bottom: 5px;
    padding-right: 10px;
}

.msc-form .form-section label, .msc-form .form-section span.label-text {
    text-transform: uppercase;
}

.msc-form .form-section select.icw-input {
    height: auto;
    padding: 18px;
    font-size: 16px;
    color: #4D4D4D;
}

.msc-form .form-section .required {
    color: #4D4D4D;
    padding-left: 3px;
    position: relative;
    top: -5px;
    right: 0;
}

.msc-form .form-section legend span.required {
    color: #2e8540;
}

.msc-form.section-hr {display: inline-block; border-bottom: 1px solid #f2f2f2; width: 100%; padding-top: 30px; margin-bottom: 60px;}

.msc-form .form-section .error-icon {
    background: url(icons/error-icon.png) no-repeat; height: 34px; min-width: 34px;
}

.msc-form .form-section .success-icon {
    background: url(icons/success-icon.png) no-repeat; height: 34px; min-width: 34px;
}

.msc-form .radio-text {
    font-size: 18px !important;
}

.msc-form .form-section .legend-label-text {
    font-size: 18px !important;
    font-weight: 400 !important;
}

.msc-form .text-danger {
    color: #8F1F21 !important;
}

.msc-form .icon {
    display: inline-flex;
    cursor: pointer;
}

.msc-form .label {
    display: flex;
    align-items: center;
}

.msc-form .label label {
    line-height: 1;
    margin: 0;
    padding: 0;
    display: block;
}

.msc-form .info-icon {
    background: url(icons/info-icon.png) no-repeat center center;
    background-size: 28px 28px;
    height: 28px;
    width: 28px;
}

.msc-form .red-info-icon {
    background: url(icons/red-info-icon.png) no-repeat; height: 34px; width: 34px;
}

@media only screen and (max-width: 768px) {
    .msc-form:not(.modal) {
        padding: 0px 15px 20px !important;
    }

    .msc-form input:focus,
    .msc-form select:focus,
    .msc-form textarea:focus {
        outline-offset: -4px !important;
    }

    .msc-form input[type="radio"]:focus {
        outline-offset: unset !important;
    }

    .msc-form input.input-error, .msc-form select.input-error {
        outline-offset: -4px !important;
    }

    .msc-form input[type="radio"].input-error {
        box-shadow: none !important;
    }

    .msc-form .main-title {
        padding: 20px 0px 20px;
    }

    .msc-form .form-section label, .msc-form .form-section span.label-text, .msc-form .form-section span.input-text {
        font-size: 16px !important;
    }

    .msc-form .radio .radio-text,
    .msc-form .form-section .legend-label-text {
        font-size: 16px !important;
    }
}

/* Choices JS Styles */
.choices__placeholder {
    opacity: 1 !important;
}

.choices__list[aria-expanded] {
    z-index: 10;
    border: unset;
}

/* Adds outline when focus on the selectbox */
.choices__list[aria-expanded] .choices__list {
    max-height: 280px;
    height: auto;
    text-align: left;
}

.choices__list[aria-expanded] .choices__item {
    padding: 10px 15px;
    font-size: 16px;
}

.choices_container-inner {
    padding: 14px 10px;
    background-color: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 4px !important;
    color: #444444 !important;
    text-align: left;
}

.choices__list[aria-expanded] {
    color: #444444;
    white-space: normal;
    font-weight: 700;
}

.choices__list[aria-expanded="false"],
.choices__list:not([aria-expanded="true"]) {
    outline: none !important;
}

.choices__list[aria-expanded="true"] {
    outline: none !important;
    box-shadow: 0 0 0 5px #2e8540 !important;
}

.choices__list[aria-expanded="false"],
.choices__list:not([aria-expanded="true"]) {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.choices.is-open {
    border: 1px solid #2e8540 !important;
}

.choices_highlightedState {
    background-color: #2E8540;
    color: #FFFFFF;
}

/* Hide the selected item for the mobile */
@media only screen and (min-width: 769px) {
    .choices__item--selectable.is-highlighted {
        background-color: transparent !important;
        color: inherit !important;
    }
    .choices__item--selectable.is-highlighted:hover,
    .choices__item--selectable:hover {
        background-color: #f2f2f2 !important;
        color: #333 !important;
    }
}

.choices_itemSelectable {
    border-top: 2px solid #EFF3F0 !important;
}

/* do not add border-top to first element of the list */
.choices__list[aria-expanded] .choices__item:first-child {
    border-top: none !important;
}

.choices__list--single .choices_itemSelectable{
    border: unset !important;
}
/* End Choices JS Styles */