.self-help-box {
    padding: 1rem 1.5rem 1rem 1.5rem;
    margin-top: 0.625rem;
    background-color: var(--background-primary-dark);
}

.self-help-box__link {
    color: var(--text-color-regular);
}

.self-help-box__button {
    padding: 0.9rem;
    border: 0.125rem solid var(--text-color-regular);
    margin-top: 1rem;
    border-radius: 0.3125rem;
    display: inline-block;
    color: var(--text-color-regular);
    text-decoration: none;
}


.amedia-contact-form__submit {
    background-color: var(--bacground-success);
    color: var(--text-color-light);
    padding: 0.9375rem;
    font-size: 1rem;
    border-radius: 0.3125rem;
}

.amedia-contact-form__list {
    padding-left: 0;
    list-style-type: none;
}

.amedia-contact-form ul{
    padding-left: 0;
}

.amedia-contact-form__list .amedia-contact-form__list-item .form-checkbox {
    font-size: 0.875rem;
}

.form-checkbox button {
    border: none;
    font-size: 0.875rem;
    font-weight: bold;
    text-decoration: underline;
    background: none;
    padding: 3px;
}

.form-checkbox input {
    margin-right: 10px;
}

.amedia-contact-form__submit:disabled {
    opacity: 0.38;
}

.amedia-contact-form__submit-success {
    color: var(--bacground-success);
}

.form-dropdown {
    margin-bottom: 1.75rem;
}

.form-dropdown--disabled {
    color: var(--text-color-medium);
}

.form-dropdown__label {
    margin-bottom: 0.75rem;
}

.form-dropdown__selector {
    display: block;
    font-size: 1rem;
    color: var(--text-color-regular);
    line-height: 1.3;
    padding: 0.6rem 1.4rem 0.5rem 0.8rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 0.125rem solid var(--border-color-light);
    border-radius: 0.3125rem;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--background-primary-light);
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23fffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat, repeat;
    background-position: right 0.7rem top 50%, 0 0;
    background-size: 0.65rem auto, 100%;
    height: 3.125rem;
}

.form-input {
    color: var(--text-color-regular);
    display: block;
    box-sizing: border-box;
    margin-bottom: 1.75rem;
}

.form-input__label,
.form-dropdown__label {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.form-input__input-field {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.3125rem 0.625rem 0.3125rem 0.625rem;
    height: 3.125rem;
    border: 0.125rem solid var(--border-color-light);
    border-radius: 0.3125rem;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    display: block;
}

.form-input__tooltip-icon {
    margin-left: 0.25rem;
}

.form-input__tooltip-text {
    padding: 0.5rem;
    background-color: var(--background-primary-medium);
}

.form-input__input-field--error {
    border: 0.125rem solid var(--border-error);
}

.form-input__error-msg {
    background-color: var(--background-error);
    padding: 0.8rem;
    max-width: 100%;
    margin: 0.1rem;
    min-width: fit-content;
    position: relative;
}

.form-input__error-msg:after {
    bottom: 100%;
    left: 1rem;
    content: ' ';
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border: 0.5rem solid rgba(0, 0, 0, 0);
    border-bottom-color: var(--background-error);
    margin-left: -0.5rem;
}

.form-input__input-field--textarea {
    height: 4.5rem;
}

.form-input__input-field:hover,
.form-input__input-field:active,
.form-input__input-field:focus {
    border: 0.1rem solid #292827;
}

.form-input--disabled .form-input__input-field {
    border: 0.1rem solid var(--border-color-light);
}

.form-input--disabled .form-input__label {
    color: var(--text-color-medium);
}

.form-input__input-field::-webkit-inner-spin-button,
.form-input__input-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-input__required-icon,
.form-dropdown__required-icon {
    color: red;
}

.share-links {
    font-weight: normal;
    font-size: 1.125rem;
    line-height: 1.375rem;
    padding-bottom: 0.625rem;
    display: block;
    color: var(--text-color-regular);
}

.dropzone {
    margin-bottom: 20px;
    border: 0.125rem dashed var(--border-color-light);
    box-sizing: border-box;
    font-size: 0.9375rem;
    border-radius: 0.3125rem;
    display: flex;
    justify-content: center;
    padding: 1rem;
    align-items: center;
    text-align: center;
}

.dropzone--disabled {
    color: var(--text-color-medium);
}

.dropzone__bold-text {
    font-weight: bold;
    display: inline;
    text-decoration: underline;
}

.dropzone-label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.attachments-container {
    display: flex;
    margin-top: 2rem;
    box-sizing: border-box;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.attachment {
    position: relative;
    margin-bottom: 1rem;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-height: 13.125rem;
    border-radius: 0.3125rem;
    overflow: hidden;
    border: 0.125rem solid var(--border-color-light);
}

.attachment__preview-container {
    position: relative;
    height: auto;
    display: flex;
    padding: 0.7rem;
    padding-top: 1rem;
    align-items: center;
    justify-content: center;
}

.attachment__image {
    border-radius: 0.3125rem;
    width: 10.125rem;
    height: 9.3125rem;
    object-fit: contain;
}

.attachment__video {
    width: 100%;
}

.attachment__chip {
    position: absolute;
    top: 1.0625rem;
    left: 0.625rem;
    max-width: 80%;
    opacity: 0;
    height: 3ch;
    padding: 0.25rem 1rem 0.25rem 1rem;
    border-radius: 3.125rem;
    color: var(--text-color-light);
    background-color: rgba(40, 40, 40, 0.62);
    transition: opacity 0.2s linear;
}

.attachment__preview-container:hover .attachment__chip {
    opacity: 1;
}

.attachment__filename {
    text-overflow: ellipsis;
    overflow: hidden;
    height: 100%;
}

.attachment__body {
    width: 100%;
    padding: 1rem;
}

.attachment__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/*
    TODO:
    Remove .form-input overwrite
    the .form-input class is used by the TextInput component,
    but due to its currently (should be fixed) inflexible nature it has to be overwritten.
*/

.attachment__content > .form-input {
    margin-bottom: 0.3rem;
    width: 100%;
}

.attachment__error {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.attachment__progress {
    max-width: 12rem;
    max-height: 12rem;
    margin: 0.625rem auto;
    position: relative;
}

.attachment__progress-text {
    position: absolute;
    font-size: 1.5rem;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 48rem) {
    .attachment {
        flex-direction: column;
        border: 0.125rem solid #e7e6e2;
    }

    .attachment__chip {
        margin: 0 auto;
        left: 0;
        opacity: 1;
        right: 0;
        text-align: center;
    }

    .attachment__preview-container {
        width: 100%;
        height: 100%;
    }

    .attachment__remove {
        color: var(--text-color-regular);
    }

    .attachment__image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .attachment__video {
        height: 100%;
    }

    .attachment__body {
        width: 100%;
        flex-basis: 13.5rem;
    }
}

/*TERMS & CONDITION MODAL */

.termsModalHide {
    display: none;
}

.termsModal {
    position: fixed;
    background: rgba(0, 0, 0, 0.4);
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.termsModal__body{
    white-space: pre-wrap;
}

.termsModal span div {
    margin-top: 20px;
}

.termsModal span{
    box-shadow: 0.0625rem 0.0625rem 0.375rem rgba(0, 0, 0, 0.25);
    border-radius: 0.25rem;
    background: white;
    padding: 3.125rem;
    max-width: 62.5rem;
    width: 90%;
    height: auto;
    max-height: 80%;
    overflow: scroll;
    left: 50%;
    top: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.closeButton {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    border-radius: 0.25rem;
    color: grey;
    background: none;
    font-size: 1.25rem;
    padding: 0.25rem 0.625rem;
}

@media screen and (max-width: 48rem) {
    .termsModal span {
        height: 18.75rem;
        overflow: scroll;
        font-size: 0.625rem;
        padding: 15px;
    }
    .termsModal span p {
        font-size: 10px;
        line-height: 12px;
    }
    .termsModal span h1 {
        font-size: 14px;
        line-height: 14px;
        padding-right: 25px;
    }
}

/* BEGIN EXTERNAL STYLES FROM npm package react-circular-progressbar */

.CircularProgressbar {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

.CircularProgressbar .CircularProgressbar-path {
    stroke: #3e98c7;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease 0s;
}

.CircularProgressbar .CircularProgressbar-trail {
    stroke: #d6d6d6;
    stroke-linecap: round;
}

.CircularProgressbar .CircularProgressbar-text {
    fill: #3e98c7;
    font-size: 1rem;
    dominant-baseline: central;
    text-anchor: middle;
}

.CircularProgressbar .CircularProgressbar-background {
    fill: #d6d6d6;
}

.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-background {
    fill: #3e98c7;
}

.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-text {
    fill: #fff;
}

.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-path {
    stroke: #fff;
}

.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-trail {
    stroke: transparent;
}

/* END EXTERNAL STYLES */
