:root {
    --red: hsl(0, 100%, 74%) ;
    --green: hsl(154, 59%, 51%);
    --blue: hsl(248, 32%, 49%);
    --dark-blue: hsl(249, 10%, 26%);
    --grayish-blue: hsl(246, 25%, 77%);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url(./images/bg-intro-mobile.png);
    background-color: var(--red);
    background-size: cover;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin: 5rem 0;
    padding: 0 1.5rem;
}

.container {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.text {
    margin-bottom: 1.5rem;
}
.text > h2 {
    color: white;
    margin: 0;
    padding: 1rem;
}

.text > p {
    color: white;
    opacity: 75%;
    margin: 0;
}

.trial {
    background-color: var(--blue);
    padding: 1rem 4rem;
    border-radius: 0.7rem;
    margin: 1.5rem 0;
    box-shadow: 0 0.5rem hsla(0, 0%, 0%, 0.15);
}

.trial > p {
    margin: 0;
    color: var(--grayish-blue);
}

.bold {
    color: white;
}

.form {
    background-color: white;
    border-radius: 0.7rem;
    padding: 1.5rem;
    box-shadow: 0 0.5rem hsla(0, 0%, 0%, 0.25)
}

form {
    width: 100%;
}

input {
    padding: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0.25rem;
}

.textinput {
    border: solid 1px var(--grayish-blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

::placeholder {
    color: hsla(253, 4%, 49%, 0.958);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

input[type=submit] {
    text-transform: uppercase;
    background-color: var(--green);
    color: white;
    font-family: 'Poppins', sans-serif;
    border: none;
    box-shadow: 0 0.25rem hsl(154, 60%, 42%);
    letter-spacing: 0.1rem;
}

input[type=submit]:hover {
    cursor: pointer;
}

input[type=submit]:active {
    background-color: hsl(154, 76%, 70%);
    box-shadow: 0 0.25rem var(--green);
}

/*if this outline and red border on error seem conflicting, can add eventlistener on JS file
and add in conditions that red error border should not persist while in focus*/
.textinput:focus {
    outline: solid 1px var(--dark-blue);
    caret-color: var(--dark-blue);
}

.form > p {
    font-size: 0.7rem;
    margin: 0;
    padding: 0 1.25rem;
    color: var(--grayish-blue);
}

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

.error {
    color: var(--red);
    align-self: flex-end;
    margin: 0 0 1rem;
    font-style: italic;
    font-size: 0.75rem;
}

.changedform {
    margin-bottom: 0;
    background-image: url(./images/icon-error.svg);
    background-repeat: no-repeat;
    background-position: 95%;
    border: 1px solid var(--red);
}

.changedform::placeholder {
    color: transparent;
}

.incorrectemail {
    color: var(--red);
}

@media(min-width: 60rem) {
    body {
        background-image: url(./images/bg-intro-desktop.png);
        margin: 0;
        padding: 0 5%;
    }
    .general {
        flex-direction: row;
        max-width: 70rem;
    }
    .text {
        flex-basis: 50%;
        text-align: left;
    }
    .text > h2 {
        padding: 0;
        margin-bottom: 1rem;
        font-size: 3rem;
        line-height: 1.25;
    }
    .trial-form {
        flex-basis: 50%;
    }
}
/* 
@media(min-width: 90rem) {
    body{
        padding: 0 15%;
    }
} */