.wpcf7 {
	max-width: 100%;
}

.wpcf7 .screen-reader-response {
	
}

.wpcf7 .wpcf7-form {
	display: flex;
	flex-flow: column;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  display: flex;
  align-items: center;
}

.wpcf7-form label + label {margin-top: var(--gapX5);}

.wpcf7-form .agreement,
.wpcf7-form .label-hack {
  margin-left: 21rem !important;
  width: auto;
}
.wpcf7-form .agreement {
  display: block;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.wpcf7-form .agreement a {
  border-bottom: 1px solid #ff7b005e;
  color: #ff8f26;
}

.wpcf7-form label span {white-space: nowrap;min-width: var(    --labelWidth);}

.modal-content .wpcf7-submit {
  color: #fff;
  border-radius: 0.5rem;
  letter-spacing: -1px;
  line-height: 2.5rem;
  cursor: pointer;
  background: #1c20cb;
}
.modal-content .wpcf7-submit:hover {
  background: #111219;
}

.wpcf7-form .agreement, p.small {
  font-size: 2rem;
}
.wpcf7-form .label-hack {
  display: inline-block;
  font-size: 2.5rem !important;
  padding: 1.5rem 2.25rem 1.5rem !important;
  font-weight: 600 !important;
}

.wpcf7-form label span input {
  border: none;
  background: #f0f0f0;
  width: 100%;
}

.wpcf7-not-valid-tip {
  display: none;
  font-size: var(--smallSize);
  color: var(--mainColor);
}

.wpcf7 form .wpcf7-response-output {
  display: inline-block;
  /* background: var(--whiteThirdOpasityColor); */
  padding: 0;
  border: none;
  /* color: var(--mainColor); */
  font-size: var(--smallSize);
  line-height: var(--textLineHeight);
}

.wpcf7 form .form-field p {
  margin-bottom: var(--gapX3);
  display: flex;
  align-items: flex-start;
  max-width: 110rem;
}

.wpcf7 form .form-field p label {
  width: var(--labelWidth);
  padding-top: 10px;
}

.wpcf7 form .form-field p > span  {
  max-width: calc(100% - var(--labelWidth));
}

.wpcf7 .wpcf7-submit {
  margin-left: var(--labelWidth);
  margin-top: var(--gapX2);
  background-color: var(--black);
  color: white;
}
.wpcf7 .wpcf7-submit:disabled {
  opacity:.5;
}
.wpcf7 .wpcf7-submit:disabled:hover {
  cursor: unset;
  background: var(--accentColor);
  color: var(--onAccentColor);
}

.wpcf7 br {
  display: none;
}

@media (max-width: 420px) {
    .wpcf7 form div {
    flex-direction: column;
  }
  .wpcf7 form div label {min-width: unset;}
  .wpcf7 form div span {max-width: 100%;}
  .wpcf7 .wpcf7-submit { margin-left: 0;}

}

.wpcf7-form-control-wrap {
	width: 100%;
	display: flex;
}

[data-name=your-file] {
  display: none;
}
.file-input-text {
  font-size: var(--textSsize);
  cursor: pointer;
  background: #f0f0f0;
  width: 100%;
  padding: 10px 20px;
  border-radius: 5px;
}

.file-input-text:hover {
  background-color: #d0d0d0;
}

.wpcf7-file::-webkit-file-upload-button {
  visibility: hidden;
}
// .wpcf7-file::before {
//   content: 'Выбрать файл...';
//   outline: none;
//   white-space: nowrap;
//   -webkit-user-select: none;
//   cursor: pointer;
//   background: #f0f0f0;
//   display: inline-block;
//   padding: 10px 20px;
//   border-radius: 5px;
//   width: 100%;
//   font-size: var(--textMsize);
//   color: #727272;
// }
.wpcf7-file:hover::before {color: var(--black);}

.wpcf7-file:active::before {
	background-color: #d0d0d0;
}

.wpcf7 input[type="file"] {
	background: unset;
	padding: unset;
	display: flex;
}
.wpcf7 input[type="file"] {
	font-size: var(--textSsize);
}