.cf-form.cf-completed {
  display: none;
}
.cf-form-success {
  display: none;
}
.cf-form-success.cf-completed {
  display: block;
}
.cf-field {
  display: grid;
  grid-template: auto / 35% 65%;
  margin-bottom: 1rem;
}
.cf-section[aria-expanded="false"] {
  display: none;
}
.cf-section-toggles {
  display: none;
}
.cf-sections-label {
  display: none;
}
.cf-field--errors {
  display: block;
  color: red;
  font-weight: bold;
  grid-row: 2/3;
  grid-column: 2/3;
}
.cf-field--errors span {
  display: block;
}
.cf-field--description {
  display: none;
}
.cf-field--description.active {
  content: '';
  display: block;
  position: fixed;
  z-index: 99;
  background: rgba(0,0,0,0.5);
  top: 0; left: 0; right: 0; bottom: 0;
}
.cf-field--description--modal {
  display: block;
  z-index: 100;
  position: fixed;
  height: 50vh;
  width: 50vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 3rem 2rem 2rem 2rem;
}
@keyframes popUp {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.cf-field--description.active .cf-field--description--modal {
  animation: popUp 0.2s ease-out forwards;
}
.cf-field--description--content {
  color: black;
}
.cf-field--description--close {
  position: absolute;
  cursor: pointer;
  background: transparent;
  outline: 1px solid white;
  font-size: 3rem;
  top: 0.5em;
  right: 0.5em;
  padding: 0.25em;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cf-field textarea {
  height: 5em;
}
.cf-checkbox-list {
  column-count: 2;
}
.cf-checkbox-option {
  display: flex;
  flex: 1;
  align-items: flex-start;
}
.cf-checkbox-option>input {
  margin: 0.4em 0.75em 0 0;
  width: 20px;
}
.cf-tags-search {
  margin-bottom: 1em;
}
.cf-tags [type="checkbox"] {
  display:none;
}
.cf-tag.highlight {
  display: inline-block;
}
.cf-tags [type="checkbox"]:checked + .cf-tag {
  color: red;
  border-color: red;
  display: inline-block;
}
.cf-tag {
  display: none;
  width: fit-content;
  padding: 0.25em 1em; 
  margin-right: 0.35em;
  margin-bottom: 0.35em;
  border: 1px solid white;
  border-radius: 5px;
  cursor: pointer;
}
.cf-tags .cf-tags-search {
  width: 100%;
  box-sizing: border-box;
}

.cf-field-captcha label {
  grid-column: 1/2;
  grid-row: 1/3;
}
.cf-field-captcha img {
  margin-bottom: 0.5em;
}
.cf-field-captcha input {
  width: 200px;
  grid-column: 2/3;
}
.cf-field-captcha button {
  display: none;
}
.cf-field.cf-field-captcha[data-mode="popup"] {
  display: none;
  position: fixed;
  z-index: 20;
  width: 400px;
  height: auto;
  padding: 1em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-navy);
  border: 1px solid white;
}
.cf-field.cf-field-captcha[data-mode="popup"].active {
  display: block;
}
.cf-field.cf-field-captcha[data-mode="popup"] label {
  display: block;
}
.cf-field.cf-field-captcha[data-mode="popup"] button {
  display: inline-block;
}

.cf-field-captcha--bg-overlay {
  position: fixed;
  background: rgba(0,0,0,0.5);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19;
}

.cf-form--info-modal {
  display: none;
}
.cf-form--info-modal.active {
  content: '';
  display: block;
  position: fixed;
  z-index: 99;
  background: rgba(0,0,0,0.5);
  top: 0; left: 0; right: 0; bottom: 0;
}
.cf-form--info-modal--container {
  display: block;
  z-index: 100;
  position: fixed;
  height: 50vh;
  width: 50vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 3rem 2rem 2rem 2rem;
}

@media (max-width: 600px) {
  .cf-field {
    grid-template: auto / 100%;
  }
  .cf-field-captcha label {
    grid-row: 1/2;
  }
  .cf-field-captcha input {
    grid-column: 1/2;
  }

}
