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


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

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

body{
    font-family: 'Roboto', sans-serif;
    /* font-size: 16px; */
    background-color: var(--Blue-700);
    color: var(--Blue-700);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container{
    background-color: var(--White);
    display: flex;
    padding: 1rem;
    border-radius: 1rem;
    /* width: 50rem; */
    line-height: 1.5;
}


.heading{
    font-weight: 900;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.text{
    margin-bottom: 1.5rem;

}

ul{
    margin-bottom: 2rem;
    list-style: none;
}

li{
    display: flex;
    align-items: center;
}

li:not(:last-child) {
  margin-bottom: 0.625rem;
}

.icon-list{
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("../assets/images/icon-list.svg");
    background-repeat: no-repeat;
    background-size: cover;
    margin-right: 1rem;
}

.image img{
    width: fit-content;
    /* height: 30rem; */
    object-fit: cover;
    border-radius: 0.5rem;
}

.signup-description{
    margin: 2rem;
    margin-top: 4rem;
    width: 23.5rem;
    font-size: 1.1rem;
}

form{
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
}

.email-input{
    padding: 1em 2em;
    font-weight: 400;
    color: var(--Blue-700);
    border: 1px solid var(--Grey);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    line-height: 150%;
}


.btn-submit{
    text-align: center;
    background-color: var(--Blue-800);
    color: #fff;
    padding: 1rem 0rem;
    border-radius: 0.45rem;
    letter-spacing: 0.05rem;
    font-weight: 500;
}

.btn-submit:hover{
    border: none;
    background: linear-gradient(90deg, #ff693e 0%, #ff5478 100%);
    transform: translateY(-2px) scale(1.02);
    outline: none;
}

/* .success{
    display: block;
} */

.label{
    font-size: 13px;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
}



#email-error{
    color: var(--Red);
}

.error-style,
.email-input.error {
    border: 1px solid var(--Red);
    color: var(--Red);
    border-radius: 0.45rem;
    letter-spacing: 0.05rem;
    font-weight: 500;
    padding: 1em 2em;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 150%;
    background-color: rgba(255, 0, 0, 0.1); 
    opacity: 1;
}

.error-style,
.email-input.error {
    background-clip: padding-box;
}

.error-style::placeholder,
.email-input.error::placeholder {
    color: var(--Red);
    opacity: 1;
}

.success {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 2rem;
    border-radius: 2rem;
    /* width: 50rem; */
    line-height: 1.5;
    max-width: 30rem;
}

.success img{
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
}
.success .heading{
    font-size: 2.5rem;
}

.success p{
    font-size: 1.1rem;
}

span.subscribed-email{
    font-weight: 700;
    word-break: break-all;
    white-space: normal;    
}

.btn-dismiss {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #ff5478 0%, #ff693e 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px 0 rgba(255, 84, 120, 0.15);
    transition: background 0.2s, transform 0.1s;
    margin-top: 2rem;
}

.btn-dismiss:hover,
.btn-dismiss:focus {
    background: linear-gradient(90deg, #ff693e 0%, #ff5478 100%);
    transform: translateY(-2px) scale(1.02);
    outline: none;
}

.hidden{
    display: none;
}

/* Mobile screen or screens with less that 916px*/

@media(max-width: 916px){

    body{
        height: auto;
    }

    .container{
        display: flex;
        flex-direction: column;
        border-radius: 0;
        padding: 0rem;
        width: 21rem;
        margin: 2rem;
    }

    .image{
        order: -1;
        margin-bottom: 0rem;
    }
    .image img{
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    .signup-description {
        margin: 0;
        padding: 1rem 1rem 1.5rem 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .heading{
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .text{
        margin-bottom: 1.2rem;
    }
    ul {
        /* margin-bottom: 1.5rem; */
        padding: 0;
  /* margin-top: 1.5rem; */
    }

    li{
        padding-left: 1.875rem;
        position: relative;
    }

    
    li:not(:last-child) {
        margin-bottom: 0.5rem;
    }

    .icon-list{
        /* padding: 0;
        margin-right: 1rem; */
        width: 1.25rem;
        height: 1.25rem;
        background-size: cover;
        position: absolute;
        left: 0;
        top: 0;
    }

    form {
        width: 100%;
    }

    .email-input,
    .btn-submit {
        width: 100%;
        box-sizing: border-box;
    }

    .success{
        height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        /* justify-content: center; */
        /* align-items: center; */
        padding: 1rem;
        gap: 1.5;
        max-width: 20rem;
        padding-top: 7rem;
    }

    .success p{
        padding-bottom: 0;
        font-size: 1rem;
        /* text-align: center; */
        margin: 0;
    }

    .btn-dismiss{
        background: var(--Blue-800);
        margin-top: 12rem;
        width: 100%;
        max-width: 100%;
    }
    .hidden{
    display: none;
    }

}