body {
  background: #f7f7f7;
}

@media screen and (min-width: 768px) {
  .ec-contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
@media screen and (max-width: 767px) {
  .ec-contact {
    padding-top: 30px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
}
.ec-contact .under-content-inner {
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .ec-contact .under-content-inner {
    min-width: 1000px;
    max-width: 1340px;
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media screen and (min-width: 768px) {
  .ec-contact .confirmation-inner {
    max-width: 1340px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }
}
.ec-contact .main-title {
  text-align: center;
  font-feature-settings: normal;
}
@media screen and (min-width: 768px) {
  .ec-contact .main-title {
    margin-bottom: 80px;
    font-size: 36px;
  }
}
@media screen and (max-width: 767px) {
  .ec-contact .main-title {
    margin-bottom: 20px;
    font-size: 24px;
  }
}
@media screen and (min-width: 768px) {
  .ec-contact #form {
    max-width: 620px;
    width: 100%;
  }
}
@media screen and (min-width: 768px) and (max-width: 1245px) {
  .ec-contact #form {
    margin-left: 20px;
  }
}

.contact-photo-block {
  border: 3px solid #fcc110;
  border-radius: 20px;
  text-align: center;
  background: #fff;
}
@media screen and (min-width: 768px) {
  .contact-photo-block {
    max-width: 585px;
    height: max-content;
    width: 100%;
    padding-top: 30px;
    padding-bottom: 35px;
  }
}
@media screen and (max-width: 767px) {
  .contact-photo-block {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    padding-top: 15px;
    margin-bottom: 40px;
  }
}
.contact-photo-block__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 28px;
}
@media screen and (max-width: 767px) {
  .contact-photo-block__title {
    font-size: 18px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1165px) {
  .contact-photo-block__img {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (min-width: 768px) {
  .form-inner {
    max-width: 600px;
    margin: 0 auto;
  }
}

.contact__form .hissu_btn {
  color: #fff;
  background: #fcc110;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  margin-right: 10px;
  width: 37px;
  height: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__form-flex {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}
@media screen and (min-width: 768px) {
  .contact__form-box {
    padding-top: 30px;
  }
}
@media screen and (max-width: 767px) {
  .contact__form-box {
    display: block;
    padding-top: 30px;
  }
}
.contact__form-box:first-child {
  padding-top: 0px;
}
.contact__form .box__border {
  border-bottom: 1px solid #dee2e6;
}
.contact__form .box__border:first-child {
  border-top: 1px solid #dee2e6;
}
.contact__form-title {
  font-weight: bold;
}
@media screen and (min-width: 768px) {
  .contact__form-title {
    letter-spacing: 2px;
    font-size: 16px;
  }
}
@media screen and (max-width: 767px) {
  .contact__form-title {
    font-size: 14px;
    align-self: center;
  }
}
.contact__form-text input {
  padding: 0;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  border-radius: 0;
  font-size: 16px;
  border-radius: 3px;
  font-weight: 500;
}
@media screen and (min-width: 768px) {
  .contact__form-text input {
    height: 44px;
    width: 100%;
    padding-left: 15px;
  }
}
@media screen and (max-width: 767px) {
  .contact__form-text input {
    font-size: 13px;
    width: 100%;
    padding: 15px 0 15px 15px;
    line-height: 1px;
  }
}
.contact__form-text textarea {
  font-size: 16px;
  height: 115px;
  width: 100%;
  background: #fff;
  color: #333;
  border-radius: 0;
  border: 1px solid #ccc;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 10px;
  border-radius: 3px;
  font-weight: 500;
}
@media screen and (max-width: 767px) {
  .contact__form-text textarea {
    font-size: 13px;
    width: 100%;
  }
}
.contact__form-text input::placeholder,
.contact__form-text textarea::placeholder {
  color: #acacac !important;
}
.contact__form .submit-btn,
.contact__form .next-btn,
.contact__form .back-btn {
  text-align: center;
  position: relative;
}
.contact__form .submit-btn input,
.contact__form .next-btn input,
.contact__form .back-btn input {
  padding: 0;
  border: 0;
  background: #fff;
  font-weight: bold;
  color: #333;
  font-size: 18px;
  letter-spacing: 2px;
}
@media screen and (max-width: 767px) {
  .contact__form .submit-btn input,
  .contact__form .next-btn input,
  .contact__form .back-btn input {
    font-size: 16px;
  }
}
.contact__form .submit-btn-arrow::after, .contact__form .submit-btn-backarrow::after, .contact__form .submit-btn-nextarrow::after,
.contact__form .next-btn-arrow::after,
.contact__form .next-btn-backarrow::after,
.contact__form .next-btn-nextarrow::after,
.contact__form .back-btn-arrow::after,
.contact__form .back-btn-backarrow::after,
.contact__form .back-btn-nextarrow::after {
  content: "";
  position: absolute;
  display: block;
}
.contact__form .line-break {
  line-break: anywhere;
}
.contact__form #confirmation-popup {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
.contact__form #confirmation-popup .popup-content {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 10%);
  background: #f7f7f7;
  border-radius: 10px;
  padding: 0 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  overflow-y: scroll;
  height: 80vh;
}
@media screen and (min-width: 768px) {
  .contact__form #confirmation-popup .popup-content {
    width: 60%;
    padding: 50px 20px;
  }
}
@media screen and (max-width: 767px) {
  .contact__form #confirmation-popup .popup-content {
    padding: 50px 20px 30px;
  }
}
.contact__form #confirmation-popup .popup-content h2 {
  font-size: 24px;
  margin-bottom: 15px;
}
.contact__form #confirmation-popup .popup-content p {
  font-size: 16px;
  margin-bottom: 20px;
}
.contact__form #confirmation-popup .popup-border {
  border-top: 1px solid #9d9d9d;
  padding-top: 10px;
  margin-top: 10px;
}
.contact__form #confirmation-popup #popup-submit-form-btn {
  background: #fcc110;
  width: 230px;
  height: 55px;
  border-radius: 50px;
  border: 3px solid #333;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  transition: opacity 0.3s;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1490196078);
}
.contact__form #confirmation-popup #popup-submit-form-btn:hover {
  border: 3px solid #fff;
  background: #333333;
  color: #fff;
  opacity: 1;
}
.contact__form .form__error {
  color: #dc3232;
  display: block;
}
@media screen and (min-width: 768px) {
  .contact__form .form__error {
    font-size: 16px;
  }
}
@media screen and (max-width: 767px) {
  .contact__form .form__error {
    font-size: 13px;
  }
}
.contact__form input[type=checkbox] {
  display: inline-block;
  width: 16px;
  height: 16px;
  padding: 0;
  appearance: none;
  border: 1px solid #333;
  border-radius: 50%;
  vertical-align: middle;
  background: #fff;
  cursor: pointer;
}
@media screen and (min-width: 768px) {
  .contact__form input[type=checkbox] {
    margin-top: 1px;
  }
}
.contact__form input[type=checkbox]:checked {
  background: #fff;
  border: 5px solid #333;
}
.contact__form input[type=checkbox]:focus-visible {
  outline: 2px solid #2b6cb0;
  outline-offset: 2px;
}
@media screen and (min-width: 768px) {
  .contact__form #service {
    display: flex;
    align-items: center;
  }
}
@media screen and (max-width: 767px) {
  .contact__form #service {
    line-height: 1.8;
  }
}
.contact__form #service label {
  line-height: 1;
  margin-left: 8px;
  margin-right: 15px;
  white-space: nowrap;
}
.contact__form #service label span {
  font-size: 16px;
  letter-spacing: 1px;
}
.contact__form #service label:last-of-type {
  margin-right: 0px;
}
.contact__form .privacyPolicy-link {
  font-weight: bold;
  position: relative;
}
.contact__form .privacyPolicy-link::after {
  content: "";
  background: url(../img/privacypolicylink.svg) no-repeat;
  background-size: contain;
  width: 16px;
  height: 16px;
  margin-right: 3px;
  display: inline-block;
  margin-left: 5px;
  top: 2px;
  position: relative;
}
@media screen and (min-width: 768px) {
  .contact__form #privacyPolicyAgreement {
    font-size: 16px;
  }
}
@media screen and (max-width: 767px) {
  .contact__form #privacyPolicyAgreement {
    font-size: 14px;
    margin-top: 20px;
  }
}
.contact__form #privacyPolicyAgreement input[type=checkbox] {
  border-radius: 3px;
  width: 18px;
  height: 18px;
  position: relative;
  margin-right: 10px;
  border: 1px solid #ccc;
  margin-bottom: 5px;
}
.contact__form #privacyPolicyAgreement input[type=checkbox]:checked {
  background: #333;
  border-color: #333;
}
.contact__form #privacyPolicyAgreement input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.contact__form .submit-btn #popup-submit-btn {
  background: #fcc110;
  max-width: 295px;
  width: 100%;
  height: 55px;
  border-radius: 50px;
  border: 3px solid #333;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  transition: opacity 0.3s;
  box-shadow: 0px 0px 10px 0px rgba(51, 48, 0, 0.1490196078);
  color: #333;
}
.contact__form .submit-btn #popup-submit-btn:hover {
  border: 3px solid #fff;
  background: #333333;
  color: #fff;
  opacity: 1;
}