body:not(.dark-mode, .career-page) .page-content {
  background: #c3d2c0;
}

body:not(.dark-mode) header {
  background-color: #edf0ff;
  width: 100%;
}

.error-message {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ff0000;
  padding: 15px;
  color: white;
  text-align: center;
  z-index: 1000;

  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}

.error-message.show {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.loader {
  width: 32px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
  background:
    var(--_g) 0% 50%,
    var(--_g) 50% 50%,
    var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
}
@keyframes l3 {
  20% {
    background-position:
      0% 0%,
      50% 50%,
      100% 50%;
  }
  40% {
    background-position:
      0% 100%,
      50% 0%,
      100% 50%;
  }
  60% {
    background-position:
      0% 50%,
      50% 100%,
      100% 0%;
  }
  80% {
    background-position:
      0% 50%,
      50% 50%,
      100% 100%;
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  flex: 1;

  background: var(--secondary);
  padding: 32px;
  color: var(--text);
  margin-top: 1rem;
}

.dark-mode form {
  background: var(--card);
}

form button,
.whatsapp-button,
input[type="file"]::file-selector-button {
  border-radius: 4px;
  transition: background-color 200ms;
  background: white;
  color: black;
  padding: 8px 16px;
}

.dark-mode form button,
.dark-mode .whatsapp-button,
.dark-mode input[type="file"]::file-selector-button {
  background: #c3d2c0;
}

form button:hover,
.whatsapp-button:hover,
input[type="file"]::file-selector-button:hover {
  background: #edf0ff;
}

form button:active,
.whatsapp-button:active,
input[type="file"]::file-selector-button:active {
  background: rgb(190, 190, 190);
}

label {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

input {
  max-width: 300px;
  width: 100%;
}

input::placeholder {
  color: var(--placeholder);
}

input,
textarea {
  border-radius: 4px;
  border: none;
  padding: 6px;
}

textarea {
  height: 150px;
  max-width: 300px;
  width: 100%;
}

input[type="file"] {
  margin-top: 4px;
  border: solid black 1px;
}

input[type="file"]::file-selector-button {
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;

  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
  transition: background-color 200ms;
}

.whatsapp-button {
  margin-top: 16px;
  text-decoration: none;
  white-space: nowrap;

  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-button img {
  height: 1rem;
  width: 1rem;
}

footer {
  bottom: 0;
  background: #0e110e;
}

footer a {
  color: white;
}

footer svg {
  fill: white;
}

@media screen and (min-width: 650px) {
  body:not(.dark-mode) .page-content {
    background: #edf0ff;
  }

  form {
    border-radius: 8px;
    width: 500px;
    flex: 0;
    padding-inline: 4rem;
    margin-block: 2rem;
  }

  label {
    font-size: 1.2rem;
  }

  input,
  textarea {
    max-width: none;
    font-size: 1.05rem;
  }

  button {
    font-size: 1.05rem;
  }

  .career-page:not(.dark-mode) form {
    background-color: #c3d2c0;
  }
}
