@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --Red: hsl(4, 100%, 67%);
    --Blue-800: hsl(234, 29%, 20%);
    --Blue-700: hsl(235, 18%, 26%);
    --Grey: hsl(0, 0%,58%);
    --White: hsl(0, 0%, 100%);
}

body{
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    height: 100vh;
    background-color: var(--White);
    color: var(--Blue-800);
    list-style-position: inside;
}

@media (min-width: 600px) {
    body{
        background-color: var(--Blue-700);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
}


.container{
    background-color: var(--White);
}
/* .container.dismiss{
    display: none;
} */
/* .dismiss{
    display: none;
} */

@media (min-width: 768px) {
    .container{
        display: flex;
        /* display: none; */
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;
        border-radius: 1rem;
        padding: 1rem;
        max-width: 47rem;
    }
    
}

.desktop__img{
    display: none;
}
.mobile__img{
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .desktop__img{
        display: block;
        height: 26.34rem;
    }
    .mobile__img{
        display: none;
    }
}

.card__info{
    padding: 2rem 2rem;
}
@media (min-width: 600px) {
    .card__info{
        padding: 2rem 3rem 2rem 2rem;
    }
}

.card__title{
    font-weight: 700;
    font-size: 2.5rem;
    padding-bottom: 1rem;
}

.card__subtitle{
    padding-bottom: 1rem;
}

.card__list {
    list-style: none;
    padding-left: 0;
}
.card__list li {
    position: relative;
    padding-left: 2em;
    padding-bottom: 1rem;
}

.card__list li::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('./assets/images/icon-list.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 0.2em;
}

.card__form {
    display: flex;
    flex-direction: column;
}
.card__form--label{
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.75rem;
    padding-bottom: 0.3rem;
}

.erro__msg{
    color: var(--Red);
    display: none;
}

.card__form--email {
    border: 1px solid var(--Grey);
    border-radius: 0.3rem;
    padding: 0.75rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--Blue-800);
    margin-bottom: 1rem;
}
.card__form--email:focus {
    outline: none;
    border-color: var(--Red);
}

.card__form--btn{
    border: none;
    cursor: pointer;
    border-radius: 0.3rem;
    padding: 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--White);
    background-color: var(--Blue-800);
}

/* SUBMISSION PROMPT */

.success__message{
    display: none;
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    height: 100vh;
}

/* .success__message.active{
    display: flex;
} */


.success__img {
    margin-top: auto;
}

.success__title{
    font-weight: 700;
    font-size: 2.5rem;
    padding: 1rem 0;
}

.success__btn--container {
    margin-top: auto;
}

.success__btn{
    border: none;
    border-radius: 0.3rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--White);
    background-color: var(--Blue-800);
    cursor: pointer;
    transition: background-color 0.3s ease,
    transform 0.2s ease;
}

.success__btn:hover {
    background-color: var(--Red);
    transform: scale(1.05);
}

.success__btn:active {
    background-color: var(--Red);
    transform: scale(0.97);
}



@media (min-width: 600px) {
    .success__message{
        display: none;
        background-color: var(--White);
        /* display: flex; */
        flex-direction: column;
        padding: 2rem;
        border-radius: 1rem;
        height: auto;
        max-width: 423px;
        margin: 0 auto;
    }

    .success__img {
        margin-top: 0;
    }

    .success__title{
        font-weight: 700;
        font-size: 2.5rem;
        padding: 1rem 0;
    }

    .success__subtitle{
        padding-bottom: 1rem;
    }

    .success__btn--container {
    margin-top: 0;
}

    .success__btn{
        border: none;
        border-radius: 0.3rem;
        width: 100%;
        margin-top: 1rem;
        padding: 0.9rem;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--White);
        background-color: var(--Blue-800);
    }

    .success__btn:hover {
        font-size: 1rem;
    }
}


.active{
    display: flex;
}

.dismiss{
    display: none;
}




