@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

html {
    font: 16px / 1.5em "Raleway", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    margin: 0;
    padding: 8px;
}

*:focus,
*:focus-visible {
    outline: solid 3px #639af9;
    outline-offset: 5px;
}

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

h2.form__heading {
    color: #693cb8;
    text-align: center;
}

.form__control {
    margin-bottom: 1.5rem;
}

.form__control--danger {
    border-left: 3px solid #9d0a0f;
    padding-left: 1.5rem;
}

.form__control--danger .form__label,
.form__control--danger .form__help {
    color: #9d0a0f;
}

.form__label {
    display: block;
    width: 100%;
    font-weight: 700;
    margin-bottom: .75rem;
}

.form__field,
.form__textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    background-color: #fff;
    border: 1px solid #888;
    appearance: none;
    border-radius: 10px;
    color: #171717;
    margin: 0;
    padding: 20px;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
}

.form__textarea {
    border-radius: 10px 10px 0 10px;
    resize: vertical;
}

.form__label .form__required {
    display: inline-block;
    font-style: normal;
    overflow: hidden;
    position: relative;
    text-indent: 100%;
    vertical-align: text-bottom;
    width: 1.5rem;
    white-space: nowrap;
}

.form__label .form__required:after {
    content: '*';
    display: inline-block;
    left: 0;
    position: absolute;
    speak: none;
    text-indent: .25em;
    vertical-align: middle;
    color: #9d0a0f;
    font-weight: 700;
}

.form__label--radio {
    display: inline;
}

.form__radio {
    margin: .5rem;
    margin-left: 0;
}

.form__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form__actions .button {
    display: inline-block;
    margin-top: 0;
    padding-left: 24px;
    padding-right: 24px;
    min-height: 48px;
    width: max-content;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.button--primary,
.button--primary:visited {
    background-color: rgb(105, 60, 184);
    color: #fff;
    border: none;
}

.button--secondary,
.button--secondary:visited {
    background-color: #fff;
    color: rgb(105, 60, 184);
    border: 2px solid rgb(105, 60, 184);
}

.alert.alert--danger {
    background-color: #ebcdce;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert > h3.alert__heading {
    margin-top: 0;
}

.alert > p.alert__text {
    margin-bottom: 0;
}

.alert > p.alert__text > a {
    color: #000;
}

.g-recaptcha {
    margin-bottom: 1.5rem;
}

@media screen and (min-width: 600px) {
    .form__actions .button {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media screen and (min-width: 760px) {
    html {
        font-size: 20px;
    }

    .form__actions .button {
        font-size: 16px;
    }
}

@media screen and (min-width: 960px) {
    html {
        font-size: 24px;
    }

    .form__actions .button {
        padding-left: 40px;
        padding-right: 40px;
    }
}