.nfpa-container {
    margin: 15px auto;
    padding: 15px 30px;
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    border: 1px solid #d3d3d3
}
.nfpa-form-step {
    transition: all .2s;
}
.nfpa-form-step-hidden {
    display: none;
}
.nfpa-step-content h3 {
    color: #33a5f7;
    border-bottom: 1px solid #d3d3d1;
    padding: 0 0 15px;
    margin: 15px auto;
}
.nfpa-step-content h3 span {
    display: block;
    font-size: 1rem;
    color: #555;
}
.nfpa-step-item-row {
    display: flex;
}
.nfpa-form-step-1 .nfpa-step-item {
    text-align: center;
    margin-right: 15px;
    border: 2px solid #d3d3d1;
    padding: 10px;
    border-radius: 8px;
}

.nfpa-form-step-1 .nfpa-step-item.checked,
.ghs-selector-item.checked{
    border-color: #33a5f7;
}

.nfpa-form-step-1 .nfpa-step-item img {
    display: block;
    max-width: 100%;
}
.nfpa-form-step-2 .nfpa-step-item-row:first-of-type {
    flex-wrap: wrap;
}
.nfpa-form-step-2 .nfpa-step-item {
    width: 100%;
}
.nfpa-form-step-1 .nfpa-step-item:first-child,
.nfpa-form-step-2 .nfpa-step-item:first-child{
    margin-right: 0;
}
.nfpa-diamond-selector,
.hmis-selector {
    border: 1px solid #d3d3d3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.nfpa-diamond-selector h4,
.hmis-selector h4,
.nfpa-form-step-3 h4{
    margin: 0 auto 30px;
    border-bottom: 1px solid #d3d3d3;
    color: #6e6e6e;
    padding: 10px 0;
}
.nfpa-step-item-ghs h4 {
    margin: 15px auto;
}
.nfpa-form-step-3 h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #000;
    border-bottom: 0;
    font-weight: 600;
    margin-top: 15px;
}
.nfpa-form-step-3 input[type="text"] {
    display: block;
    max-width: 500px;
    padding: 15px 10px;
    border-radius: 8px;
    border: 1px solid #d3d3d3;
    width: 100%;
}

.nfpa-diamond-selector-item {
    position: relative;
    min-height: 80px;
}
.nfpa-diamond-selector-item .diamond {
    width: 50px;
    height: 50px;
    position: absolute;
}
.nfpa-diamond-selector-item .diamond-color {
    background: #0170cc;
    transform: rotate(-45deg);
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0;
    z-index: 0;
    border: 2px solid #000;
}
.nfpa-diamond-selector-item-flammability .diamond-color {
    background: #ed1e26;
}
.nfpa-diamond-selector-item-instability .diamond-color{
    background: #ffdb0d;
}
.nfpa-diamond-selector-item-special .diamond-color{
    background: #fff;
}
.nfpa-diamond-selector-item select {
    position: absolute;
    top: 14px;
    right: 30px;
}

.nfpa-diamond-selector-item select,
.hmis-selector-item select{
    border: 0;
    background: #d3d3d3;
    padding: 3px 10px;
    font-size: 14px;
    border-radius: 5px;
    margin: 0;
    width: 60px;
    color: #000;
    line-height: 14px;
    box-shadow: none;
    height: auto;
}
.nfpa-diamond-selector-item:last-child select {
    width: 80px;
}
.nfpa-diamond-selector-item-text {
    padding-right: 100px;
    padding-top: 10px;
    text-align: right;
}
.nfpa-diamond-selector-item-special .nfpa-diamond-selector-item-text {
    padding-right: 120px;
}
.hmis-selector {
    margin-left: 0;
}
.hmis-selector-item {
    position: relative;
    min-height: 70px;
    display: flex;
    align-items: center;
    padding-right: 15px;
}
.hmis-selector-field {
    left: 10px;
    top: 15px;
    height: 40px;
    width: 62px;
    background: #fff;
    border: 1px solid #000;
    position: absolute;
}
.hmis-selector-item-health {
    background: #0170cc;
    color: #fff;
}
.hmis-selector-item-flammability {
    background: #ed1e26;
    color: #fff;
}
.hmis-selector-item-reactivity {
    background: #ffdb0d;
}
.hmis-selector-item-personal {
    background: #fff;
}
.nfpa-selector-item:not(.hmis-selector-item) {
    border: 2px solid transparent;
    border-radius: 200px 0 0 100px;
}
.nfpa-selector-item:not(.hmis-selector-item).focused {
    border: 2px solid #33a5f7;
}
.hmis-selector-item.focused {
    font-weight: bold;
}
.hmis-selector-item.focused .hmis-selector-field {
    background-color: #33a5f7;
}
.ghs-selector {
    display: flex;
    flex-wrap: wrap;
}
.ghs-selector-item {
    width: 30%;
    padding: 5px;
    border: 2px solid #d3d3d1;
    margin: 3px;
    border-radius: 8px;
}
.ghs-selector-item .checkbox-container {
    display: flex;
    align-items: center;
    padding-right: 28px;
}
.ghs-selector-item .checkmark {
    top: 8px;
}
.ghs-selector-item .checkbox-container > div {
    padding-right: 5px;
    font-size: 12px;
}
.site .nfpa-form-button,
.nfpa-form-button {
    display: block;
    width: 100%;
    border-radius: 8px;
    margin: 15px 5px;
    background: #33a5f7 !important;
    font-size: 16px !important;
    border: 0;
    transition: background-color .2s;
    color: #fff !important;
    font-weight: 600;
    padding: 15px 5px;
    cursor: pointer;
}

.site .nfpa-form-button:hover,
.nfpa-form-button:hover,
.site .nfpa-form-button:active,
.nfpa-form-button:active,
.site .nfpa-form-button:focus,
.nfpa-form-button:focus
{
    text-decoration: none !important;
    background: #333 !important;
}
.nfpa-next-prev {
    display: flex;
}
.nfpa-next-prev button {
    max-width: 50%;
}
.nfpa-form-button-preview {
    background: #fff !important;
    color: #33a5f7 !important;
    border: 2px solid #33a5f7;
    width: 50%;
    max-width: 120px;
}
.nfpa-image-preview {
    text-align: center;
    padding: 10px;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nfpa-image-preview img {
    display: block;
    max-width: 100%;
}
.nfpa-errors-item {
    color: #aa0000;
}
.checkbox-container {
    display: inline-block;
    position: relative;
    padding-right: 35px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-bottom: 0;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
    background-color: #33a5f7;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    right: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 0 3px 3px;
    -webkit-transform: rotate(45deg) scaleX(-1);
    -ms-transform: rotate(45deg) scaleX(-1);
    transform: rotate(45deg) scaleX(-1);
}

.container-radiobutton {
    display: block;
    position: relative;
    padding-right: 35px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-bottom: 0;
}

/* Hide the browser's default radio button */
.container-radiobutton input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom radio button */
.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container-radiobutton:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.container-radiobutton input:checked ~ .checkmark {
    background-color: #33a5f7;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.container-radiobutton input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.container-radiobutton .checkmark:after {
    top: 9px;
    right: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}
.nfpa-form-step-3 .checkbox-container,
.nfpa-form-step-3 .container-radiobutton {
    margin-bottom: 12px;
}

@media screen and (max-width: 480px) {
    .nfpa-form-step-1 .nfpa-step-item {
        padding: 5px;
    }
    .nfpa-form-step-1 .nfpa-step-item img {
        width: 35px;
        height: 35px;
    }
    .checkbox-container {
        padding-right: 20px;
    }
    .checkbox-container .checkmark:after {
        right: 5px;
        top: 3px;
        width: 5px;
        height: 9px;
        border-width: 0 0 2px 2px;
    }
    .checkbox-container .checkmark {
        width: 16px;
        height: 16px;
    }
    .ghs-selector-item {
        width: 100%;
    }
    .ghs-selector-item .checkmark {
        top: 13px;
    }
}
