html {
  font-size: 10px;
  --font-size: 1.3rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 2rem;
  background: black;
  color: white;
  font-size: var(--font-size);
  font-family: arial;
  line-height: 1.3;
  box-sizing: border-box;
}

a {
  color: white;
  text-decoration: none;
}

p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
}

header {
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
  max-width: 73rem;
  margin: 0 auto;
}

main svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

footer {
  width: 100%;
  display: flex;
  padding: 1.8rem 0;
  border-top: rgba(255,255,255, 0.2) 1px solid;
  border-bottom: rgba(255,255,255, 0.2) 1px solid;
  box-sizing: border-box;
}

.hero-container {
  position: relative;
}

@media screen and (max-width: 749px) {
  .hero-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.gif-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20rem;
}

@media screen and (max-width: 749px) {
  .gif-container {
    width: calc(30vw - 4rem);
  }
}

.gif-inner {
  position: relative;
  height: 0;
  width: 100%;
  padding-bottom: 100%;
  background: black;
}

.gif-inner img {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.contact-heading {
  font-size: var(--font-size);
  margin: 3.8rem 0 3.4rem;
  text-align: center;
}

.footer-item {
  display: flex;
  gap: 3rem;
  width: 50%;
}

@media screen and (max-width: 749px) {
  .footer-item:first-child {
    padding-bottom: 1.6rem;
    margin-bottom: 1.6rem;
    border-bottom: rgba(255,255,255, 0.2) 1px solid;
  }
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 23rem;
  height: 4rem;
  border: solid white 1px;
  cursor: pointer;
}

.button:hover {
  background: white;
  color: black;
}

@media (max-width: 1150px) {
  .footer-item {
    flex-direction: column;
    width: 100%;
    gap: 2rem;
  }
}

@media (max-width: 749px) {
  footer {
    flex-direction: column;
  }

  .footer-item {
    width: 100%;
  }

  .button {
    order: 3;
  }
}

@media (max-width: 500px) {
  .button {
    width: 100%;
    height: 6rem;
  }
}

/* FORM */

form {
  display: flex;
  flex-direction: column;
  margin-bottom: 6rem;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 4.5rem;
  padding: 0 0 0 2rem;
  border: solid 1px white;
  text-transform: uppercase;
}

.input-container.input-container--textarea {
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  padding-top: 1.5rem;
  box-sizing: border-box;
}


.input-container + .input-container,
.checkbox-field + .checkbox-field,
 .dropdown-container {
  margin-top: 2rem;
}

.checkbox-container {
  margin: 2rem 0;
  text-transform: uppercase;
}

input,
textarea {
  padding: 1.5rem 1.5rem 1.5rem 0;
  background: transparent;
  border: none;
  color: white;
  font-size: var(--font-size);
}

input:focus,
select:focus,
textarea {
  outline: none;
}

.input-container:focus-within,
.input-container:hover {
  box-shadow: 0 0 0 1px white;
}

.input-container label {
  min-width: 7rem;
}

.input-container input,
.input-container textarea {
  flex-grow: 1;
  background: rgba(255,255,255, 0);
}

.checkbox-field {
  display: flex;
  align-items: center;
  height: 4rem;
}

.checkbox-field input {
  display: none;
}

.checkbox-field input + label {
  position: relative;
  padding-left: 8rem;
  cursor: pointer;
}

.checkbox-field input + label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  background: #000;
  border: solid white 1px;
  box-sizing: border-box;
}

.checkbox-field input + label:hover:before {
  box-shadow: 0 0 0 1px white;
}

.checkbox-field input:checked + label:after {
  content: '';
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  width: 2rem;
  height: 2rem;
  background: #fff;
}

.input-container--dropdown select {
  width: 100%;
  background: transparent;
  color: white;
  text-transform: uppercase;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input-container--dropdown::after {
  content: '';
  position: absolute;
  right: 2.5rem;
  top: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-top: 1px solid white;
  border-right: 1px solid white;
  transform: rotate(135deg);
}

.input-container textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding-top: 1rem;
}

.button--form {
  margin-top: 2rem;
  background: white;
  color: black;
  text-transform: uppercase;
  height: auto;
  line-height: 1.3;
  padding-top: 1.45rem;
  padding-bottom: 1.2rem;
}

.button--form:hover {
  background: black;
  color: white;
}

.error-message {
  color: #ff2f2f;
  margin-top: 1.5rem;
  text-align: center;
  display: none;
}

.error-message.visible {
  display: block;
}

.success-message {
  text-align: center;
}