* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* Layout base */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100vw;
  margin: auto;
}

header,
footer {
  text-align: center;
}

header,
main {
  background-color: #ffffff;
}

footer {
  background-color: #1f429c;
  color: white;
  padding: 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.header-content img {
  height: 120px;
}

.header-content div {
  height: 100%;
}

.ola-inversa {
  position: relative;
  background-color: #ffffff;
  height: 10vh;
  overflow: hidden;
}

.ola-inversa svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.title {
  text-transform: uppercase;
  font-size: 1.9rem;
  font-weight: 500;
  color: #1f429c;
}

.main-title {
  text-transform: uppercase;
  font-size: 2.2rem;
  color: #1f429c;
  font-weight: bold;
}

.errorlist {
  margin: 0 0 1.5em 0;
  padding: 0.75em 1.25em;
  border: 1px solid #eb4d4b;
  border-radius: 4px;
  background: #fff6f6;
  list-style: none;
  font-size: 0.96em;
  color: #b71c1c;
  box-shadow: 0 2px 8px rgba(235, 77, 75, 0.06);
}

.errorlist li {
  margin: 0.2em 0;
  padding: 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.errorlist strong {
  font-weight: 600;
  margin-right: 0.5em;
  color: #b71c1c;
  letter-spacing: 0.02em;
}

.uppercase {
  text-transform: uppercase;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
}

.auto {
  flex: 1 1 0;
  min-width: 250px;
}

.lg {
  flex: 0 0 350px;
  min-width: 350px;
}

.md {
  flex: 0 0 200px;
  min-width: 200px;
}

.small {
  flex: 0 0 150px;
  min-width: 150px;
}

@media (max-width: 768px) {
  .flex {
    flex-direction: column;
  }

  .auto,
  .lg,
  .md,
  .small {
    flex: 1 1 100%;
    min-width: unset;
    width: 100%;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: auto;
    padding: 1rem 1rem;
  }

  .header-content .auto {
    width: 100%;
    text-align: center;
  }

  .header-content img {
    height: auto;
    max-height: 80px;
    max-width: 70%;
    object-fit: contain;
  }

  .title {
    font-size: clamp(1rem, 4.2vw, 1.3rem);
  }
  .main-title {
    font-size: clamp(1.1rem, 5.2vw, 1.6rem);
  }

  .ola-inversa {
    height: 56px;
  }

  main {
    width: 100%;
    padding: 0 1rem;
  }

  .flex {
    gap: 0.75rem;
  }
}
