@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Font Families */
  --ff-libre-franklin: 'Libre Franklin', sans-serif;

  /* Colors */
  --clr-white: #FFFFFF;
  --clr-black: #000000;
  --clr-blue-200: #C2D3FF;
  --clr-blue-500: #4C7BF3;
  --clr-blue-950: #15202A;
  --clr-gray-50: #FBFCFF;
  --clr-gray-100: #EBEBEB;
  --clr-gray-400: #969696;
  --clr-red-400: #FF5466;
  --clr-green-500: #2ECC71;

  /* Text Presets */
  --txt-preset-1-bold: 700 3rem / 1.25 var(--ff-libre-franklin);
  --txt-preset-1-light: 300 3rem / 1.25 var(--ff-libre-franklin);
  --txt-preset-2-bold: 700 1.25rem / 1.25 var(--ff-libre-franklin);
  --txt-preset-2-light: 300 1.25rem / 1.25 var(--ff-libre-franklin);
  --txt-preset-3-semibold: 600 1rem / 1.25 var(--ff-libre-franklin);
  --txt-preset-3-light: 300 1rem / 1.25 var(--ff-libre-franklin);
  --txt-preset-4-semibold: 600 .75rem / 1.25 var(--ff-libre-franklin);
  --txt-preset-4-light: 300 .75rem / 1.25 var(--ff-libre-franklin);
  --txt-preset-5-regular: 400 .625rem / 1.25 var(--ff-libre-franklin);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

html,
body {
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

body {
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.5;
  font: var(--txt-preset-3-light);
  background: var(--clr-white);
  color: var(--clr-black);
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
label {
  font-weight: 700;
  line-height: 1.2;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img,
picture {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  background-color: none;
  border: none;
}

button {
  cursor: pointer;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

a {
  text-decoration: none;
  color: inherit;
  background-color: none;
}

/* End Reset */

/* Globals */
.container {
  width: calc(100% - 3.5rem);
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .container {
    max-width: 44.5rem;
  }
}

.form {
  width: 100%;
  max-width: 17.625rem;
}

@media (min-width: 48rem) {
  .form {
    max-width: 39.8125rem;
  }
}

.form__group {
  display: grid;
  gap: .5rem;
}

@media (min-width: 48rem) {
  .form__group {
    align-items: center;
    grid-template-columns: 1fr 12.5rem;
    gap: 1rem;
    position: relative;
  }
}

.form__input {
  padding: .7188rem 1.5rem;
  border: .0625rem solid var(--clr-blue-200);
  font: var(--txt-preset-4-light);
  border-radius: 1.75rem;
  color: var(--clr-blue-950);
}

@media (min-width: 48rem) {
  .form__input {
    font: var(--txt-preset-3-light);
    padding: 1.0625rem 2rem;
  }
}

.form__input::placeholder {
  color: var(--clr-blue-200);
  opacity: 1;
}

.form__input:focus {
  outline: none;
}

.form__input--error {
  border-color: var(--clr-red-400);
}

.form__error-message {
  display: none;
  color: var(--clr-red-400);
  font: var(--txt-preset-5-regular);
  font-style: italic;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 48rem) {
  .form__error-message {
    margin-bottom: 0;
    position: absolute;
    font: var(--txt-preset-4-light);
    font-weight: 400;
    font-style: italic;
    left: 2rem;
    bottom: -1.4375rem;
  }
}

.button {
  width: 100%;
  font: var(--txt-preset-4-semibold);
  padding: .7813rem 1.5rem;
  border-radius: 1.75rem;
  background-color: var(--clr-blue-500);
  color: var(--clr-white);
  box-shadow: 0 .3125rem .625rem .125rem rgba(76, 123, 243, .2304);
}

@media (min-width: 48rem) {
  .button {
    font: var(--txt-preset-3-semibold);
    padding: 1.125rem 2rem;
  }
}

.button:hover {
  background-color: rgba(76, 123, 243, .75);
}

.socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.socials__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: .0625rem solid var(--clr-blue-200);
  border-radius: 50%;
}

.socials__link:hover {
  border-color: var(--clr-blue-500);
  background: var(--clr-blue-500);
}

.socials__link:hover .socials__icon path {
  fill: var(--clr-white);
}

/* End Globals */
.hero {
  padding-top: 5.3125rem;
}

@media (min-width: 48rem) {
  .hero {
    padding-top: 5.4375rem;
  }
}

.hero__container {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

@media (min-width: 48rem) {
  .hero__container {
    gap: 6rem;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo-img {
  height: 1rem;
}

@media (min-width: 48rem) {
  .hero__logo-img {
    height: 1.5625rem;
  }
}

.hero__info {
  margin-top: 2.5rem;
  text-align: center;
}

@media (min-width: 48rem) {
  .hero__info {
    margin-top: 3rem;
  }
}

.hero__title {
  font: var(--txt-preset-2-light);
  color: var(--clr-gray-400);
}

@media (min-width: 48rem) {
  .hero__title {
    font: var(--txt-preset-1-light);
  }
} 

.hero__title-span {
  font: var(--txt-preset-2-bold);
  color: var(--clr-blue-950);
}

@media (min-width: 48rem) {
  .hero__title-span {
    font: var(--txt-preset-1-bold);
  }
} 

.hero__subtitle {
  margin-top: .5rem;
  font: var(--txt-preset-4-light);
  color: var(--clr-blue-950);
}

@media (min-width: 48rem) {
  .hero__subtitle {
    margin-top: 1rem;
    font: var(--txt-preset-2-light);
  }
}

.hero__form {
  margin-top: 2.5rem;
}

.hero__img-container {
  align-self: center;
  height: 12rem;
}

@media (min-width: 48rem)  {
  .hero__img-container {
    height: 23.9375rem;
  }
}

.hero__img {
  width: 100%;
  height: 100%;
}

.footer {
  margin-top: 7.5rem;
  margin-bottom: 2.1875rem;
}

@media (min-width: 48rem) {
  .footer {
    margin-top: 4.5rem;
    margin-bottom: 2.9375rem;
  }
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__copy {
  font: var(--txt-preset-4-light);
  color: var(--clr-gray-400);
}