@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&family=Fraunces:opsz,wght@9..144,700&family=Inter:wght@400;700&family=Kumbh+Sans:wght@400;700&family=League+Spartan:wght@400;500;700&family=Lexend+Deca&family=Manrope:wght@500;700&family=Montserrat:wght@500;700&family=Open+Sans&family=Outfit:wght@400;700&family=Overpass:wght@400;600&family=Poppins:wght@400;500;600;700&family=Red+Hat+Display:wght@500;700;900&display=swap');



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.field-group.error .error-icon, 
.field-group.error .error-text {
    display: block;
}

.learnToCode {
    min-height: 100vh;
    background: url(images/bg-intro-mobile.png) no-repeat;
    background-color: hsl(0, 100%, 74%);
    margin: 0 auto;
}

.container {
    padding: 3rem 4rem;
    height: 100%;
}

.learnToCode {
    text-align: center;
}

.left-col .heading {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.left-col p {
    color: white;
    font-size: 16px;
    margin-bottom: 4rem;
    font-weight: 400;
    line-height: 1.9rem;
}

.top-box {
    width: 100%;
    background-color: hsl(248, 32%, 49%);
    padding: 1rem 5rem;
    color: white;
    border-radius: .5rem;
    font-size: 1rem;
    font-weight: 400;
    box-shadow: 0px 6px hsla(248, 32%, 49%, 0.521);
    margin-bottom: 2rem;
}

.top-box span {
    font-weight: 700;

}

.form {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    height: auto;
}

.form form label {
    display: none;
}

.field-group {
    margin-bottom: 1rem;
    position: relative;
}

.field-group input, .form button {
    width: 100%;
    height: 3.5rem;
    border: 1px solid hsla(240, 3%, 66%, 0.952);
    border-radius: .5rem;
    font-size: 1rem;
}

.field-group input:focus {
    outline: none;
}

.field-group input::placeholder {
    font-weight: 600;
    font-size: 1rem;
    padding-left: 1rem;
}

.field-group .error-icon {
    position: absolute;
    right: .4rem;
    top: .3rem;
    transform: translateY(50%);

}

.field-group .error-icon,
.field-group .error-text {
    display: none;
}

.field-group .error-text {
    text-align: right;
    font-size: .8rem;
    color: hsl(0, 100%, 74%);
}

.form button {
    font-weight: 700;
    color: white;
    background-color: hsl(154, 59%, 51%);
    box-shadow: 0px 6px hsla(154, 73%, 34%, 0.452);;
}

.form button:hover {
    background-color: hsl(154, 81%, 64%);
}

.form p {
    font-size: .8rem;
    font-weight: 500;
    color: hsl(246, 25%, 77%);
    margin-top: 1rem;
}

.form p span {
    color: hsl(0, 100%, 74%);
    font-weight: 700;
}

@media screen and (min-width: 1000px) {
    .learnToCode {
        background: url(images/bg-intro-desktop.png) no-repeat;
        background-position: center;
        min-height: 100vh;
        background-color: hsl(0, 100%, 74%);
    }

   .container {
        display: flex;
        width: calc(1400px / 1.15);
        margin: 0 auto;
   }
    
   .left-col {
        flex: 1;
        text-align: left;
        padding-block-start: 7rem;
        padding-inline-end: 4rem;
   }

   .left-col h1 {
        font-size: 3rem;
   }

    .right-col {
        flex: 1;
    }


    .top-box {
        padding: 2rem;
    }
}