/*Custom props*/
:root {
    --ink-color: #7019ff;
    --black-color: #000000;
    --button-color: #ff1919;
    --some-text-color: #48635b;
    --placeholder-text--color: #bfd2cc;
    --poppins-shrift: "Poppins", "Arial", sans-serif;
    --unbounded-shrift: "Unbounded", "Poppins", "Arial", sans-serif;
}


/*General styles*/
html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: #ffffff;
    background-image: url("../img/main-bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;

}

h1, h2, h3, h4, h5, h6, p, a, ul, li {
    margin: 0;
    padding: 0;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

input, input:focus {
    outline: none;
}


.container {
    width: 100%;
    max-width: 1480px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

/*Visually hidden */

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.button {
    width: 100%;
    max-width: 430px;
    height: 54px;
    padding: 15px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background-color: var(--button-color);
    box-shadow: 0 0.3rem 0 0 rgba(255, 0, 0, 0.25)
}

.button:hover {
    opacity: 0.8;
}

.button:active {
    transform: translateY(0.3rem);
    opacity: 0.6;
}


/*Main page  styles*/

.registration-main {
    flex-grow: 1;
    height: 100vh;
    padding-top: 36px;
    padding-bottom: 36px;
    overflow: auto;
}

.registration-main__inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 576px;
}

/*Registration main top*/

.registration-main__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.registration-main__top div {
    width: 100%;
    max-width: 395px;
    height: 40px;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 8px;
    background-color: var(--ink-color);
}

.registration-main__top div strong {
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    font-family: var(--poppins-shrift);
    font-weight: 400;
    line-height: normal;
}


.registration-main-title {
    margin-bottom: 8px;
    color: #ffffff;
    font-family: var(--unbounded-shrift);
    font-size: 38px;
    font-weight: 700;
    line-height: normal;

}

.registration-main__top span {
    color: #ffffff;
    text-align: center;
    font-family: var(--poppins-shrift);
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}


/*Tabs styles*/
.registration-main__tabs {
    width: 100%;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    background-image: url("../img/tabs-line.svg");
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: center 24px;
}


.registration-tabs__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 370px;
    margin-left: auto;
    margin-right: auto;
}

.registration-tabs__item {
    width: 26%;
    cursor: pointer;
    white-space: nowrap;
}

.registration-tabs__item:hover span, .selected-tab span {
    background-color: var(--ink-color);
}

.registration-tabs__item:hover svg {
    color: #ffffff;
}

.registration-tabs__item:hover p, .selected-tab p {
    color: var(--ink-color) !important;
}

.registration-tabs__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.registration-tabs__item:not(:last-child) {
    margin-right: 35px;
}

.registration-tabs__symbol {
    width: 43px;
    height: 43px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    padding: 9.5px;
    background-color: #f3f4f8;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.registration-tabs__symbol svg {
    flex-shrink: 0;
    color: var(--ink-color)
}

.registration-tabs__inner p {
    color: var(--black-color);
    text-align: center;
    font-family: var(--poppins-shrift);
    font-size: 14px;
    font-weight: 400;
    line-height: 132%;
}


/*Registration main form styles*/


.registration-main__form {
    width: 100%;
    max-width: 490px;
    min-height: 670px;
    background-color: #ffffff;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    border-radius: 24px;
}


.registration-main-form__top {
    width: 100%;
}

.registration-main-form__top div {
    width: 100%;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 18px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--black-color);
    text-align: center;
}


.registration-main-form__top div span {
    color: #ffffff;
    text-align: center;
    font-family: var(--poppins-shrift);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.registration-main-form__title {
    margin-bottom: 18px;
    color: var(--black-color);
    text-align: center;
    font-family: var(--unbounded-shrift);
    font-size: 20px;
    font-weight: 600;
    line-height: 132%;
}

.registration-form__wrapper {
    margin-top: 10px;
    margin-bottom: 30px;
}

.registration-form__error {
    display: none;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 12px;
    font-family: var(--poppins-shrift);
    text-align: center;
    color: var(--button-color);
    border: 1px solid var(--button-color);
    background-color: rgba(255, 25, 25, 0.1);
}

.registration-form__error--show {
    display: block;
}

.form-registration__label {
    display: block;
    color: #48635b;
    font-family: var(--poppins-shrift);
    font-size: 16px;
    font-weight: 400;
    line-height: 132%;
}

.registration-form__input {
    width: 100%;
    max-width: 430px;
    height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #bed4da;
    background-color: #f3f7f8;
    color: var(--black-color);
    font-family: var(--poppins-shrift);
    font-size: 16px;
    font-weight: 400;
    line-height: 132%;
}

select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

.registration-main__button span {
    color: #ffffff;
    font-family: var(--poppins-shrift);
    font-size: 18px;
    font-weight: 600;
    line-height: 132%;
    text-transform: uppercase;
}

/*Modals styles*/

.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    overflow: auto;
}

.modal-container--open {
    display: block;
}

.modal-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 24px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 30px;
}

.modal__inner {
    flex-grow: 1;
}

.modal__inner h1 {
    font-size: 16px;
    text-align: center;
    font-family: var(--unbounded-shrift);
    color: var(--ink-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.modal__inner p {
    margin-bottom: 40px;
    font-size: 16px;
    text-align: center;
    font-family: var(--unbounded-shrift);
}


.modal__button {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    color: #ffffff;
    font-size: 22px;
    font-family: var(--unbounded-shrift);
}


/*Registration  main media queries*/

@media only screen and (max-width: 625px) {
    body {
        background-position: left top;
        background-attachment: fixed;
    }

    .container {
        max-width: 1480px;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .registration-main__form {
        padding: 20px;

    }

    .registration-main-title {
        font-size: 32px;

    }
}

@media only screen and (max-width: 540px) {
    .registration-main-title {
        font-size: 28px;
    }
}


@media only screen and (max-width: 520px) {
    .registration-main-title {
        font-size: 28px;
    }

    .registration-main-form__title {
        font-size: 18px;
    }
}


@media only screen and (max-width: 510px) {
    .registration-main-title {
        font-size: 28px;

    }

    .registration-main-form__title {
        font-size: 16px;
    }
}

@media only screen and (max-width: 490px) {
    .registration-main-title {
        font-size: 24px;
    }

    .registration-main-form__title {
        font-size: 16px;
    }
}


@media only screen and (max-width: 470px) {
    .registration-main-title {
        font-size: 24px;
    }

    .registration-main-form__title {
        font-size: 16px;
    }


    .registration-tabs__inner p {
        font-size: 13px;
    }

}

@media only screen and (max-width: 450px) {
    .registration-main-title {
        font-size: 24px;

    }

    .registration-main-form__title {
        font-size: 16px;
    }


    .registration-tabs__inner p {
        font-size: 12px;
    }

}


@media only screen and (max-width: 440px) {
    .registration-main__top div {
        display: flex;
        justify-content: center;
    }

    .registration-main__top div strong {
        font-size: 14px;
        text-align: center;

    }

    .registration-main-title {
        font-size: 24px;

    }

    .registration-main-form__title {
        font-size: 16px;
    }


    .registration-tabs__inner p {
        font-size: 12px;
    }

}


@media only screen and (max-width: 430px) {
    .registration-main__top div {
        display: flex;
        justify-content: center;
    }

    .registration-main__top div strong {
        font-size: 14px;
        text-align: center;

    }

    .registration-main-title {
        font-size: 24px;

    }

    .registration-main-form__title {
        font-size: 16px;
    }

    .registration-tabs__inner p {
        font-size: 12px;
    }
}


@media only screen and (max-width: 410px) {
    .registration-main__top div {
        display: flex;
        justify-content: center;
    }

    .registration-main__top div strong {
        font-size: 14px;
        text-align: center;

    }

    .registration-main-title {
        font-size: 24px;

    }

    .registration-main-form__title {
        font-size: 16px;
    }

    .registration-tabs__inner p {
        font-size: 12px;
    }

    .registration-main-form__top div {
        display: flex;
        justify-content: center;
    }

    .registration-main-form__top div span {
        font-size: 14px;
    }

    .registration-tabs__list {
        transform: translateX(5px);
    }

}

@media only screen and (max-width: 404px) {
    .registration-main__top div {
        display: flex;
        justify-content: center;
    }

    .registration-main__top div strong {
        font-size: 14px;
        text-align: center;

    }

    .registration-main-title {
        font-size: 24px;
        text-align: center;

    }

    .registration-main-form__title {
        font-size: 16px;
    }

    .registration-tabs__inner p {
        font-size: 12px;
    }

}


@media only screen and (max-width: 391px) {
    .registration-main__top div {
        display: flex;
        justify-content: center;
        padding: 8px 12px;
    }

    .registration-main__top div strong {
        font-size: 14px;
        text-align: center;

    }

    .registration-main-title {
        font-size: 24px;
        text-align: center;
    }

    .registration-main-form__title {
        font-size: 16px;
    }


    .registration-tabs__inner p {
        font-size: 12px;
    }

}


@media only screen and (max-width: 371px) {
    .registration-main__top div {
        display: flex;
        justify-content: center;
        padding: 8px 8px;
    }

    .registration-main__top div strong {
        font-size: 12px;
        text-align: center;

    }

    .registration-main-title {
        font-size: 24px;
        text-align: center;

    }

    .registration-main-form__title {
        font-size: 16px;
    }


    .registration-tabs__inner p {
        font-size: 12px;
    }

    .registration-tabs__item:not(:last-child) {
        margin-right: 30px;
    }

}


@media only screen and (max-width: 367px) {
    .registration-main__top div {
        display: flex;
        justify-content: center;
        padding: 8px 8px;
    }

    .registration-main__top div strong {
        font-size: 12px;
        text-align: center;

    }

    .registration-main-title {
        font-size: 24px;
        text-align: center;

    }

    .registration-main-form__title {
        font-size: 16px;
    }

    .registration-tabs__inner p {
        font-size: 12px;
    }


}

@media only screen and (max-width: 340px) {
    .registration-tabs__item:not(:last-child) {
        margin-right: 25px;
    }

}


















