.form-container {
    /*margin-top: 80px;*/
    padding-inline: 8px;
}

.main-form {
    max-width: 600px;
    margin: 0 auto;
}
.main-form.editor { max-width: 100%; }

.form-title {
    font-size: 2em;
    font-weight: 450;
    color: var(--x-dark);
    text-align: center;
    margin-top: 24px;
}

.input-container {
    border-radius: 2em;
    position: relative;
    margin: 48px auto;
    max-width: 600px;
    width: 100%;
    cursor: text;
}
.input-container.short {
    max-width: 148px;
    margin: 48px auto 48px 0;
}
.input-container.color {
    max-width: max-content;
    margin: 32px auto;
}
.required-asterisk { color: red; }

.styled_input_bar {
    width: 100%;
    padding: .8em 1em .8em 1.5em;
    font-size: 1.1em;
    border: 2px solid var(--x-dark);
    border-radius: 2em;
    background-color: transparent;
    color: var(--dark);
    transition: var(--def-transition);
    box-sizing: border-box;
    outline: none;
    font-weight: 450;
}
.styled_input_bar:read-only:not(select) {
    color: var(--muted);
    cursor: default;
}
.styled_input_bar.select:disabled {
    color: var(--muted);
    cursor: default;
}

.styled_input_bar.select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}
.input-container.select::after {
    content: "▼";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.styled_input_bar.color {
    border: 2px solid #555;
    width: 108px;
    padding: 12px 12px 12px 16px;
    border-radius: 32px;
    height: 56px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: default;
}
.styled_input_bar.color::-moz-color-swatch {
    border: none !important;
    appearance: none !important;
    padding: 0 !important;
    background-color: transparent !important;
}
.styled_input_bar.color::-webkit-color-swatch {
    border: none !important;
    appearance: none !important;
    padding: 0 !important;
    background-color: transparent !important;
}
.styled_input_bar.color::-webkit-color-swatch-wrapper {
    border: none !important;
    appearance: none !important;
    padding: 0 !important;
    background-color: transparent !important;
}
.styled_input_bar.light { background-color: var(--x-light); }
.styled_input_bar.validation-failed { border-color: red; }
.styled_input_bar::placeholder { transition: var(--def-transition); }
.styled_input_bar:focus::placeholder { color: transparent; }
.input-label {
    font-weight: 450;
    position: absolute;
    left: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    color: var(--muted);
    pointer-events: none;
    transition: var(--def-transition);
    border-radius: 10px;
    border: 2px solid transparent;
}
.styled_input_bar:focus + .input-label,
.styled_input_bar:not(:placeholder-shown) + .input-label,
.styled_input_bar:hover + .input-label {
    top: -6px;
    left: 1.5em;
    font-size: 0.9em;
    color: var(--x-dark);
    background-color: var(--x-light);
    border-color: var(--x-dark);
    border-radius: 10px;
    padding: 0.22em 0.80em;
}
.input-label.focus {
    top: -6px;
    left: 1.5em;
    font-size: 0.9em;
    color: var(--x-dark);
    background-color: var(--x-light);
    border-color: var(--x-dark);
    border-radius: 10px;
    padding: 0.22em 0.80em;
}
.styled_input_bar.validation-failed:focus + .input-label,
.styled_input_bar.validation-failed:not(:placeholder-shown) + .input-label,
.styled_input_bar.validation-failed:hover + .input-label { border-color: red; }
.styled_input_bar:not(:focus):not(:placeholder-shown) + .input-label { color: var(--x-dark); }
.input-label.preview-title { top: 2em; }

.file-upload-container {
    /*margin: 0 auto 56px auto;*/
    margin: 0 auto 32px auto;
    padding: 16px;
    border-radius: 32px;
    border: 2px dashed rgb(82, 82, 82);
    box-shadow: 0 0 200px -50px rgba(0, 0, 0, 0.719);
    width: 100%;
    max-width: 304px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: #ddd;
    transition: all .15s linear;
    position: relative;
    cursor: pointer;
}
.file-upload-container.attached {
    width: max-content;
    height: max-content;
    object-fit: contain;
    padding: 4px;
}
.file-upload-container.attached .remove-attachment-btn { display: block; }

.file-upload-container.attached .file-upload-text,
.file-upload-container.attached .file-upload-icon-container,
.file-upload-container.attached .file-upload-button-container {
    display: none;
}

.file-upload-preview-img {
    transition: var(--def-transition);
    position: sticky;
    inset: 0;
    z-index: 5;
    border-radius: 32px;
    min-width: 96px;
}

.file-upload-container:has(.file-upload-label.dragging) {
    border: 2px dashed #22dd22;
    background-color: var(--x-light);
}

.file-upload-label {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-icon-container {
    display: flex;
    justify-content: center;
}
.file-upload-icon {
    width: 64px;
    padding: 4px;
    fill: var(--bbh-accent-light);
}

.file-upload-text {
    text-align: center;
    margin: 16px 0;
}
.file-upload-text p {
    font-weight: 450;
    font-size: 1.1em;
}

.file-upload-input { display: none; }

.file-upload-button-container {
    display: flex;
    justify-content: center;
}

.file-upload-button {
    border: none;
    background-color: var(--bbh-accent-light);
    padding: 8px 16px;
    font-weight: 450;
    border-radius: 8px;
    color: var(--x-light);
    transition: var(--def-transition);
    cursor: pointer;
}
.file-upload-button:hover { background-color: var(--x-dark); }

.remove-attachment-btn {
    z-index: 11;
    display: none;
    position: absolute;
    top: 8px;
    right: 0;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    background: transparent;
    border-radius: 50em;
    margin-left: 8px;
    padding: 1px 12px 1px 4px;
}
.remove-attachment-btn-icon {
    box-shadow: var(--def-box-shadow);
    border-radius: 100%;
    width:  32px;
    height: 32px;
}
.remove-attachment-btn-icon-p1, .remove-attachment-btn-icon-p2 {
    transition: var(--def-transition);
    fill: red;
}
.remove-attachment-btn-icon-p1 { fill: red; }
.remove-attachment-btn-icon-p2 { fill: #eee; }

.form-section-title {
    font-size: 1.5em;
    color: var(--x-dark);
    font-weight: 450;
    text-align: center;
    padding-bottom: 8px;
}
.form-section-description {
    font-size: 1.2em;
    font-style: italic;
    color: var(--muted);
    font-weight: 450;
    text-align: center;
    padding-bottom: 8px;
}

.editor-container {
    width: 100%;
    max-width: 1104px;
    margin: 0 auto;
    position: relative;
    border: 2px solid var(--x-dark);
    border-radius: 8px;
    transition: var(--def-transition);
}
.editor-container:has(.ql-editor.validation-failed) { border-color: red; }

.ql-toolbar.ql-snow {
    width: 100%;
    border: none;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 56px;
    background-color: var(--x-light);
    box-shadow: var(--def-box-shadow);
    z-index: 10;
}

.ql-container.ql-snow {
    width: 100%;
    border: none;
}

.ql-editor {
    font-family: "Montserrat", sans-serif;
    min-height: 200px;
    font-size: 1.2em;
}

.ql-picker,
.ql-picker span::before,
.ql-picker span svg line,
.ql-picker span svg polygon,
.ql-picker span svg polyline,
.ql-toolbar button,
.ql-toolbar button svg,
.ql-toolbar button svg path,
.ql-toolbar button svg line,
.ql-toolbar button svg polyline,
.ql-toolbar button svg rect {
    transition: var(--def-transition);
}

.ql-picker span { border-radius: 8px; }
.ql-picker, .ql-toolbar button {
    border-radius: 8px;
    margin: 4px;
}
.ql-picker:hover, .ql-toolbar button:hover { box-shadow: var(--def-box-shadow); }
.ql-toolbar button.ql-active, .ql-toolbar span.ql-expanded { box-shadow: var(--def-box-shadow); }

.txtarea-container {
    border-radius: 2em;
    position: relative;
    margin: 48px auto 0 auto;
    max-width: 600px;
    width: 100%;
    cursor: text;
}

.txtarea {
    max-width: 100%;
    min-width: 100%;
    min-height: 7em;
    height: 7em;
    font-size: 1.1em;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    padding: 1em .5em;
}

.buttons-container {
    max-width: 420px;
    margin: 0 auto;
    padding-top: 40px;
    display: flex;
    justify-content: space-around;
}

.message-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: var(--space-s);
}

.message-btn-icon-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.message-btn-icon {
    fill: var(--x-light);
    width:  16px;
    height: 16px;
    transition: var(--def-transition);
}

.feedback-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 64px;
    pointer-events: none;
    z-index: 90;
}

.feedback-message-wrapper {
    pointer-events: auto;
    width: 100%;
    max-width: 352px;
    border: 2px solid #111;
    background-color: #fff;
    border-radius: 50em;
    margin: 8px 0;
    box-shadow: var(--def-box-shadow);
    animation: fade-in-up .5s;
    user-select: none;
    display: grid;
    grid-template-rows: 1fr;
    transition:
            opacity 0.25s ease-out,
            transform 0.25s ease,
            grid-template-rows 0.25s ease,
            margin 0.25s ease;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.feedback-message-wrapper.hiding {
    opacity: 0;
    transform: translate3d(0, -48px, 0);
    grid-template-rows: 0fr;
    margin: 0;
}

.feedback-message-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.feedback-content-container {
    padding: 8px 0 8px 12px;
    display: flex;
    align-items: center;
}

.feedback-indicator {
    min-width:  8px;
    min-height: 8px;
    width:  8px;
    height: 8px;
    max-width:  8px;
    max-height: 8px;
    border-radius: 200em;
    margin-right: 8px;
}
.feedback-indicator.success { background-color: #22dd22; }
.feedback-indicator.error { background-color: red; }
.feedback-indicator.info { width: 0; height: 0; }

.feedback-message {
    font-size: 1em;
    font-weight: 550;
    color: var(--x-dark);
}

.close-feedback-btn {
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    background: transparent;
    border-radius: 50em;
    margin-left: 8px;
    padding: 1px 12px 1px 4px;
}
.close-feedback-btn-icon {
    box-shadow: var(--def-box-shadow);
    border-radius: 100%;
    width: 24px;
    height: 24px;
}
.close-feedback-btn-icon-p1 { fill: #fff; }
.close-feedback-btn-icon-p2 { fill: red; }

.msg-box-container {
    max-width: 900px;
    min-width: 200px;
    padding: 0;
    outline: none;
    border: none;
    border-radius: 16px;
}
.msg-box-container::backdrop {
    opacity: 0.7;
    background-color: black;
}

.msg-box {
    width: 100%;
    background-color: var(--x-light);
    border-radius: 16px;
    padding: .5em 1em 1em 1em;
}

.msg-box-text {
    color: var(--x-dark);
    max-width: 450px;
    margin: 0 auto;
    font-weight: 450;
    padding: .5em 1em;
    text-align: center;
    font-size: 1.2em;
}

.msg-box-sub-text {
    max-width: 450px;
    margin: 0 auto;
    padding: .5em 1em;
    text-align: center;
    font-size: 1em;
    font-weight: 450;
    color: var(--muted);
}

.msg-box-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2em auto 0 auto;
}

.btn-msg-box-confirm, .btn-msg-box-cancel,
.btn-msg-box-constructive, .btn-msg-box-destructive, .btn-msg-box-neutral {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: .5em 1em;
    padding: 24px 16px;
    width: 100%;
    max-width: max-content;
    height: 1.8em;
    border-radius: 32px;
    font-weight: 550;
    text-wrap: nowrap;
    cursor: pointer;
    transition: all .25s linear;
    font-size: 1.2em;
    background-color: #090c12;
    color: var(--x-light);
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-msg-box-confirm, .btn-msg-box-constructive { background-color: #228822;  }
.btn-msg-box-neutral { background-color: #aaa; }
.btn-msg-box-cancel, .btn-msg-box-destructive { background-color: red;}

.msg-box-select-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.msg-box-select {
    margin: 1em auto 0 auto;
    width: 100%;
    max-width: 16em;
    border: 1px solid #333;
    background-color: var(--x-light);
    color: #eee;
    border-radius: 5px;
    padding: .5em;
    cursor: pointer;
    transition: all .25s ease-out;
    text-align: center;
    text-align-last: center;
    outline: none;
}
.msg-box-select:hover {
    border-color: #555;
    color: #fff;
}

.options-modal {
    width: 100%;
    max-width: 400px;
    background-color: var(--x-light);
    color: var(--x-dark);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
}

.options-modal::backdrop { background-color: rgba(0,0,0,.8); }

.close-options-btn {
    outline: none;
    position: absolute;
    top: 16px;
    right: 0;
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 50%;
    margin-left: 8px;
    padding: 1px 12px 1px 4px;
}
.close-options-btn-icon {
    box-shadow: var(--def-box-shadow);
    border-radius: 50%;
    width:  32px;
    height: 32px;
}
.close-options-btn-icon-p1 {
    transition: var(--def-transition);
    fill: red;
}
.close-options-btn-icon-p2 {
    transition: var(--def-transition);
    fill: #eee;
}

.delete-btn {
    background-color: var(--x-dark);
    width: 100%;
    display: flex;
    align-items: center;
    border: none;
    font-size: 1.5em;
    border-radius: 32px;
    padding: 8px 12px;
    font-weight: 550;
    transition: var(--def-transition);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    color: var(--x-light);
    outline: none;
}

.delete-btn span {
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    width: 48px;
    height: 48px;
    margin-right: 8px;
}
.delete-btn span svg { fill: red; }

.tags-container {
    min-height: 80px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.tag {
    -webkit-tap-highlight-color: transparent;
    height: 48px;
    border-radius: 32px;
    font-size: 1.1em;
    font-weight: 450;
    background-color: #fff;
    color: var(--x-dark);
    padding: 8px 16px;
    margin: 8px 4px;
    transition: var(--def-transition);
    cursor: pointer;
    border: 2px solid #555;
}
.tag.selected { background-color: var(--tag-color); }
.tag.suggest {
    letter-spacing: 2px;
    background-color: var(--bbh-accent-light);
    color: var(--x-light);
    font-weight: 550;
    border: 2px dashed var(--light);
    box-shadow: var(--def-box-shadow);
}

.color-options-container {
    display: grid;
    grid-template-rows: repeat(16, 68px);
    grid-auto-flow: column;
    column-gap: 16px;
    row-gap: 12px;
    place-content: center;
}

.color-option {
    width:  64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #555;
    transition: var(--def-transition);
    cursor: pointer;
}
.color-option.selected { border: 4px solid var(--bbh-accent); }

.map-container {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.custom-map-control {
    background-color: var(--x-light);
    border: 0;
    border-radius: 32px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    margin-top: 16px;
    margin-right: 16px;
    padding: 0 12px;
    color: #333;
    transition: background-color 0.25s linear;
}

.custom-map-control:hover {
    background-color: #f5f5f5;
    color: #000;
}

.custom-map-search-container {
    width: 100%;
    padding: 16px 16px;
}

.custom-map-search {
    background-color: #fff;
    border: 0;
    border-radius: 32px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    height: 40px;
    padding: 0 16px;
    width: 100%;
    outline: none;
    text-overflow: ellipsis;
    color: var(--x-dark);
}

.custom-map-search:focus {
    border-color: #4d90fe;
    box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 0 0 1px #4d90fe;
    background-color: #fff;
}

.toggle-label {
    font-size: .9em;
    font-weight: 450;
    padding: 0.22em 0.80em;
    border: 2px solid var(--x-dark);
    border-radius: 10px;
    margin-left: 24px;
}

.toggle {
    width: 72px;
    margin-left: 8px;
}

.toggle input { display: none; }

.toggle label {
    display: block;
    position: relative;
    width: 72px;
    height: 36px;
    border: 2px solid var(--x-dark);
    border-radius: 200em;
    background: var(--x-light);
    cursor: pointer;
}

.toggle label::after {
    display: block;
    border-radius: 100%;
    background-color: red;
    content: '';
    animation-name: toggle-size;
    animation-duration: 0.25s;
    animation-timing-function: ease-out;
    animation-direction: forwards;
    animation-iteration-count: 1;
    animation-play-state: running;
}

.toggle label::after, .toggle label .toggle-on, .toggle label .toggle-off {
    position: absolute;
    top: 50%;
    left: 25%;
    width: 26px;
    height: 26px;
    transform: translateY(-50%) translateX(-50%);
    transition: left 0.25s ease-in-out, background-color 0.25s ease-out, width 0.25s ease-in-out, height 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

.toggle input:checked + label::after,
.toggle input:checked + label .toggle-on,
.toggle input:checked + label .toggle-off {
    left: 75%;
}

.toggle input:checked + label::after {
    background-color: #228822;
    animation-name: toggle-size2;
}

.toggle .toggle-on, .toggle .toggle-off {
    opacity: 1;
    z-index: 2;
}

.toggle input:checked + label .toggle-off, .toggle input:not(:checked) + label .toggle-on {
    width: 0;
    height: 0;
    opacity: 0;
}

.toggle .path {
    fill: none;
    stroke: #fefefe;
    stroke-width: 7px;
    stroke-linecap: round;
    stroke-miterlimit: 10;
}

@keyframes toggle-size {
    0%, 100% {
        width: 26px;
        height: 26px;
    }
    50% {
        width: 20px;
        height: 20px;
    }
}

@keyframes toggle-size2 {
    0%, 100% {
        width: 26px;
        height: 26px;
    }
    50% {
        width: 20px;
        height: 20px;
    }
}


/*-------------------------------------------------------------------------------------------------------------------*/
                                /* -- Mobile first approach using new breakpoints -- */
/*-------------------------------------------------------------------------------------------------------------------*/

@media (min-width: 375px) {}

@media (min-width: 576px) {}

@media (min-width: 768px) {

    .color-option {
        width:  32px;
        height: 32px;
        border-radius: 50%;
        border: 2px solid #555;
        transition: var(--def-transition);
    }
    .color-options-container {
        grid-template-columns: repeat(16, 36px);
        grid-template-rows: auto;
        grid-auto-flow: row;
        column-gap: 12px;
        row-gap: 16px;
    }
}

@media (min-width: 992px) {
    .color-option {
        width:  40px;
        height: 40px;
    }
    .color-options-container { grid-template-columns: repeat(16, 44px); }
}

@media (min-width: 1036px) {
    .color-option {
        width:  48px;
        height: 48px;
    }
    .color-options-container { grid-template-columns: repeat(16, 52px); }
}

@media (min-width: 1062px) {}

@media (min-width: 1200px) {
    .color-option {
        width:  56px;
        height: 56px;
    }
    .color-options-container { grid-template-columns: repeat(16, 60px); }
}

@media (hover: hover) {
    .remove-attachment-btn:hover .remove-attachment-btn-icon-p1 { fill: #f00; }
    .remove-attachment-btn:hover .remove-attachment-btn-icon-p2 { fill: #fff; }

    .close-options-btn-icon:hover .close-options-btn-icon-p1 { fill: #f00; }
    .close-options-btn-icon:hover .close-options-btn-icon-p2 { fill: var(--x-light); }

    .btn-msg-box-confirm:hover, .btn-msg-box-constructive:hover { background-color: #44aa44;  }
    .btn-msg-box-neutral:hover { background-color:  #ccc; }
    .btn-msg-box-cancel:hover, .btn-msg-box-destructive:hover { background-color: #fc473e;}

    .tag:hover { background-color: #efefef; }
    .tag.selected:hover {
        background-color: var(--tag-color);
        filter: brightness(1.1);
    }
    .tag.suggest:hover {
        filter: brightness(1.1);
        background-color: var(--bbh-accent-light);
    }
}