﻿/*  /* Add the following to a stylesheet to customise colours:
:root {     
    --current-area-text-color:rgb(0,0,0);
    --feedback-form-background-color:rgb(255,255,255);
    --feedback-form-radius: 1rem;
    --feedback-form-close-button-color: rgb(176,21,37);
    --feedback-form-close-button-radius: 0.5rem;
    --feedback-form-submit-button-radius: 0.5rem;
    --feedback-form-submit-button-text-color: rgb(255,255,255);
    --feedback-form-submit-button-background-color: rgb(207,52,137);
    --feedback-form-help-text-color: rgb(92,92,92);
    --feedback-form-error-color:rgb(206,6,6);
    --feedback-form-tag-selected-color: #9acd32;
}*/

[data-fdb-panel="hidden"] {
    display: none;
}

[data-fdb-panel="open"] {
    display: block;
}

#feedbackDialog {
    border: none;
    background: transparent;
}

    #feedbackDialog::backdrop {
        background-image: none;
        background-color: #333;
        opacity: 0.75;
    }

.fdb-c-submit {
    background: var(--feedback-form-background-color, rgb(255 255 255));
    border-radius: var(--feedback-form-radius,1rem);
    box-shadow: rgba(149 157 165 20%) 0px 8px 24px;
    padding: 2rem;
    position: relative;
    margin: 0 auto;
}

@media all and (min-width:1200px) {
    .fdb-c-submit {
        min-width: 350px;
        max-width: 900px;
    }
}

.fdb-c-submit__heading {
    font-weight: 800;
    font-size: 2.5rem;
    padding-left: 0;
}

.fdb-c-submit__group {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
}

    .fdb-c-submit__group legend {
        margin-bottom: 0;
    }

.fdb-c-submit__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.fdb-c-submit__hint {
    color: var(--feedback-form-help-text-color, rgb(92 92 92));
    padding: 0;
    margin: 0.25rem 0 0;
    order: 3;
    font-size: 0.9rem;
}

.fdb-c-submit__fielderror {
    color: var(--feedback-form-error-color,rgb(206 6 6));
    display: none;
}

.fdb-h-error .fdb-c-submit__question {
    color: var(--feedback-form-error-color,rgb(206 6 6));
}

    .fdb-h-error .fdb-c-submit__question::after {
        content: '\f071';
        font-family: "FontAwesome";
        margin-left: 0.5rem;
    }

.fdb-h-error textarea {
    border: 1px solid var(--feedback-form-error-color,rgb(206 6 6));
}

.fdb-c-submit__fielderror.showing {
    display: inline;
}

.fdb-c-submit__question {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.fdb-c-submit__radio {
    display: block;
    margin: 0 0 0.5rem 0;
}

.fdb-c-submit__radio-option {
    padding: 1rem 0;
    margin: 0;
}

.fdb-c-submit__radiolabel {
    margin-left: 0.25rem;
}

.fdb-c-submit__radiochoice {
    appearance: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    transition: 0.2s all linear;
    position: relative;
    top: 5px;
}

    .fdb-c-submit__radiochoice:checked {
        border: 6px solid black;
    }

@media all and (min-width:768px) {
    .fdb-c-submit__radio {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }

    .fdb-c-submit__radio-option {
        margin: 0 1.5rem 0 0;
    }
}


.fdb-c-submit__tag-option {
    display: inline-block;
    margin-right: 1rem;
}

.fdb-c-submit__tag-heading {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.fdb-c-submit__tag {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.fdb-c-submit__tag-option label {
    padding: 0 2rem;
    border: 1px solid #999;
    border-radius: 5rem;
}

.fdb-c-submit__tag-option:focus-within label {
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.fdb-c-submit__tag-option input:checked ~ label {
    background-color: var(--feedback-form-tag-selected-color, #9acd32);
}

/*.fdb-c-submit__tag-option input:checked ~ label::before {
    content: '\f00c';
    font-family: 'FontAwesome';
} */


#dialogClose {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--feedback-form-close-button-color, rgb(206 6 6));
    color: #fff;
    border: 3px solid #fff;
}

    #dialogClose::before {
        content: '\00d7';
        font-size: 1.5rem;
    }

.fdb-c-submit .fdb-c-button {
    margin-top: 2rem;
    display: block;
    background-color: var(--feedback-form-submit-button-background-color, rgb(0 0 0));
    color: var(--feedback-form-submit-button-text-color,rgb(255 255 255));
    border-radius: var(--feedback-form-submit-button-radius, 0.5rem);
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    transition: background-color 0.5s, color 0.5s;
}

#fdb-currentAreaText {
    color: var(--current-area-text-color, rgb(0 0 0));
}

#fdb-currentAreaMessage {
    margin-top: 2rem;
}

#fdb-currentAreaText {
    font-weight: 700;
    font-size: 1.25rem;
}

dialog#feedbackDialog:not([open]) {
    position: absolute;
    display: none;
}
