.custom-form__container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 32px auto 25px auto;
}

.js-custom-form__content {
  width: 500px;
  height: 430px;
  padding: 20px;

  border-radius: 8px;
  background-color: rgba(238, 247, 255, 1);
}

.custom-form__content-heading {
  font-family: Inter;
  font-size: 30px;
  line-height: 36px;
  color: rgba(0, 186, 245, 1);
}

.custom-form__fields {
  margin: 24px auto;
}

.custom-form__field {
  height: 41px;
  width: 100%;
  margin-bottom: 12px;
}

.js-custom-form__input {
  border: none !important;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 1) !important;

  font-family: Inter;
  font-size: 14px !important;
  font-weight: 500;
  color: rgba(59, 77, 98, 1) !important;
}

.js-custom-form__input::placeholder {
  font-family: Inter;
  font-size: 14px;
  font-weight: 600;
  color: rgba(59, 77, 98, 1) !important;
}

.js-custom-form__input-textarea {
  height: 41px !important;
  min-height: 41px;
  max-height: 41px;
  border: none !important;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 1) !important;
  resize: none;
  overflow: hidden;

  font-family: Inter;
  font-size: 14px !important;
  font-weight: 500;
  color: rgba(59, 77, 98, 1) !important;
}

.js-custom-form__input-textarea::placeholder {
  white-space: nowrap;
  font-family: Inter;
  font-size: 14px;
  font-weight: 600;
  color: rgba(59, 77, 98, 1) !important;
}

@media (max-width: 360px) {
  .js-custom-form__input::placeholder {
    white-space: normal;
    line-height: 1.2;
  }
}

.custom-form__buttons {
  width: 100%;
}

.js-custom-form__button-submit {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: none;
  box-shadow: none !important;

  background-color: rgba(2, 192, 252, 1) !important;

  text-transform: none !important;
  font-family: Inter;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 1);
}

.js-custom-form__button-submit:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.js-custom-form__button-submit:hover {
  background-color: #00B0E8 !important;
}

.custom-form__checkboxes {
  margin-top: 12px;
}

.custom-form__checkbox {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.custom-form__checkbox-description {
  height: 18px;

  font-family: Inter;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: rgba(2, 32, 68, 1) !important;
}

.js-custom-form__checkbox-text.is-invalid {
  color: #f58580 !important;
}

.js-custom-form__checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.js-custom-form__checkbox-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;

  border: 1px solid rgba(2, 32, 68, 1);
  border-radius: 3px;
  background-color: #fff;
  vertical-align: middle;
  position: relative;
}

.js-custom-form__checkbox-input:checked + .js-custom-form__checkbox-box {
  background-color: rgb(2, 32, 68);
  border-color: rgb(2, 32, 68);

  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.custom-form__checkbox-link {
  color: rgba(2, 192, 252, 1) !important;
}

.js-custom-form__success {
  width: 500px;
  height: 192px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  border-radius: 8px;
  background-color: rgba(238, 247, 255, 1);

  font-family: Inter;
}

.custom-form__success-icon {
  height: 64px;
  width: 64px;
  margin-bottom: 24px;

  background-image: url("../icon-submitted.svg");
}

.custom-form__success-heading {
  margin-bottom: 8px;

  font-size: 30px;
  line-height: 36px;
  color: rgba(0, 186, 245, 1);
}

.custom-form__success-description {
  margin: 0;

  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: rgba(2, 32, 68, 1);
}

.cf-turnstile-container {
  width: 0;
  height: 0;
}

@media screen and (max-width: 768px) {
  .custom-form__content-heading {
    font-size: 24px;
    line-height: 32px;
  }

  .custom-form__success-icon {
    height: 56px;
    width: 56px;
  }

  .custom-form__success-heading {
    font-size: 24px;
    line-height: 32px;
  }
}

@media screen and (max-width: 520px) {
  .js-custom-form__content {
    width: 100%;
    height: fit-content;
  }
}

@media screen and (max-width: 430px) {
  .custom-form__field {
    height: auto;
  }

  .js-custom-form__input-textarea {
    height: 58px !important;
    min-height: 58px;
    max-height: 58px;
  }

  .js-custom-form__input-textarea::placeholder {
    white-space: wrap;
  }
}

@media screen and (max-width: 360px) {
  .js-custom-form__content {
    padding: 16px;
  }

  .custom-form__content-heading {
    font-size: 20px;
    line-height: 28px;
  }

  .js-custom-form__success {
    padding: 16px;
  }

  .custom-form__success-icon {
    height: 44px;
    width: 44px;
  }

  .custom-form__success-heading {
    font-size: 20px;
    line-height: 28px;
  }
}

.js-custom-form__input.is-invalid,
.js-custom-form__input-textarea.is-invalid {
  border: 1px solid #f58580 !important;
}
