@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Karla:ital,wght@0,200..800;1,200..800&family=Lexend+Deca:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Overpass:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

: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%);
}

html {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height:100vh;
    background-image: url('./images/bg-intro-desktop.png');
    background-color: var(--Red);
    color: white;
}

section {
    width:30%;
    height:auto;
    margin:1.5em 1vw;
}

#text h1 {
    font-size: clamp(2em, 5vw, 48px);
    margin: max(20px, 1.5vw) 0;
}

#input {
    text-align: center;
}

.price {
    height: auto;
    background: var(--Blue);
    padding:2vh 4em;
    border-radius: 10px;
    box-shadow:0px 6px 0px hsla(249, 10%, 26%, 0.2);
    color: var(--Grayish-Blue);
    margin-bottom: 2vh;
    font-size: 16px;
}

.price span {
    font-weight: 600;
    color: white;
}

#inputFields {
    background-color: white;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 0 0 hsla(249, 10%, 26%, 0.2);
    padding: 3.5vh 0;
}

.info {
    position: relative;
}

.info p {
    display: none;
    color: var(--Red);
    text-align: end;
    font-style: italic;
    font-size: 12px;
    margin-right:5%;
}

input {
    width: 90%;
    height: 6vh;
    border-radius: 4px;
    padding-left: max(1rem, 1.5vw);
    margin: 1.2vh 0;
    border:1px solid var(--Grayish-Blue); 
}

input[placeholder] {
    font-weight: 600;
}

img {
    display: none;
    position: absolute;
    right: 10%;
    top: 25%;
}

button {
    width:90%;
    height: 7vh;
    margin: 1.2vh 0;
    border-radius:5px;
    border: none;
    background: var(--Green);
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 0 0 hsl(154, 61%, 44%);
    cursor: pointer;
}

button:hover {
    background: hsl(154, 69%, 55%);
}

button:active {
    background: hsl(154, 85%, 61%);
}

footer {
    color: var(--Grayish-Blue);
    font-size: 12px;
    margin:0 2em;
}

.agreement {
    margin: 1.2vh 0;
}

.agreement span {
    color: var(--Red);
    font-weight: 700;
}

.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }

@media screen and (width <= 1024px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        background-image: url('./images/bg-intro-mobile.png');
    }

    section {
        width: 80%;
    }

    #text {
        text-align: center;
    }

}