#account-register .register-form > .mc-form-section,
#account-forgotten .mc-captcha-fieldset {
  min-inline-size: 0;
  margin: 0 0 20px;
  padding: 22px 24px 8px;
  border: 1px solid rgba(32, 37, 43, 0.045);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 4px rgba(29, 45, 68, 0.018);
}

#account-register .register-form > .mc-form-section > .mc-section-title,
#account-forgotten .mc-captcha-fieldset > .mc-section-title {
  display: flex;
  float: none;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
  border: 0;
  border-bottom: 1px solid rgba(32, 37, 43, 0.055);
  color: #20252b;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

#account-register .register-form > .mc-form-section > .mc-section-title + .form-group,
#account-forgotten .mc-captcha-fieldset > .mc-section-title + .form-group {
  margin-top: 0 !important;
}

#account-register .register-form > .mc-form-section > .form-group,
#account-forgotten .mc-captcha-fieldset > .form-group {
  margin-top: 0 !important;
  margin-bottom: 14px;
}

.mc-captcha-group {
  align-items: center;
}

.mc-captcha-content {
  min-width: 0;
}

.mc-captcha-controls {
  display: flex;
  align-items: center;
  max-width: 490px;
  gap: 12px;
}

.mc-captcha-controls #input-captcha {
  flex: 1 1 190px;
  width: auto;
  max-width: 220px !important;
  min-width: 0;
  height: 46px;
  margin: 0 !important;
  border-color: #d9dee7;
  border-radius: 9px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
}

.mc-captcha-controls #input-captcha:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.mc-captcha-visual {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.mc-captcha-image {
  display: flex;
  flex: 0 0 170px;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 4px 9px;
  overflow: hidden;
  border: 1px solid rgba(32, 37, 43, 0.07);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mc-captcha-image img {
  display: block;
  width: 150px;
  height: 35px;
  border: 0;
  transition: opacity 0.18s ease;
}

.mc-captcha-image:hover,
.mc-captcha-image:focus-visible,
.mc-captcha-refresh:hover,
.mc-captcha-refresh:focus-visible {
  border-color: rgba(22, 119, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
  outline: 0;
}

.mc-captcha-refresh {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(32, 37, 43, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  color: #536171;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mc-captcha-refresh:hover {
  color: #1677ff;
}

.mc-captcha-refresh span {
  display: inline-flex;
}

.mc-captcha-refresh svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mc-captcha-visual.is-refreshing .mc-captcha-image img {
  opacity: 0.42;
}

.mc-captcha-visual.is-refreshing .mc-captcha-refresh span {
  animation: mc-captcha-spin 0.65s linear infinite;
}

@keyframes mc-captcha-spin {
  to {
    transform: rotate(360deg);
  }
}

.mc-captcha-content .invalid-feedback {
  margin-top: 7px;
}

@media (max-width: 767px) {
  #account-register .register-form > .mc-form-section,
  #account-forgotten .mc-captcha-fieldset {
    margin-bottom: 16px;
    padding: 18px 16px 6px;
    border-radius: 12px;
  }

  #account-register .register-form > .mc-form-section > .mc-section-title,
  #account-forgotten .mc-captcha-fieldset > .mc-section-title {
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    font-size: 19px;
  }

  .mc-captcha-label {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    margin-bottom: 8px;
  }

  .mc-captcha-group {
    display: block !important;
  }

  .mc-captcha-content {
    display: block !important;
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .mc-captcha-controls {
    width: 100%;
    max-width: none;
  }

  .mc-captcha-controls #input-captcha {
    flex-basis: 0;
  }

  .mc-captcha-image {
    flex-basis: 158px;
    padding-inline: 3px;
  }
}

@media (max-width: 420px) {
  .mc-captcha-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .mc-captcha-controls #input-captcha,
  .mc-captcha-visual {
    flex-basis: auto;
    width: 100%;
  }

  .mc-captcha-visual {
    padding-right: 22px;
  }

  .mc-captcha-controls #input-captcha {
    max-width: none !important;
  }

  .mc-captcha-image {
    flex: 1 1 auto;
  }
}
