.container.has-copy {
  padding-top: 50px;
  padding-left: 0px;
  padding-right: 0px;
}

.container.has-copy .ms-copy {
  padding-left: 15px;
  padding-right: 15px;
}

.sparks-ms {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
  max-width: 100%;
  min-height: 900px;
  margin: 0 auto;
}

.has-copy .sparks-ms {
  min-height: 800px;
}

.sparks-ms .center {
  margin-left: auto;
  margin-right: auto;
}

#erecruit-form {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 667px;
  margin: 0 auto;
  z-index: 3;
}

.has-copy #erecruit-form {
  min-height: 800px;
}

#erecruit-form .rich {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#erecruit-form .rich :is(h2, h3, h4, h5, h6, p, span, div ) {
  color: white;
  font-family: Inter;
  font-weight: 700;
  text-align: center;
  line-height: 160%;
}

#erecruit-form .rich :is(p, span, div ) {
  font-size: 18px;
}

.sparks-ms__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  z-index: 0;
  pointer-events: none;
}

.sparks-ms__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.sparks-ms:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient( 0deg, rgba(1, 21, 61, 0.80) 0%, rgba(1, 21, 61, 0.80) 100%);
  z-index: 1;
  pointer-events: none;
}

.ms-pane {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* inset: 0; */
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.ms-pane.is-active {
  pointer-events: auto;
  z-index: 1;
}

.ms-pane[hidden] {
  display: block;
  visibility: hidden;
}

.ms-title {
  color: var(--White, #FFF);
  font-family: Unna;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  margin-bottom: 30px;
  text-align: center;
}

.ms-title.required:after,
.ms-label.required:after {
  content: '*';
  color: var(--Orange, #FFB60E);
  font-family: Unna;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  margin-left: 5px;
}

.ms-body p {
  margin: 0 0 12px;
  font-size: 16px;
}

.ms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Fields */
.ms-field {
  margin-bottom: 8px;
}

.ms-label {
  color: var(--White, #FFF);
  display: block;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  line-height: 160%;
  font-weight: 600;
  margin-bottom: 6px;
}

.ms-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d8dde3;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.ms-choice input {
  margin: 0;
}

.sparks-ms input[type="text"],
.sparks-ms input[type="email"],
.sparks-ms input[type="tel"],
.sparks-ms select {
  background: #FFF;
  border: 1px solid var(--light-grey, #F0F0F0);
  border-radius: 5px;
  color: var(--Navy, #01153D);
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  height: 43px;
  line-height: 160%;
  margin-bottom: 0px;
  min-height: 38px;
  padding: 6px 12px;
  width: 100%;
}

.sparks-ms input:focus,
.sparks-ms select:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
}

/* Errors */
.ms-error,
.ms-submit-error {
  color: #b42318;
  display: none;
  font-size: 14px;
  margin-top: 6px;
  min-height: 18px;
}

.ms-field.is-invalid input,
.ms-field.is-invalid select,
.ms-field.is-invalid .ms-choice {
  border-color: #b42318;
}

/* Actions */
.ms-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
}

.ms-btn {
  background: transparent;
  border-bottom: 2px solid var(--Lime, #9EDE16);
  color: var(--Lime, #9EDE16);
  display: flex;
  flex-direction: row;
  font-family: Inter;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%;
  gap: 12px;
  text-align: center;
  padding: 8px 0;
  transition: all 0.2s ease-in-out;
}

.ms-btn[data-next] {
  margin-left: auto;
}

.ms-btn[data-back]:before {
  background-image: url("data:image/svg+xml,%3Csvg width='9' height='14' viewBox='0 0 9 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.125 7.40625L2.0625 13.5C1.75 13.7812 1.28125 13.7812 1 13.5L0.28125 12.7812C0 12.5 0 12.0312 0.28125 11.7188L5.09375 6.875L0.28125 2.0625C0 1.75 0 1.28125 0.28125 1L1 0.28125C1.28125 0 1.75 0 2.0625 0.28125L8.125 6.375C8.40625 6.65625 8.40625 7.125 8.125 7.40625Z' fill='%239EDE16'/%3E%3C/svg%3E%0A");
  background-position: center;
  background-repeat: no-repeat;
  content: '';
  display: block;
  height: 25px;
  width: 9px;
  transform: rotate(180deg);
}

.ms-btn[data-next]:after {
  background-image: url("data:image/svg+xml,%3Csvg width='9' height='14' viewBox='0 0 9 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.125 7.40625L2.0625 13.5C1.75 13.7812 1.28125 13.7812 1 13.5L0.28125 12.7812C0 12.5 0 12.0312 0.28125 11.7188L5.09375 6.875L0.28125 2.0625C0 1.75 0 1.28125 0.28125 1L1 0.28125C1.28125 0 1.75 0 2.0625 0.28125L8.125 6.375C8.40625 6.65625 8.40625 7.125 8.125 7.40625Z' fill='%239EDE16'/%3E%3C/svg%3E%0A");
  background-position: center;
  background-repeat: no-repeat;
  content: '';
  display: block;
  height: 25px;
  width: 9px;
}

.ms-btn.white{
  border-bottom-color: white;
  color: white;
  margin: 0 auto 38px auto;
}

.ms-btn.white[data-back]:before {
  background-image: url("data:image/svg+xml,%3Csvg width='9' height='14' viewBox='0 0 9 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.125 7.40625L2.0625 13.5C1.75 13.7812 1.28125 13.7812 1 13.5L0.28125 12.7812C0 12.5 0 12.0312 0.28125 11.7188L5.09375 6.875L0.28125 2.0625C0 1.75 0 1.28125 0.28125 1L1 0.28125C1.28125 0 1.75 0 2.0625 0.28125L8.125 6.375C8.40625 6.65625 8.40625 7.125 8.125 7.40625Z' fill='%23ffffff'/%3E%3C/svg%3E%0A");
}

.ms-btn:hover {
  gap: 24px;
}

.ms-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.ms-btn.submit {
  background: var(--Lime, #9EDE16);
  border-radius: 600px;
  color: var(--Navy, #01153D);
  padding: 16px 32px 12px;
}

.ms-btn.submit:after {
  background-image: url("data:image/svg+xml,%3Csvg width='9' height='14' viewBox='0 0 9 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.125 7.40625L2.0625 13.5C1.75 13.7812 1.28125 13.7812 1 13.5L0.28125 12.7812C0 12.5 0 12.0312 0.28125 11.7188L5.09375 6.875L0.28125 2.0625C0 1.75 0 1.28125 0.28125 1L1 0.28125C1.28125 0 1.75 0 2.0625 0.28125L8.125 6.375C8.40625 6.65625 8.40625 7.125 8.125 7.40625Z' fill='%2301153D'/%3E%3C/svg%3E%0A");
  background-position: center;
  background-repeat: no-repeat;
  content: '';
  display: block;
  height: 25px;
  width: 9px;
}

.ms-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ms-progress {
  background: transparent;
  bottom: 30px;
  left: 50%;
  margin-bottom: 14px;
  max-width: 100%;
  padding: 12px 0 6px;
  position: absolute;
  transform: translateX(-50%);
  width: 871px;
  z-index: 3;
}

.ms-progress__track {
  background: rgba(255, 255, 255, 0.50);
  border-radius: 90px;
  height: 13px;
  overflow: hidden;
}

.ms-progress__fill {
  background: linear-gradient(90deg, #9EDE16 0.01%, #C4FF47 99.99%), linear-gradient(90deg, #9EDE16 0.01%, #7BAD12 99.99%);
  border-radius: 90px;
  height: 100%;
  width: 0%;
  transition: width 0.2s linear;
}

.ms-progress__text {
  font-size: 13px;
  margin-top: 6px;
  color: #4b5563;
}


/* Inputs */
.ms-fieldset {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.ms-choice {
  aspect-ratio: 1;
  align-items: center;
  background: var(--White, #FFF);
  border: 3px solid transparent;
  border-radius: 10px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10);
  cursor: pointer;
  display: flex;
  flex: 0 1 135px;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 16px;
  justify-content: center;
  gap: 5px;
  position: relative;
  user-select: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.ms-fieldset.large .ms-choice {
  aspect-ratio: 4 / 3;
  flex: 1 1 47%;
}

.ms-fieldset.medium .ms-choice {
  aspect-ratio: unset;
  flex: 1 1 284px;
}

.ms-fieldset .ms-choice {
}

/* Hide the native radio but keep it accessible */
.ms-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ms-choice span {
  color: var(--Navy, #01153D);
  text-align: center;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%;
}

.ms-fieldset.large .ms-choice span {
  font-size: 20px;
}

.ms-choice:hover {
  background: linear-gradient(0deg, rgba(255, 182, 14, 0.30) 0%, rgba(255, 182, 14, 0.30) 100%), #FFF;
  box-shadow: none;
}

.ms-choice span.hint {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease;
}

.ms-choice span.hint > * {
  overflow: hidden;
  font-weight: 300;
}

.ms-choice:hover span.hint {
  grid-template-rows: 1fr;
}

/* Selected state */
.ms-choice:has(input[type="radio"]:checked) {
  border: 3px solid var(--Orange, #FFB60E);
  background: var(--Orange, #FFB60E);
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10);
}

.ms-fieldset.large .ms-choice:has(input[type="radio"]:checked) > span:not(.hint) {
  border-bottom: 3px solid var(--White, #FFF);
}

/* Hover gradient overlay */
.ms-choice::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(255, 182, 14, 0.30) 0%,
    rgba(255, 182, 14, 0.30) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.ms-choice > * {
  position: relative;
  z-index: 1;
}

.sparks-ms select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 2rem;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0.84375%200H8.875C9.4375%200%209.71875%200.6875%209.3125%201.09375L5.3125%205.09375C5.0625%205.34375%204.65625%205.34375%204.40625%205.09375L0.40625%201.09375C0%200.6875%200.28125%200%200.84375%200Z%22%20fill%3D%22%235076FF%22/%3E%3C/svg%3E");
}

/* IE 10/11 fallback to hide arrow */
.field__select::-ms-expand {
  display: none;
}

.ms-choice:not(:has(input[type="radio"]:checked)):hover::after {
  opacity: 1;
}

.ms-choice:not(:has(input[type="radio"]:checked)):hover {
  box-shadow: none;
}

/* Selected state */
.ms-choice:has(input[type="radio"]:checked) {
  border-color: var(--Orange, #FFB60E);
  background: var(--Orange, #FFB60E);
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10);
}

/* Keyboard focus */
.ms-choice:has(input[type="radio"]:focus-visible) {
  box-shadow: 0 0 0 3px rgba(1, 21, 61, 0.55), 0 0 20px rgba(0, 0, 0, 0.10);
}

@media (min-width: 1320px) {
  .container.has-copy {
    width: 1320px;
  }
}

@media (max-width: 1319px) and (min-width: 992px) {
  .has-copy #erecruit-form {
    min-height: 1050px;
  }
}

@media (min-width: 640px) {
  .ms-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ms-grid .ms-field.full,
  .ms-grid .ms-field:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 651px) {
  .sparks-ms .job-link {
    margin-top: 100px;
  }
}

@media (max-width: 650px) {
  #erecruit-form {
    min-height: 1000px !important;
  }

  .ms-pane {
    top: 15%;
    transform: translateX(-50%);
  }

  .ms-fieldset .ms-choice {
    aspect-ratio: unset !important;
  }

  .ms-fieldset.large .ms-choice span {
    font-size: 16px;
  }

  .ms-progress {
    bottom: unset;
    top: 30px;
    max-width: 80%;
  }
}

@media (max-width: 480px) {
  .ms-choice {
    width: 100%;
  }
}