@font-face {
  font-family: "Gotham Rounded Book";
  src: url("../fonts/GothamRounded-Book.eot");
  src: url("../fonts/GothamRounded-Book.eot?#iefix") format("embedded-opentype"),
    url("../fonts/GothamRounded-Book.svg#GothamRounded-Book") format("svg");
  font-weight: normal;
  font-style: normal;
}

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

a {
  color: #000;
}

.main-container {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: #fff;
}

.required-fields-text {
  font-size: 0.6875rem;
  color: #000;
  line-height: 0.825rem;
}

.form {
  display: flex;
  max-width: 32.5rem;
  flex-direction: column;
  gap: 1.875rem;
  padding-right: 2.1875rem;
  padding-left: 2.1875rem;
}

.form input:not([type="checkbox"]) {
  border: 0;
  border-bottom: 1px solid #000;
  background-color: transparent;
  outline: none;
  padding-bottom: 0.9375rem;
  font-size: 0.9375rem;
  line-height: 1.125rem;
}

.form input::placeholder {
  color: #000;
  font-size: 0.9375rem;
  line-height: 1.125rem;
  font-family: "Gotham Rounded Book", sans-serif;
}

#x-optin__comunications,
#x-optin__terms {
  margin: 0.5rem 0;
}

#x-optin__comunications label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  line-height: 0.825rem;
}

.submit-form-btn {
  width: 100%;
  border: 1px solid #000;
  background-color: transparent;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1rem;
  height: 2.875rem;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"] + label:before {
  content: "";
  width: 17px;
  height: 17px;
  background-color: #fff;
  border: 1.5px solid #000;
  display: inline-block;
  vertical-align: middle;
}

.sucess-msg,
.error-msg {
  display: none;
  text-align: center;
  font-size: 1rem;
}

.error-msg {
  color: rgb(207, 48, 48);
}

input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
  background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 17 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.15' y='0.15' width='16.7' height='16.7' stroke='black' stroke-width='0.3' fill='white'/%3E%3Crect x='3' y='3' width='11' height='11' fill='black'/%3E%3C/svg%3E%0A");
  background-position: center;
}

@media (max-width: 768px) {
  .form {
    gap: 1.25rem;
  }

  .form input::placeholder {
    font-size: 0.75rem;
    line-height: 0.9rem;
  }

  .form input:not([type="checkbox"]) {
    padding-bottom: 0.625rem;
    font-size: 0.75rem;
    line-height: 0.9rem;
  }

  #x-optin__comunications label {
    font-size: 0.625rem;
    line-height: 0.75rem;
  }

  .submit-form-btn {
    height: 1.875rem;
  }

  .sucess-msg,
  .error-msg {
    font-size: 0.75rem;
  }
}
