/* ---------- Шрифт ---------- */

@font-face {
    font-family: 'Alumni Sans';
    src: url('../fonts/AlumniSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}


/* ---------- Общие стили ---------- */

* {
    box-sizing: border-box;
    font-family: 'Alumni Sans', Arial, sans-serif;
    color: #1F1B18;

}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #1F1B18;
}


/* ---------- Фон страницы ---------- */

.fixed-crossbrowser-background {
    background-color: #1F1B18;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}


/* ---------- Основная подложка анкеты ---------- */

.main {
    width: calc(100% - 30px);
    max-width: 500px;

    margin: 150px auto;

    background: #FFF8EA;

    border: 5px solid #1F1B18;
    border-radius: 70px;

    overflow: hidden;
}


/* ---------- Логотип ---------- */

.img {
    text-align: center;
}

.img img {
    width: 50%;
    max-width: 250px;
    height: auto;
}


/* ---------- Заголовок ---------- */

.top {
    width: 70%;
    margin: 44px auto 0;
}

.top h1 {
    margin: 0 0 20px;

    font-family: 'Alumni Sans', Arial, sans-serif;
    font-size: 36px;
    line-height: 1.05;
    font-weight: 400;

    text-align: center;
    text-transform: uppercase;

    color: #1F1B18;
}

.top p,
.top span {
    font-family: 'Alumni Sans', Arial, sans-serif;
    color: #1F1B18;
}


/* ---------- Поля формы ---------- */

.input {
    width: 100%;
    margin-top: 10px;
    color: #1F1B18;
}

.form-input-field-name,
.form-textarea-field-name {
    display: inline-block;

    width: 70%;
    margin-bottom: 8px;

    font-family: 'Alumni Sans', Arial, sans-serif;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 400;

    text-align: left;
    text-transform: uppercase;

    color: #1F1B18;
}


/* ---------- Input ---------- */

.input input {
    display: block;

    width: 70%;
    min-height: 52px;

    margin: 0 auto;
    padding: 10px;

    border: 1px solid #1F1B18;
    border-radius: 0;

    background: transparent;

    font-family: 'Alumni Sans', Arial, sans-serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;

    color: #1F1B18;
    text-transform: uppercase;
}


/* ---------- Placeholder ---------- */

.input input::placeholder,
.comment textarea::placeholder {
    font-family: 'Alumni Sans', Arial, sans-serif;
    color: #1F1B18;
    opacity: 1;
}


/* ---------- Дата ---------- */

input[type="date"] {
    font-family: 'Alumni Sans', Arial, sans-serif;
    color: #1F1B18;
}


/* ---------- Textarea ---------- */

.comment {
    width: 100%;
    margin-top: 30px;
}

.comment textarea {
    display: block;

    width: 70%;
    min-height: 120px;

    margin: 0 auto;
    padding: 10px;

    border: 1px solid #1F1B18;
    border-radius: 0;

    background: transparent;

    font-family: 'Alumni Sans', Arial, sans-serif;
    font-size: 22px;
    line-height: 1.2;

    color: #1F1B18;

    resize: vertical;
}





/* ---------- Кнопка ---------- */

.submit {
    float: none;
    width: 100%;
    padding-bottom: 70px;
}

#button-submit {
    width: 100%;
    margin-left: 0;

    text-align: center;
    background-image: none;
}

.button-submit {
    width: 70%;

    margin: auto;
    padding: 12px 10px;

    border: 0;
    border-radius: 6px;

    background: #1F1B18;
}

.submit span {
    display: block;

    padding: 5px 0;

    font-family: 'Alumni Sans', Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;

    text-align: center;
    text-transform: uppercase;

    color: #FFF8EA;
}


/* ---------- Ошибки ---------- */

.input input.error,
.comment textarea.error {
    border-color: #e31616;
}


/* ---------- Экран после отправки ---------- */

.success-msg {
    margin: 30px 15% 50px;
}

.success-msg h1 {
    margin: 0 0 20px;

    font-family: 'Alumni Sans', Arial, sans-serif;
    font-size: 36px;
    line-height: 1.05;
    font-weight: 400;

    text-align: center;
    text-transform: uppercase;

    color: #1F1B18;
}

.success-msg p {
    font-family: 'Alumni Sans', Arial, sans-serif;
    font-size: 22px;
    line-height: 1.2;

    color: #1F1B18;
}


/* ---------- Ссылки ---------- */

a,
a:visited,
a:hover,
a:active {
    color: #1F1B18;
}


/* ---------- Мобильная версия ---------- */

@media (max-width: 540px) {

    .main {
        width: calc(100% - 20px);
        margin: 30px auto;

        border-width: 4px;
        border-radius: 50px;
    }

    .img img {
        width: 55%;
        max-width: 240px;
    }

    .top {
        width: 78%;
    }

    .top h1 {
        font-size: 32px;
    }

    .form-input-field-name,
    .form-textarea-field-name {
        width: 78%;
        font-size: 21px;
    }

    .input input,
    .comment textarea {
        width: 78%;
    }

    .button-submit {
        width: 78%;
    }

    .success-msg {
        margin-left: 11%;
        margin-right: 11%;
    }
}