/* Feedback modal ported from the old ArcticModal form. */

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    padding: 1.5rem;
    overflow-y: auto;
    background: rgba(0, 0, 0, .6);
    box-sizing: border-box;
}

.feedback-modal[hidden] {
    display: none;
}

.feedback-modal__dialog {
    position: relative;
    width: 35rem;
    max-width: 100%;
    margin: auto;
}

.feedback-modal__panel {
    width: 100%;
    max-height: calc(100vh - 3rem);
    padding: 3.125rem;
    overflow-y: auto;
    background: #fff;
    box-sizing: border-box;
}

.feedback-modal__close {
    position: absolute;
    top: 0;
    right: -2.75rem;
    z-index: 1;
    width: 1.75rem;
    height: 1.6875rem;
    padding: 0;
    border: 0;
    background: url("../img/icoModalClose.png") no-repeat;
    cursor: pointer;
}

.feedback-modal__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: .1875rem;
}

.feedback-modal__title {
    margin: 0 0 1.25rem;
    color: #0c55a0;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1em;
    text-align: center;
    text-transform: uppercase;
}

.feedback-modal__content {
    width: 28.75rem;
    max-width: 100%;
    margin: 0 auto;
    color: #565656;
    font-size: .875rem;
    line-height: 1.8125rem;
    text-align: center;
}

.feedback-modal__lead {
    margin: 1em 0 2em;
}

.feedback-form {
    width: 23.75rem;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.feedback-form__error {
    margin: 0 0 .75rem;
    padding: .5rem .625rem;
    background: #fdecec;
    color: #b00020;
    font-size: .8125rem;
    line-height: 1.4;
}

.feedback-form__error:focus-visible {
    outline: 2px solid #b00020;
    outline-offset: 2px;
}

.feedback-field {
    margin-bottom: .75rem;
}

.feedback-field__label {
    display: block;
    margin: 0;
    color: #565656;
    font-size: .875rem;
    line-height: 1.8125rem;
    text-align: left;
}

.feedback-field__input,
.feedback-field__textarea {
    display: block;
    width: 100%;
    padding: 0 .5rem;
    border: 0;
    background: #e5f0f5;
    color: #26272a;
    font-family: inherit;
    font-size: .875rem;
    line-height: 1.8125rem;
    box-sizing: border-box;
}

.feedback-field__input {
    height: 1.8125rem;
}

.feedback-field__textarea {
    min-height: 12.6875rem;
    padding: .5rem;
    resize: vertical;
}

.feedback-field__input:focus,
.feedback-field__textarea:focus {
    outline: 2px solid #004f9f;
    outline-offset: 0;
}

.feedback-field__input[aria-invalid="true"],
.feedback-field__textarea[aria-invalid="true"] {
    outline: 2px solid #b00020;
}

.feedback-field__hint {
    margin: .25rem 0 0;
    color: #565656;
    font-size: .8125rem;
    line-height: 1.4;
}

.feedback-field__error {
    margin: .25rem 0 0;
    color: #b00020;
    font-size: .8125rem;
    line-height: 1.4;
}

.feedback-form__note {
    margin: 1em 0;
    color: #565656;
    font-size: .875rem;
    line-height: 1.4;
    text-align: center;
}

.feedback-form__submit {
    display: block;
    width: 6.75rem;
    height: 1.6875rem;
    margin: 0 auto 1rem;
    padding: 0;
    font-size: .8125rem;
    cursor: pointer;
}

.feedback-honeypot {
    position: absolute;
    left: -624.9375rem;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.feedback-success {
    width: 100%;
    max-width: 61.25rem;
    margin: 1.25rem auto;
    padding: 1rem 1.25rem;
    border-left: .25rem solid #004f9f;
    background: #e5f0f5;
    color: #26272a;
    font-size: .875rem;
    line-height: 1.5;
    text-align: center;
    box-sizing: border-box;
}

body.feedback-modal-open {
    overflow: hidden;
}

@media (max-width: 49.375rem) { /* 790px */
    .feedback-field__textarea {
        height: 7.5rem;
        min-height: 7.5rem;
    }

    .feedback-modal__panel {
        padding: 2rem 1.5rem 1.25rem;
    }

    .feedback-modal__title {
        font-size: 1.75rem;
    }

    .feedback-modal__lead {
        margin: 1em 0 1.25em;
    }
}

@media (max-width: 42.5rem) { /* 680px */
    /* Keep the base 24px gutter on mobile; the panel becomes slightly narrower. */
    .feedback-modal__dialog {
        width: 100%;
    }

    .feedback-modal__panel {
        max-height: calc(100vh - 3rem);
        padding: 2.5rem 1.25rem 1.25rem;
    }

    .feedback-modal__close {
        top: .5rem;
        right: .5rem;
        filter: brightness(0);
    }

    .feedback-modal__close:focus-visible {
        outline-color: #004f9f;
    }

    .feedback-modal__title {
        font-size: 1.75rem;
    }

    .feedback-modal__content {
        width: 100%;
    }

    .feedback-form {
        width: 100%;
    }
}

@media (max-width: 49.375rem) and (max-height: 45rem) { /* 790px / 720px */
    .feedback-modal__panel {
        padding: 1.5rem 1.25rem 1rem;
    }

    .feedback-modal__title {
        margin-bottom: .75rem;
        font-size: 1.5rem;
    }

    .feedback-modal__lead {
        margin: 0.75em 0 1em;
        line-height: 1.4;
    }

    .feedback-field {
        margin-bottom: .5rem;
    }

    .feedback-field__textarea {
        height: 6rem;
        min-height: 6rem;
    }

    .feedback-form__note {
        margin: 0.75em 0;
    }
}
