.hive-block-form .has-error .legend-label {
    color: #b34646;
}

.hive-block-form .has-error .error {
    color: #b34646;
}

.hive-block-form .activity-status {
    border-top: 1px solid #d8d8d8;
    padding-bottom: 1em;
}

.hive-block-form .activity-status span {
    padding: 0.5em 1em;
    display: inline-block;
    top: -1px;
    position: relative;
    color: #fff;
}

.hive-block-form .activity-status .open {
    background-color: #4b7f33;
}

.hive-block-form .activity-status .closed {
    background-color: #b34636;
}

.hive-block-form .form-section {
    margin-top: 2em;
}

.hive-block-form .antispam {
    margin-top: 2em;
}

.hive-block-form .form-action {
    margin-top: 2em;
}

.hive-block-form .form-section .section-title {
    color: #3d4958;
    border-bottom: 2px solid #3d4958;
    margin-bottom: 0.5em;
    display: flex;
    justify-content: space-between;
}

.hive-block-form .action-bar {
    margin-top: 2em;
}

.hive-block-form .progress {
    border-radius: 0;
    height: 10px;
    box-shadow: none;
    background-color: #d8d8d8;
}

.hive-block-form .progress .progress-bar-success {
    background-color: #218739;
}

.hive-block-form .review-form fieldset {
    margin-top: 2em;
}

.hive-block-form .form-review fieldset legend {
    font-size: 18px;
    font-weight: bold;
}

.hive-block-form .has-error .field-spatialmap .spatial-map.map-container {
    border: solid 2px #b34646;
}

.hive-block-form .map-dock .btn-map i {
    display: flex;
    align-self: center;
    justify-content: center;
}

.hive-block-form div.map-dock-panels > div {
    min-height: 100px;
    box-sizing: content-box;
    border-radius: 0;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border: 0;
    flex-grow: 1;
    background: #fff;
    display: flex;
    position: absolute;
    overflow: auto;
    flex-direction: column;
    max-height: calc(100% - 50px);
}

.hive-block-form div.map-dock-panels > div.map-layers-wrapper {
    width: calc(100% - 10px);
    border-radius: 5px;
}

.hive-block-form .map-base-grid {
    display: grid;
    gap: 15px;
}

div.ccm-page .hive-block-form .map-dock .btn-map.selected {
    background-color: #d1e4ed;
    border-color: #d1e4ed;
    color: #133357;
}

.hive-block-form .panel-left.panel-popout h5 {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.hive-block-form input[type="checkbox"] + .image-checkbox,
.hive-block-form input[type="radio"] + .image-checkbox {
    cursor: pointer;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 2px solid #dfdfdf;
    border-radius: 2px;
    margin-bottom: 0;
    padding: 2px;
    position: relative;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hive-block-form .image-checkbox input[type="checkbox"],
.hive-block-form .image-checkbox input[type="radio"],
div.ccm-page .hive-block-form label.image-checkbox::before {
    display: none;
}

.hive-block-form .image-checkbox-input {
    outline: none;
    border: 1px solid transparent;
    background-color: transparent;
}

.hive-block-form .image-checkbox-disabled {
    opacity: 0.5;
}

.hive-block-form .image-checkbox i[class^="hive-"] {
    position: absolute;
    color: #fff;
    background-color: #4b7f33;
    padding: 0;
    top: 2px;
    right: 2px;
    border-radius: 2px;
    width: 30px;
    height: 30px;
    line-height: 32px;
}

[dir="rtl"] .hive-block-form .image-checkbox i[class^="hive-"] {
    right: auto;
    left: 2px;
}

.hive-block-form .image-checkbox-checked i[class^="hive-"] {
    display: block !important;
    visibility: visible !important;
}

[dir="rtl"] .hive-block-form .panel-left .btn-close {
    right: auto;
    left: 15px;
}

.hive-block-form .panel-left .btn-close {
    position: absolute !important;
    right: 15px;
    top: 7px;
    z-index: 13;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border-radius: 2px;
}

.hive-block-form .map-container.mapboxgl-wrapper {
    flex-grow: 1;
}

.hive-block-form .map-container.mapboxgl-wrapper .map.mapboxgl-map .mapboxgl-control-container .mapboxgl-ctrl-top-right .mapboxgl-ctrl.mapboxgl-ctrl-group {
    box-shadow: none;
    margin: 55px 15px 0 0;
    border-radius: 0;
}

.hive-block-form .map-container.mapboxgl-wrapper .map.mapboxgl-map .mapboxgl-control-container .mapboxgl-ctrl-top-right .mapboxgl-ctrl.mapboxgl-ctrl-group button+button {
    border-top: #f2f3f4 1px solid;
}

.hive-block-form .map-layers-wrapper fieldset .layer {
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
}

.hive-block-form .map-layers-wrapper fieldset .layer:last-child {
    border-bottom: 0;
}

.hive-block-form .map-layers-wrapper .layer .layer-info {
    display: flex;
    align-items: flex-start;
}

.hive-block-form .map-layers-wrapper .layer .legend-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hive-block-form .map-layers-wrapper .layer .legend-list li {
    display: flex;
    align-content: center;
    align-items: center;
    padding: 2px;
    margin-top: 2px;
    list-style: none;
}

.hive-block-form .map-layers-wrapper .layer .legend-list li:last-child {
    padding-bottom: 7px;
}

.hive-block-form .map-layers-wrapper .layer .legend-symbol {
    min-width: 20px;
    min-height: 20px;
    display: inline-block;
    margin-inline-end: 10px;
    background-color: #eee;
    border: 1px solid #eee;
}

.map-help-wrapper,
.map-layers-wrapper,
.map-categories-wrapper {
    border-radius: 5px;
}

.hive-block-form .map-layers-wrapper .layer label.check-switch,
.hive-block-form .map-categories-wrapper .cat-item label.check-switch {
    display: block;
    position: relative;
    max-width: 100%;
    min-height: 1.25em;
    width: 100%;
    padding-inline-end: 3em;
    cursor: pointer;
    font-weight: normal;
}

.hive-block-form .check-switch-disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* using the before/after pseudo elements of the span to create the "switch" */
.hive-block-form .check-switch span:before,
.hive-block-form .check-switch span:after {
    border: 1px solid #565656;
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* styling specific to the knob of the switch */
.hive-block-form .check-switch span:after {
    background: #fff;
    border-radius: 100%;
    transition: right 0.1825s ease-in-out;
    height: 1em;
    right: 1.05em;
    width: 1em;
}
[dir="rtl"] .hive-block-form .check-switch span:after {
    right: auto;
    left: 1.05em;
}

/* styling specific to the knob "container" */
.hive-block-form .check-switch span:before {
    background: #565656;
    transition: background 0.2s ease-in-out;
    border-radius: 1.2em;
    height: 1.2em;
    right: 0.15em;
    width: 2em;
}
[dir="rtl"] .hive-block-form .check-switch span:before {
    right: auto;
    left: 0.15em;
}

/* hide the actual checkbox from view, but not from keyboards or ATs.
     Instead of standard visually hidden styling, instead set opacity to
     almost 0 (not zero for ChomeVox legacy bug), pointer-events none, and
     then set to full height/width of container element so that VO focus
     ring outlines the component, instead of a tiny box within the component
  */
.hive-block-form .check-switch input {
    height: 100%;
    left: 0;
    opacity: 0.0001;
    position: absolute;
    top: 0;
    width: 100%;
}

.hive-block-form .check-switch input:not([role="button"]) {
    pointer-events: none;
}

.hive-block-form .check-switch input:focus + span:before {
    box-shadow: 0 0 2px 1px #2196f3;
}

/* change the position of the knob to indicate it has been checked*/
.hive-block-form .check-switch input:checked + span:after {
    right: 0.25em;
    border-color: #006893;
}
[dir="rtl"] .hive-block-form .check-switch input:checked + span:after {
    right: auto;
    left: 0.25em;
}

/* update the color of the "container" to further visually indicate state */
.hive-block-form .check-switch input:checked + span:before {
    background: #006893;
    border-color: #006893;
}

/* 'color in' the switch knob in high contrast mode by giving it
     a large border */
@media screen and (-ms-high-contrast: active) {
    .hive-block-form .check-switch span:after {
        background-color: windowText;
    }
}

.hive-block-form .map-categories-wrapper .cat-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hive-block-form .map-categories-wrapper .cat-item {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
}

.hive-block-form .map-categories-wrapper .cat-item .marker {
    margin-inline-end: 10px;
}

.hive-block-form .map-categories-wrapper .cat-item .marker img {
    min-width: 16px;
    min-height: 21px;
    width: 32px;
    height: 45px;
}

.hive-block-form .spatial-map.adding-marker
    .mapboxgl-canvas-container
    .mapboxgl-canvas {
    cursor: url(/application/images/the_hive_social_map/ghost_marker_sm.png) 16
            39,
        auto !important;
}

.hive-block-form .spatial-map .panel-content .pin-location {
    margin-inline-end: 25px;
}

.hive-block-form .spatial-map .panel-content .pin-location h4 {
    display: inline;
    margin-inline-start: .5em;
    font-weight: 600;
}

.hive-block-form .spatial-map .panel-left .btn-close,
.hive-block-form .spatial-map .panel-right .btn-close {
    border-width: 0;
}
.hive-block-form .spatial-map .panel-right .btn-close {
    position: absolute;
    right: 15px;
    top: -8px;
    z-index: 13;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border-radius: 2px;
}

.hive-block-form .spatial-map .panel-right .panel-content .character-counter.help-block {
    text-align: right;
}

.hive-block-form .panel-left {
    background: #fff;
    z-index: 1;
    padding: 15px;
    width: 100%;
    min-height: calc(100% - 40px);
    z-index: 12;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-top: 0;
    box-sizing: border-box;
    flex-grow: 1;
    flex-direction: column;
    min-height: 0;
    /* firefox */
    padding: 0;
    position: relative;
}

.hive-block-form .panel-left .panel-content {
    flex-grow: 1;
    overflow: auto;
    /* for Firefox */
    min-height: 0;
    padding: 15px;
}

.hive-block-form .view-feature .panel-content .submission-body {
    margin-block: 16px;
}

.hive-block-form .pin-details-wrapper,
.hive-block-form .map-info-wrapper,
.hive-block-form .map-help-wrapper {
    color: #525252;
}

/* Mobile */
.hive-block-form .map-panels.mobile.inset {
    top: 45px;
    left: 5px;
    position: absolute;
    overflow: auto;
    width: 100%;
    height: 100%;
    display: flex;
}
.hive-block-form .map-panels-other.mobile.inset {
    height: auto;
    max-height: calc(100% - 50px);
}
.hive-block-form .spatial-map.map-container.adding-marker {
    margin-bottom: 15em;
}
.hive-block-form .spatial-map.map-container .map-info-wrapper {
    max-height: calc(100% - 50px);
    max-width: calc(100% - 10px);
    overflow: auto;
}
.hive-block-form .spatial-map.map-container .map-info-wrapper,
.hive-block-form .spatial-map.map-container .map-help-wrapper,
.hive-block-form .spatial-map.map-container .map-layers-wrapper,
.hive-block-form .spatial-map.map-container .map-base-wrapper,
.hive-block-form .spatial-map.map-container .map-categories-wrapper {
    border-radius: 5px;
}

div.ccm-page .hive-block-form .map-top-bar .btn-map.selected {
    background-color: #d1e4ed;
    border-color: #d1e4ed;
    color: #133357
}

.hive-block-form .map-top-bar .location-search-wrapper {
    width: 100%;
    max-width: 100%;
    z-index: 13;
}
.hive-block-form .map-top-bar .location-search-wrapper .mapboxgl-ctrl-geocoder{
    border-radius: 0px;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    min-width: auto;
}
.hive-block-form .map-top-bar .geolocate-wrapper .mapboxgl-ctrl-group {
    border-radius: 0px;
}
.hive-block-form .map-dock {
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3);
    border: 0;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    position: absolute;
    width: 100%;
    flex: 1;
    min-height: 40px;
    background: white;
}
.hive-block-form .map-dock .btn-map {
    flex-grow: 1;
    height: 40px;
    line-height: 40px;
}
.hive-block-form .map-dock div.btn-map button.btn-map {
    width: 100%;
}
.hive-block-form .map-dock button.btn-map {
    background-color: #fff;
    border: none;
    color: #444;
    border-inline-start: 1px solid #CCD0D4;
    min-width: 32px;
    max-height: 100%;
    font-size: 14px;
}
.hive-block-form .spatial-map.map-container .map-top-bar button:hover,
.hive-block-form .spatial-map.map-container .map-top-bar .btn-map button:hover,
.hive-block-form .spatial-map.map-container .map-dock .btn-map:hover {
    background-color: rgb(0 0 0 / 5%);
}
.hive-block-form .map-base-wrapper {
    width: calc(100% - 10px);
}
.hive-block-form .map-base-wrapper fieldset {
    padding: 15px;
}
.hive-block-form .map-base-wrapper h5 {
    margin-bottom: 0;
}
.hive-block-form .spatial-map .hive-submission-form.pin-details-wrapper.panel-right {
    width: 96%;
    top: auto;
    right: 0;
    bottom: auto;
    left: 0;
    margin: -210px auto 0;
    min-height: 200px;
    padding-top: 1em;
    box-sizing: content-box;
    box-shadow: -3px 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    position: absolute;
    background: #fff;
    overflow: auto;
    z-index: 12;
}
.hive-block-form .spatial-map .hive-submission-form.pin-details-wrapper.panel-right.view-feature {
    margin: auto;
    top: 45px;
    height: 100%;
    max-height: calc(100% - 65px);
}
.hive-block-form .spatial-map .offset.hive-submission-form.pin-details-wrapper .container-fluid {
    margin: 0;
}
.hive-block-form .spatial-map .add-marker-wrapper .alerts-wrapper {
    margin-top: 1em;
}
.hive-block-form .spatial-map button.form-add-marker,
.hive-block-form .spatial-map button.form-cancel-marker {
    position: absolute;
    z-index: 4;
    right: 0;
    left: 0;
    margin: auto;
    width: calc(100% - 30px);
    bottom: 15px;
    padding: 10px;
    font-weight: 600;
}
.hive-block-form .spatial-map button.form-add-marker span:nth-child(1),
.hive-block-form .spatial-map button.form-cancel-marker span:nth-child(1) {
    position: relative;
    top: 2px;
}
.hive-block-form .spatial-map button.form-add-marker span:nth-child(2),
.hive-block-form .spatial-map button.form-cancel-marker span:nth-child(2) {
    margin-inline-start: 2px;
}
.hive-block-form .spatial-map .p-tooltip {
    display: inline-block;
    width: fit-content;
    pointer-events: none;
    right: 0;
    left: 0;
    bottom: 62px;
    z-index: 4;
    position: absolute;
    margin: auto;
}

.hive-block-form .spatial-map .p-tooltip.p-tooltip-top {
    padding: 0.25em 0;
}

.hive-block-form .spatial-map .p-tooltip.p-tooltip-top .p-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    scale: 2;
    border-top-color: #262626; /* neutral-900 */
}

.hive-block-form .spatial-map .p-tooltip .p-tooltip-arrow {
    margin-left: -0.25rem;
    border-width: 0.25em 0.25em 0;
    bottom: 0px;
    left: 50%;
}
.hive-block-form .spatial-map .p-tooltip .p-tooltip-text {
    font-size: 1.2rem;
    background: #262626; /* neutral-900 */
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

@media only screen and (min-width: 48em) {
    .hive-block-form .spatial-map.map-container.adding-marker {
        margin-bottom: 0;
    }
    .hive-block-form .spatial-map button.form-add-marker,
    .hive-block-form .spatial-map button.form-cancel-marker {
        bottom: 25px;
        right: 15px;
        left: auto;
        width: 147px;
        margin: 0;
    }

    .hive-block-form .map-container.mapboxgl-wrapper .map.mapboxgl-map .mapboxgl-control-container .mapboxgl-ctrl-top-right .mapboxgl-ctrl.mapboxgl-ctrl-group {
        margin: 15px 15px 0 0;
    }

    .hive-block-form .spatial-map.map-container
        [class*="-wrapper"].panel-left.panel-popout {
        max-height: calc(100% - 90px);
        /* height: auto; */
        bottom: auto;
        right: auto;
        min-height: 100px;
        box-sizing: content-box;
        max-width: 335px;
        border-radius: 0;
        left: 15px;
        top: 45px;
        z-index: 3;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
        border: 0;
    }

    .hive-block-form .panel-left.panel-popout h5 {
        width: calc(100% + 30px);
        margin: -15px -15px 10px;
    }

    .hive-block-form .spatial-map.map-container div.map-info-wrapper.panel-left {
        overflow: auto;
        border-radius: 0;
        top: 15px;
        left: 15px;
        bottom: 15px;
    }

    .hive-block-form .map-dock {
        min-height: auto;
        width: auto;
        top: 15px;
        left: 15px;
    }

    .hive-block-form .map-dock .btn-map {
        width: 30px;
        height: 30px;
        padding: 0;
        margin: 0;
        display: inline-block;
    }

    .hive-block-form div.map-dock-panels > div {
        padding: 15px;
    }

    .hive-block-form .map-base-wrapper {
        width: auto;
    }

    .hive-block-form .map-base-wrapper fieldset {
        padding: 0;
    }

    .hive-block-form div.map-dock-panels > div.map-layers-wrapper {
        border-radius: 0;
    }

    .hive-block-form .map-layers-wrapper fieldset {
        margin: 0 -15px;
        width: calc(100% + 30px);
    }

    .hive-block-form .spatial-map .hive-submission-form.pin-details-wrapper.panel-right {
        top: 15px;
        bottom: 15px;
        right: 15px;
        left: auto;
        border: 0;
        padding: 0;
        max-width: 370px;
        box-sizing: content-box;
        box-shadow: -3px 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        min-height: 0;
        position: absolute;
        background: #fff;
        width: 100%;
        overflow: auto;
        z-index: 12;
        margin: 0;
    }

    .hive-block-form .spatial-map .hive-submission-form.pin-details-wrapper.panel-right.view-feature {
        height: auto;
        top: 15px;
        max-height: 100%;
    }

    .hive-block-form .spatial-map .hive-submission-form.pin-details-wrapper .container-fluid {
        width: 100%;
        padding: 24px 16px;
        min-height: 100%;
        height: 100%;
    }

    .hive-block-form .spatial-map .map-panels [class*="-wrapper"],
    .hive-block-form .spatial-map .map-wrapper [class*="-wrapper"] {
        max-width: 100%;
        width: 100%;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        max-height: 100%;
        flex-grow: 1;
        border: 0;
    }

    .hive-block-form .spatial-map.map-container [class*="-wrapper"].panel-left {
        background: #fff;
        position: absolute;
        z-index: 4;
        max-width: 370px;
        box-sizing: content-box;
        min-height: calc(100% - 60px);
        display: flex;
    }

    .hive-block-form .pin-details-wrapper,
    .hive-block-form .map-info-wrapper {
        box-shadow: -3px 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
    }

    .hive-block-form .map-info-wrapper {
        top: 93px;
        left: 30px;
        right: auto;
        bottom: auto;
    }

    .hive-block-form .pin-details-wrapper,
    .hive-block-form .map-info-wrapper,
    .hive-block-form .map-help-wrapper {
        background: #fff;
        color: #525252;
        width: 100%;
        z-index: 12;
    }

    .hive-block-form .map-base-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hive-block-form .spatial-map .row {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        max-height: 100vh;
    }

    .hive-block-form .spatial-map .col-xs-12 {
        flex: 1 1 0%;
        display: flex;
        flex-direction: column;
        padding: 0;
        background: #fff;
    }

    .hive-block-form .spatial-map .panel-content {
        display: flex;
        flex-direction: column;
        flex: 1 1 0%;
        padding-inline: 16px;
    }

    .hive-block-form .spatial-map .panel-content h4 {
        font-size: 1.6rem;
    }

    .hive-block-form .spatial-map .panel-content .panel-title h4 {
        font-size: 2rem;
    }

    .hive-block-form .panel-content .pin-meta {
        font-size: 1.4rem;
    }

    .hive-block-form .panel-content .pin-meta .meta-row .date {
        margin-inline-start: .5em;
        border-inline-start: 1px solid #757575;
        padding-inline-start: .5em;

    }

    .hive-block-form .spatial-map .p-tooltip {
        bottom: 72px;
        right: 5px;
        left: auto;
        margin: 0;
    }
}
