.wpcf7 form.submitting .form-wrap-bottom-content::after {
  content: "";
  display: block;
  position: absolute;
  right: 10px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border: 2px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media screen and (max-width: 768px) {
  .wpcf7 form.submitting .form-wrap-bottom-content::after {
    margin-top: -7px;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wpcf7 form .form-wrap-bottom-content {
  position: relative;
}

.form-page {
  padding-top: 15px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 70px;
}

.form-cover {
  padding: 42px;
  background: #fff;
  border-radius: 30px;
  margin-top: 49px;
}

.with-state > div,
.zip-and-country > div {
  flex-basis: 50%;
}

@media screen and (min-width: 1201px) {
  .form-wrap.form-submit {
    margin-bottom: 330px;
  }
}

.form-page-container {
  max-width: 690px;
  margin-left: auto;
  position: relative;
  z-index: 2;
  margin-right: auto;
}

h4.form-title {
  color: #52225e;
  text-align: center;
}

.form-page p {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.form-page h1 {
  margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
  .form-page {
    padding-top: 0;
    padding-bottom: 40px;
  }

  .form-cover {
    margin-top: 40px;
    padding: 42px 20px;
  }

  .form-page h1 {
    margin-bottom: 20px;
  }

  .form-page p {
    font-size: 16px;
  }
}

.form-page-container form {
  position: relative;
}

.form-page-container .form-wrap.form-submit::before {
  top: -43px;
}

/* code after redisign */

.animated-photo {
  position: absolute;
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.animated-photo-rotate-wrapper {
  background: #ffffff;
  box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.06);
  padding: 20px 20px 40px;
  border-radius: 5px;
}

.animated-photo-rotate-wrapper {
  transition: transform 0.3s ease-out;
}

.form-sent .animated .animated-photo {
  transition: transform 0.3s ease-out;
}

.animated-photo img {
  width: 100%;
}

.animated-item-1,
.animated-item-2,
.animated-item-3 {
  left: 0;
  top: 0;
}

.animated-item-4,
.animated-item-5,
.animated-item-6 {
  right: 0;
  top: 0;
}

.animated-item-1 .animated-photo-rotate-wrapper {
  transform: rotate(-20.24deg);
}

.animated-item-1 .animated-photo-rotate-wrapper:hover {
  transform: rotate(-14.35deg);
}

.animated-item-2 .animated-photo-rotate-wrapper {
  transform: rotate(20.95deg);
}

.animated-item-2 .animated-photo-rotate-wrapper:hover {
  transform: rotate(26.84deg);
}

.animated-item-3 .animated-photo-rotate-wrapper {
  transform: rotate(-23.84deg);
}

.animated-item-3 .animated-photo-rotate-wrapper:hover {
  transform: rotate(-17.95deg);
}

.animated-item-4 .animated-photo-rotate-wrapper {
  transform: rotate(11.57deg);
}

.animated-item-4 .animated-photo-rotate-wrapper:hover {
  transform: rotate(17.46deg);
}

.animated-item-5 .animated-photo-rotate-wrapper {
  transform: rotate(-15.19deg);
}

.animated-item-5 .animated-photo-rotate-wrapper:hover {
  transform: rotate(-9.3deg);
}

.animated-item-6 .animated-photo-rotate-wrapper {
  transform: rotate(20.5deg);
}

.animated-item-6 .animated-photo-rotate-wrapper:hover {
  transform: rotate(26.39deg);
}

.animated-item-1 {
  transform: translate(106px, 408px);
}

.animated-item-2 {
  transform: translate(80px, 585px);
}

.animated-item-3 {
  transform: translate(182px, 672px);
}

.animated-item-4 {
  transform: translate(-47px, 417px);
}

.animated-item-5 {
  transform: translate(-100px, 714px);
}

.animated-item-6 {
  transform: translate(-38px, 554px);
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .animated-item-6 .animated-photo-rotate-wrapper {
    transform: rotate(40.08deg);
  }

  .animated-photo {
    max-width: 206px;
  }

  .animated .animated-item-1 {
    transform: translate(-144px, 308px);
  }

  .form-sent .animated .animated-item-1 {
    transform: translate(-167px, 72px);
  }

  .animated .animated-item-2 {
    transform: translate(-150px, 578px);
  }

  .form-sent .animated .animated-item-2 {
    transform: translate(-175px, 341px);
  }

  .animated .animated-item-3 {
    transform: translate(-150px, 838px);
  }

  .form-sent .animated .animated-item-3 {
    transform: translate(-150px, 601px);
  }

  .animated .animated-item-4 {
    transform: translate(141px, 312px);
  }

  .form-sent .animated .animated-item-4 {
    transform: translate(166px, 65px);
  }

  .animated .animated-item-5 {
    transform: translate(159px, 570px);
  }

  .form-sent .animated .animated-item-5 {
    transform: translate(184px, 323px);
  }

  .animated .animated-item-6 {
    transform: translate(146px, 832px);
  }

  .form-sent .animated .animated-item-6 {
    transform: translate(171px, 585px);
  }
}

@media screen and (min-width: 1201px) {
  .animated-photo {
    max-width: 259px;
  }

  .animated .animated-item-1 {
    transform: translate(-311px, 190px);
  }

  .form-sent .animated .animated-item-1 {
    transform: translate(-303px, 39px);
  }

  .animated .animated-item-2 {
    transform: translate(-345px, 520px);
  }

  .form-sent .animated .animated-item-2 {
    transform: translate(-321px, 268px);
  }

  .animated .animated-item-3 {
    transform: translate(-331px, 866px);
  }

  .form-sent .animated .animated-item-3 {
    transform: translate(-311px, 501px);
  }

  .animated .animated-item-4 {
    transform: translate(325px, 186px);
  }

  .form-sent .animated .animated-item-4 {
    transform: translate(340px, 44px);
  }

  .animated .animated-item-5 {
    transform: translate(354px, 509px);
  }

  .form-sent .animated .animated-item-5 {
    transform: translate(367px, 304px);
  }

  .animated .animated-item-6 {
    transform: translate(335px, 848px);
  }

  .form-sent .animated .animated-item-6 {
    transform: translate(344px, 521px);
  }
}

.form-page-container {
  position: relative;
}

.form-page-container .form-cover {
  position: relative;
  z-index: 2;
}

#first-ribbon,
#second-ribbon,
#first-circle,
#second-circle,
.before-footer-image-mobile,
.before-footer-image {
  position: absolute;
}

.before-footer-image-mobile {
  min-width: 100%;
  z-index: -1;
  display: none;
}

.before-footer-image {
	height:100%;
	object-fit:cover;
  min-width: 100%;
  z-index: -1;
  top: 145px;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (max-width: 1700px) {
  .show-desktop {
    display: none;
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .form-wrap.form-submit {
    margin-bottom: 409px;
  }

  .form-sent .before-footer-image {
    top: unset;
    bottom: 80px;
  }
}

@media screen and (min-width: 1701px) {
  #second-circle {
    right: -964px;
    top: -1090px;
  }

  .form-sent #second-circle {
    right: -1162px;
    top: -1344px;
  }

  #first-circle {
    left: -724px;
    top: -911px;
  }

  .form-sent #first-circle {
    left: -843px;
    top: -1179px;
  }

  #second-ribbon {
    right: -82px;
    top: -241px;
  }

  #first-ribbon {
    left: -244px;
    top: -244px;
  }

  .show-tablet {
    display: none;
  }
}

@media screen and (min-width: 769px) and (max-width: 1700px) {
  #first-circle {
    top: -723px;
    left: -953px;
  }

  .form-sent #first-circle {
    top: -1195px;
    left: -1192px;
  }

  #second-circle {
    right: -1636px;
    top: -1117px;
  }

  .form-sent #second-circle {
    top: -1807px;
    right: -1034px;
  }

  #second-ribbon {
    right: -369px;
    top: -527px;
  }

  #first-ribbon {
    left: -463px;
    top: -721px;
  }
}
@media screen and (max-width: 768px) {
  .form-sent .before-footer-image-mobile {
    display: block;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .form-sent .before-footer-image {
    display: none;
  }

  .form-wrap.form-submit {
    margin-bottom: 40px;
  }

  body .animated-photo {
    display: none;
  }

  .form-page-container br {
    display: none;
  }

  .before-footer-image {
    bottom: 120px;
    top: unset;
  }

  #first-circle {
    top: -723px;
    left: -953px;
  }

  .form-sent #first-circle {
    top: -1453px;
    left: -1213px;
  }

  #second-circle {
    right: -2139px;
    top: -1117px;
  }

  .form-sent #second-circle {
    right: -2102px;
    top: -1524px;
  }

  .show-tablet {
    display: none;
  }
}

.form-sent .form-page {
  padding-bottom: 0;
}

/* radio */

.wpcf7-radio {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.wpcf7-radio span {
  width: 100%;
}

.wpcf7-radio .wpcf7-list-item label {
  cursor: pointer;
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 14px 20px;
  transition: all 0.5s;
}

.wpcf7-radio .wpcf7-list-item.first,
.wpcf7-radio .wpcf7-list-item.last {
  margin: 0;
}

.wpcf7-radio .wpcf7-list-item label:hover {
  border-color: #c3b2e7;
}

.wpcf7-radio input {
	height:100%;
	width:100%;
	left:0;
	top:0;
  opacity: 0;
  position: absolute;
	    cursor: pointer;
}

.wpcf7-radio label{
	position:relative;
}

.wpcf7-radio .wpcf7-list-item label input + span:before {
  content: "";
  border: 1px solid #52225e;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 20px;
  border-radius: 100px;
}

.wpcf7-radio .wpcf7-list-item label input:checked + span::after {
  content: "";
  background: #52225e;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  left: 3px;
  border-radius: 100px;
  position: absolute;
}

.wpcf7-radio .wpcf7-list-item-label {
  position: relative;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .wpcf7-form-control.wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
