.wpcf7 .hidden-fields-container {
  display: none;
}

.an-cf7 {
  width: 100%;
  max-width: 501px;
  margin-inline: auto;
  color: #000;
  background: #fff;
  font-family: "IBM Plex Sans", sans-serif;
}
.an-cf7 [hidden] {
  display: none !important;
}
.an-cf7 .an-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.an-cf7 *,
.an-cf7 *::before,
.an-cf7 *::after {
  box-sizing: border-box;
}
.an-cf7 .an-form-heading {
  margin-bottom: 20px;
  text-align: center;
}
.an-cf7 .an-form-heading h2 {
  max-width: 377px;
  margin: 0 auto 5px;
  font: 900 32px/1 "Sofia Sans Extra Condensed", sans-serif;
  text-transform: uppercase;
}
.an-cf7 .an-form-heading p {
  margin: 0;
  font: 400 14px/18px "IBM Plex Sans", sans-serif;
}
.an-cf7[data-form-kind=sponsor] .an-form-heading p {
  display: none;
}
.an-cf7 .an-form-step {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.an-cf7 .an-form-step + .an-form-step {
  margin-top: 20px;
}
.an-cf7[data-ready] .an-form-step {
  margin-top: 0;
}
.an-cf7 .an-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.an-cf7 .an-form-field {
  display: block;
  min-width: 0;
  margin: 0;
  font: 700 12px/18px "IBM Plex Sans", sans-serif;
}
.an-cf7 .an-form-field > span:first-child {
  display: block;
  margin-bottom: 5px;
}
.an-cf7 .an-form-field br {
  display: none;
}
.an-cf7 .an-form-field--wide {
  grid-column: 1/-1;
}
.an-cf7 .wpcf7-form-control-wrap {
  display: block;
}
.an-cf7 .an-form-field input:not([type=submit]):not([type=checkbox]),
.an-cf7 .an-form-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 16px;
  border: 1px solid #cecbcb;
  border-radius: 30px;
  background: #fff;
  color: #000;
  font: 400 16px/18px "IBM Plex Sans", sans-serif;
}
.an-cf7 .an-form-field input:not([type=submit]):not([type=checkbox])::placeholder,
.an-cf7 .an-form-field textarea::placeholder {
  color: #686868;
  opacity: 1;
}
.an-cf7 .an-form-field input:not([type=submit]):not([type=checkbox]):focus-visible,
.an-cf7 .an-form-field textarea:focus-visible {
  outline: 2px solid #b01313;
  outline-offset: 2px;
}
.an-cf7 .an-form-field textarea {
  border-radius: 20px;
  height: 80px;
  min-height: 80px;
  max-height: 240px;
  resize: vertical;
}
.an-cf7 .an-form-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
}
.an-cf7 .an-form-actions > * {
  flex: 1;
  min-width: 0;
}
.an-cf7 .an-form-actions .an-button {
  min-height: 52px;
  padding: 10px 20px;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
}
.an-cf7 .an-form-actions .an-button--arrow {
  background: transparent;
  border-color: #888;
  color: #000 !important;
}
.an-cf7 .an-form-actions .an-form-back + .an-form-next {
  background: #000;
  border-color: #000;
  color: #fff !important;
}
.an-cf7 .an-form-actions .an-button--arrow > span {
  color: #b01313;
  font-family: sans-serif;
  font-size: 24px;
}
.an-cf7 .an-form-submit-wrap {
  display: block;
  position: relative;
}
.an-cf7 input.an-form-submit,
.an-cf7 button.an-form-submit {
  width: 100%;
  height: 52px;
  padding: 10px 32px;
  border: 1px solid #000;
  border-radius: 40px;
  background: #000;
  color: #fff !important;
  font: 900 16px/1 "Sofia Sans Extra Condensed", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.an-cf7 .an-form-submit-wrap.is-enhanced::before {
  display: none;
}
.an-cf7 .an-form-arrow {
  position: relative;
  top: -2px;
  flex: none;
  width: 16px;
  height: 16px;
  transition: translate 0.25s ease;
}
.an-cf7 .an-form-back .an-form-arrow {
  transform: rotate(180deg);
}
.an-cf7 .an-form-next:focus-visible .an-form-arrow {
  translate: 3px 0;
}
.an-cf7 .an-form-back:focus-visible .an-form-arrow {
  translate: -3px 0;
}
@media (hover: hover) {
  .an-cf7 .an-form-next:hover .an-form-arrow {
    translate: 3px 0;
  }
  .an-cf7 .an-form-back:hover .an-form-arrow {
    translate: -3px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .an-cf7 .an-form-arrow {
    transition: none;
  }
}
.an-cf7 .an-form-submit-wrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b01313;
  left: calc(50% - 55px);
  top: 23px;
  pointer-events: none;
}
.an-cf7[data-form-kind=sponsor] .an-form-submit-wrap::before {
  left: calc(50% - 78px);
}
.an-cf7 .wpcf7-spinner {
  position: absolute;
  right: 8px;
  top: 14px;
  margin: 0;
}
.an-cf7 .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #b01313;
  font-size: 12px;
}
.an-cf7 .an-form-next,
.an-cf7 .an-form-back {
  display: none;
}
.an-cf7[data-ready] .an-form-next, .an-cf7[data-ready] .an-form-back {
  display: inline-flex;
}
.an-cf7 .an-form-success {
  padding-block: 60px;
  text-align: center;
}
.an-cf7 .an-form-success .an-script {
  position: relative;
  z-index: 1;
  margin: 0 0 -0.43em;
  translate: -0.165em 0;
  color: #b01313;
  font-size: clamp(56px, 12.5vw, 100px);
  line-height: 1.2;
}
.an-cf7 .an-form-success h2 {
  margin: 0 0 10px;
  font: 900 clamp(40px, 10vw, 80px)/0.875 "Sofia Sans Extra Condensed", sans-serif;
  text-transform: uppercase;
}
.an-cf7 .an-form-success .an-form-success-text {
  margin: 0 0 30px;
  font: 500 clamp(16px, 2.5vw, 20px)/1.1 "IBM Plex Sans", sans-serif;
  letter-spacing: -0.02em;
}
.an-cf7 .an-form-success [data-form-return] {
  gap: 10px;
  padding-inline: 32px;
  cursor: pointer;
}
.an-cf7 .an-form-success [data-form-return] .an-form-arrow {
  transform: rotate(180deg);
}
.an-cf7 .an-form-success [data-form-return]:focus-visible .an-form-arrow {
  translate: -3px 0;
}
@media (hover: hover) {
  .an-cf7 .an-form-success [data-form-return]:hover .an-form-arrow {
    translate: -3px 0;
  }
}

.an-application:has(.an-cf7) {
  background: #fff;
  color: #000;
  width: 701px;
  max-width: 100%;
  padding: 30px 100px;
}
.an-application:has(.an-cf7) > h2 {
  display: none;
}
.an-application:has(.an-cf7) .an-application-close {
  right: 15px;
  top: 15px;
  width: 38px;
  height: 38px;
  color: #000;
  background: linear-gradient(currentColor, currentColor) left top/10px 1px no-repeat, linear-gradient(currentColor, currentColor) left top/1px 10px no-repeat, linear-gradient(currentColor, currentColor) right top/10px 1px no-repeat, linear-gradient(currentColor, currentColor) right top/1px 10px no-repeat, linear-gradient(currentColor, currentColor) left bottom/10px 1px no-repeat, linear-gradient(currentColor, currentColor) left bottom/1px 10px no-repeat, linear-gradient(currentColor, currentColor) right bottom/10px 1px no-repeat, linear-gradient(currentColor, currentColor) right bottom/1px 10px no-repeat, #f2f2f2;
}

.an-application-dialog:has(.an-cf7) {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  width: 701px;
  max-width: calc(100% - 30px);
  border: 0;
  background: #fff;
  color: #000;
}

.wpcf7:has(.an-cf7) .wpcf7-response-output {
  max-width: 501px;
  margin: 20px auto 0;
  font: 400 14px/1.4 "IBM Plex Sans", sans-serif;
}

.wpcf7:has(.an-cf7) form.sent .wpcf7-response-output {
  display: none;
}

@media (max-width: 600px) {
  .an-application-dialog:has(.an-cf7) {
    max-width: 100%;
    max-height: 100dvh;
  }
  .an-application:has(.an-cf7) {
    padding: 30px;
  }
  .an-cf7[data-form-kind=sponsor] .an-form-heading p {
    display: block;
  }
  .an-cf7 .an-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .an-cf7 .an-form-heading h2 {
    max-width: 271px;
    font-size: 26px;
  }
  .an-cf7 .an-form-heading p {
    font-size: 12px;
    line-height: 16px;
  }
  .an-cf7 .an-form-field {
    font-size: 12px;
    line-height: 16px;
  }
  .an-cf7 .an-form-actions .an-button {
    padding-inline: 10px;
  }
  .an-cf7 .an-form-field input,
  .an-cf7 .an-form-field textarea {
    font-size: 16px;
  }
}
.an-cf7 .an-form-required {
  color: #b01313;
}

.an-application-dialog:has(.an-form-success:not([hidden])) {
  width: 100vw;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #000;
}
.an-application-dialog:has(.an-form-success:not([hidden])) .an-application {
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 100%;
  padding: 30px 20px 93px;
  background: #000;
  color: #fff;
}
.an-application-dialog:has(.an-form-success:not([hidden])) .an-application::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 33px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='33' viewBox='0 0 52 33'%3E%3Crect x='6' width='22' height='33' rx='4' fill='%23f0eded'/%3E%3C/svg%3E") repeat-x 0 0/52px 33px;
  pointer-events: none;
}
.an-application-dialog:has(.an-form-success:not([hidden])) .an-cf7 {
  width: 100%;
  max-width: none;
  background: #000;
  color: #fff;
}

@media (max-width: 900px) {
  .an-application-dialog:has(.an-form-success:not([hidden])) .an-application {
    padding-bottom: 64px;
  }
  .an-application-dialog:has(.an-form-success:not([hidden])) .an-application::after {
    bottom: 20px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='24'%3E%3Crect width='16' height='24' rx='4' fill='%23f0eded'/%3E%3C/svg%3E");
    background-size: 36px 24px;
  }
}
