@font-face {
    font-family: 'FontsFree-Net-SFProDisplay-Regular';
    src: url('./FontsFree-Net-SFProDisplay-Regular.ttf');
}

html,
body {
    background: #173E30;
    font-family: 'FontsFree-Net-SFProDisplay-Regular';
    margin: 0%;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.container img {
    /* margin-bottom: 163px; */
}

h1 {
    color: #fff;
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-size: 45px;
    line-height: 52px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    margin: 0 auto 70px;
    width: 634px;
    height: 155px;
}

ul {
    list-style: none;
    display: flex;
    padding: 0;
    gap: 2%;
    width: 100%;
    justify-content: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: #A2B2AC;
    padding: 0rem;
}

form i {
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    line-height: 22px;
    text-align: center;
    color: #A2B2AC;
    margin-bottom: 50px;
}

input[type="email"] {
    background: transparent;
    outline: none;
    border: none;
    color: #fff;
    border-bottom: 1px solid #A2B2AC;
    height: 38px;
    width: 100%;
    font-size: 16px;
    -webkit-appearance: none;
}

input[type="submit"] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 3px 35px;
    gap: 8px;
    width: 152px;
    height: 38px;
    background: #FFFFFF;
    cursor: pointer;
    border: 1px solid #FFFFFF;
    color: #173E30;
    -webkit-appearance: none;
}

input[type="submit"]:hover {
    background: transparent;
    color: #fff;
}

.sub-section {
    width: 511px;
    height: 38px;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

.input-field {
    width: 332px;
}

.form input ~ .error {
    display: none;
}

.form.submitted input:invalid ~ .error::before {
    display: block;
    color: #DF0000;
    content: url('./warning.svg');
}

.form.submitted input:invalid {
    color: #DF0000;
}

.form.submitted input:invalid ~ .error {
    display: flex;
    color: #DF0000;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

@media screen and (max-width: 620px) {
    .container {
        min-height: calc(100vh - 0);
        width: 100%;
    }

    h1 {
        width: 312px;
        font-size: 25px;
        line-height: 30px;
        margin-bottom: 40px;
    }

    form i {
        font-style: italic;
        font-weight: 400;
        font-size: 20px;
        line-height: 22px;
        text-align: center;
        color: #A2B2AC;
        width: 260px;
        font-weight: 400;
        font-size: 14px;
        line-height: 16px;
        margin: 0 auto 30px;
    }

    form {
        max-width: 100%;
    }

    .sub-section  {
        width: 100%;
        display: block;
    }

    .input-field {
        width: 100%;
        margin-bottom: 25px;
    }

    input[type="submit"] {
        width: 100%;
        display: block;
    }

    .social-icon {
        margin-top: 135px;
        gap: 5%;
    }
}