:root {
    /* Primary */
    --red: hsl(0, 100%, 74%); 
    --green: hsl(154, 59%, 51%);

    /* Accent */
    --blue: hsl(248, 32%, 49%);

    /* Neutral */
    --dark-blue: hsl(249, 10%, 26%); 
    --grayish-blue: hsl(246, 25%, 77%);
}

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

html {
    font-size: 62.5%;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    background: url('./images/bg-intro-mobile.png') center no-repeat var(--red);
    background-size: contain;
}

main {
    width: 100%;
    height: auto;
}

.info-box {
    width: 90%;
    margin: 8.5rem auto 0;
    text-align: center;
    color: white;
}

.info-box h1 {
    width: 80%;
    margin: 0 auto;
    font-size: 2.5rem;
    font-weight: 700;
}

.info-box p {
    width: 95%;
    margin: 2rem auto 0;
    font-size: 1.6rem;
    font-weight: 400;
}

.form-box {
    width: 90%;
    margin: 5rem auto 0;
}

.offer-text {
    width: 100%;
    padding: 1.5rem 5rem;
    margin-bottom: 3rem;
    border: solid 0.1rem transparent;
    border-radius: 1rem;
    box-shadow: 0px 0.8rem 0px 0px rgba(0,0,0,0.25);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 400;
    color: white;
    background-color: var(--blue);
}

.offer-text span {
    font-weight: 600;
}

.form-container {
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 0;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0px 0.8rem 0px 0px rgba(0,0,0,0.25);
}

.form-container label {
    width: 90%;
    height: auto;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.form-container input {
    width: 100%;
    height: 5rem;
    border: solid 0.1rem var(--grayish-blue);
    border-radius: 0.5rem;
    padding-left: 5%;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
    outline-color: var(--grayish-blue);
}

.form-container input::placeholder {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.icon {
    position: absolute;
    width: 2.4rem;
    top: 1.3rem;
    right: 3%;
}

.error-msg {
    width: 90%;
    margin-top: 0.5rem;
    text-align: right;
    color: var(--red);
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
}

.button {
    width: 90%;
    height: 5.5rem;
    margin: 0 0 0 5%;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background-color: hsla(154, 59%, 51%, 0.9);
    color: white;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0px 0.8rem 0px 0px var(--green);
}

.button:hover {
    background-color: hsla(154, 59%, 51%, 0.75);
}

.agree-terms-text {
    width: 80%;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 1.2rem;
}

.agree-terms-text span {
    color: var(--red);
    font-weight: 700;
}

footer { 
    width: 100%;
    height: 5%;
    margin: 7% auto 0;
    font-size: 1.1rem; 
    text-align: center;
}

footer a { 
    color: hsl(228, 45%, 44%); 
}

@media only screen and (min-width: 1024px) {
    body, main {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    body {
        flex-direction: column;
        background: url('./images/bg-intro-desktop.png') center no-repeat var(--red);
        background-size: cover;
    }

    .info-box {
        width: 42%;
        text-align: left;
    }

    .info-box h1 {
        margin: 0;
        font-size: 4rem;
        line-height: 5rem;
    }

    .info-box p {
        width: 100%;
        margin: 2.5rem 0 0;
        font-size: 1.4rem;
    }
    
    .form-box {
        width: 42%;
    }

    footer {
        height: auto;
        margin-top: 2rem;
    }
}

@media only screen and (min-width: 1440px) {
    .info-box {
        width: 35%;
        margin-left: 22rem;
    }

    .info-box p {
        width: 90%;
    }
    
    .form-box {
        width: 35%;
        margin-right: 22rem;
    }
}

@media only screen and (min-width: 1920px) {
    .info-box {
        width: 35%;
        margin-left: 40rem;
    }

    .info-box p {
        width: 80%;
    }
    
    .form-box {
        width: 35%;
        margin-right: 40rem;
    }
}