@import url('https://fonts.googleapis.com/css2?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=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body {
    min-height: 100dvh;
    background-color: #FF7978;
    background-image: url(../images/bg-intro-mobile.png);
    background-size: cover;
    background-position: center;
    font-family: "Overpass", sans-serif;
}

header {
    color: #FFFDFF;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px auto 30px;
    text-align: center;
    align-items: center;
}

h1 {
    font-size: clamp(1.5em, 5vw, 1.8em);
    font-weight: 800;
    line-height: 1.2;
    max-width: 320px;
}

header p {
    max-width: 86%;
    font-weight: 300;
    line-height: 1.5;
    font-size: clamp(0.9em, 3vw, 0.95em);
}

section {
    background-color: #5D54A3;
    padding: 17px 0 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 50px auto 20px;
    border-radius: 10px;
    color: #FFFDFF;
    font-weight: 200;
    font-size: clamp(0.9em, 3vw, 0.95em);
    line-height: 1.6;
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.151);
}

section p {
    max-width: 60%;
}

section a {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    transition: 0.3s;
}

section a:hover {
    color: #A39855;
}

form {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 60px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.178);
}

form input {
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

input:focus {
    outline: 2px solid rgba(0, 0, 0, 0.185);
}

::placeholder {
    color: black;
    opacity: 66%;
    font-weight: 700;
    font-size: clamp(0.9em, 3vw, 0.95em);
}

header, section, form {
    width: 90%;
}

button {
    background-color: #37CC8A;
    padding: 18px;
    border-radius: 3px;
    box-shadow: 0 -4px 0 -0.5px #37B47F inset;
    color: #FFFDFF;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: clamp(0.75em, 3vw, 0.9em);
    border: none;
    cursor: pointer;
    margin-top: 5px;
    transition: 0.3s;
}

button:hover {
    color: #498C6E;
}

footer {
    color: #CAC9D2;
    font-size: clamp(0.6em, 3vw, 0.65em);
    text-align: center;
    display: flex;
    justify-content: center;
    font-weight: 400;
    margin-top: 3px;
    line-height: 1.8;
}

footer p {
    font-weight: 900;    
    max-width: 85%;
}

footer a {
    text-decoration: none;
    color: #ED7D81;
    font-weight: 900;
}

.error {
  color: #F97974;
  font-size: 0.8rem;
  margin-top: 4px;
  font-style: italic;
  display: flex;
  justify-content: end;
}

.email-placeholder::placeholder {
    color: #F97974;
    opacity: 0.9;
}

.input-error {
  border: 2px solid #F97974;
  background: url(../images/icon-error.svg) no-repeat right 10px center;
  background-size: 1.7em;
  padding-right: 45px;
}