@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;600&display=swap");

:root {
  --color-white: #ffffff;
  --color-gray: #f1f1f1;
  --color-black: #121212;
  --color-red: #ba0200;
  --color-red--hover: #d00300;
}

* {
  font-family: "Barlow", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2 {
  text-transform: uppercase;
}

.container {
  max-width: 360px;
  margin: 0 auto;

  @media (min-width: 768px) {
    max-width: 960px;
  }
}

.jumbotron {
  background-image: url("../images/jumbotron-mobile-bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding-bottom: 1.5rem;

  @media (min-width: 768px) {
    background-image: url("../images/jumbotron-desktop-bg.webp");
    padding-bottom: 3rem;
  }
}

.jumbotron__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  @media (min-width: 768px) {
    flex-direction: row;
    justify-content: space-between;
  }
}

.jumbotron__text {
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  @media (min-width: 768px) {
    max-width: 600px;
    text-align: left;
  }
}

.jumbotron__form {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  @media (min-width: 768px) {
    width: 300px;
  }
}

form button {
  margin-top: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jumbotron__content {
  margin-top: 2rem;

  @media (min-width: 768px) {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
}

.jumbotron__title {
  text-align: center;

  @media (min-width: 768px) {
    text-align: left;
    font-size: 40px;
  }
}

.jumbotron__accreditation {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  @media (min-width: 768px) {
    text-align: left;
  }
}

.jumbotron__form span {
  text-align: center;
}

.jumbotron__form .form-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jumbotron__form .form-control label {
  color: var(--color-black);
}

.jumbotron__form .form-control input {
  border: 1px solid #dddddd;
  border-radius: 0.25rem;
  padding: 0.5rem;
  height: 2.5rem;
  background-color: var(--color-gray);
  font-size: 1rem;
}

.jumbotron__footer {
  color: var(--color-white);
  text-align: center;
  margin-top: 1.5rem;

  @media (min-width: 768px) {
    display: block;
    margin-top: 3rem;
  }
}

.btn {
  color: var(--color-white);
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  font-size: 0.9rem;
}

/* move 3 px on hover */
.btn--primary:hover {
  background-color: var(--color-red--hover);
}

.btn--primary {
  background-color: var(--color-red);
}

section img {
  display: none;

  @media (min-width: 768px) {
    display: block;
  }
}

section {
  padding: 5rem 0;
}

.section__content {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section__content h2 {
  text-align: center;
}

@media (min-width: 768px) {
  header img {
    width: 87px;
  }

  section .container {
    display: flex;
    justify-content: space-between;
  }

  .section__image {
    padding-left: 3rem;
  }

  #iso-description .section__content,
  #certification-process .section__content {
    max-width: 480px;
    justify-content: space-between;
  }

  .section__content h2,
  .section__content p {
    text-align: left;
  }
}

.section--secondary {
  background-color: var(--color-gray);
}

#iso-description p {
  text-align: center;
  @media (min-width: 768px) {
    text-align: left;
  }
}

#certification-process ol {
  max-width: 90%;
  padding-left: 0.5rem;
  list-style-position: inside;
  text-align: start;
}

#call-to-action {
  background-image: url("../images/cta-bg.webp");
  background-repeat: no-repeat;
  background-position: right;
}

@media (min-width: 768px) {
  #call-to-action .section__content h2,
  #call-to-action .section__content p {
    text-align: center;
  }

  #call-to-action button {
    align-self: center;
  }
}

footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.error-feedback {
  color: var(--color-red);
  margin-top: 1rem;
  display: none;
}

#success-feedback {
  text-align: center;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

#success-feedback img {
  max-width: 4.5rem;
}

form span {
  margin-bottom: 1rem;
}
