.te-ch-contact-form {
--te-ch-form-accent: #fe6614;
--te-ch-form-accent-hover: #e95405;
--te-ch-form-border: #d8d8d8;
--te-ch-form-error: #c62828;
--te-ch-form-muted: #666;
width: 100%;
color: #050505;
font-family: inherit;
}
.te-ch-contact-form *,
.te-ch-contact-form *::before,
.te-ch-contact-form *::after {
box-sizing: border-box;
}
.te-ch-contact-form__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px 24px;
}
.te-ch-contact-form br {
display: none;
}
.te-ch-contact-form p {
margin-top: 0;
margin-bottom: 0;
}
.te-ch-contact-form__field {
min-width: 0;
margin: 0;
}
.te-ch-contact-form__field--full,
.te-ch-contact-form__actions,
.te-ch-contact-form__consent {
grid-column: 1 / -1;
}
.te-ch-contact-form__label {
display: block;
margin: 0 0 6px;
color: #050505;
font-size: 14px;
font-weight: 600;
line-height: 1.35;
}
.te-ch-contact-form__required {
color: var(--te-ch-form-accent);
}
.te-ch-contact-form .wpcf7-form-control-wrap {
display: block;
width: 100%;
}
.te-ch-contact-form input[type="text"],
.te-ch-contact-form input[type="email"],
.te-ch-contact-form input[type="tel"],
.te-ch-contact-form input[type="number"],
.te-ch-contact-form input[type="date"],
.te-ch-contact-form select,
.te-ch-contact-form textarea {
display: block;
width: 100%;
min-width: 0;
margin: 0;
border: 1px solid var(--te-ch-form-border);
border-radius: 4px;
background: #fff;
box-shadow: none;
color: #050505;
font: inherit;
font-size: 15px;
line-height: 1.4;
transition: border-color 160ms ease, box-shadow 160ms ease;
}
.te-ch-contact-form input[type="text"],
.te-ch-contact-form input[type="email"],
.te-ch-contact-form input[type="tel"],
.te-ch-contact-form input[type="number"],
.te-ch-contact-form input[type="date"],
.te-ch-contact-form select {
height: 50px;
padding: 0 14px;
}
.te-ch-contact-form textarea {
min-height: 160px;
padding: 13px 14px;
resize: vertical;
}
.te-ch-contact-form__help {
margin: -2px 0 10px;
color: var(--te-ch-form-muted);
font-size: 12px;
line-height: 1.5;
}
.te-ch-contact-form__files {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.te-ch-contact-form input[type="file"] {
display: block;
width: 100%;
min-width: 0;
min-height: 50px;
margin: 0;
padding: 6px;
border: 1px solid var(--te-ch-form-border);
border-radius: 4px;
background: #fff;
color: var(--te-ch-form-muted);
font: inherit;
font-size: 13px;
line-height: 1.4;
}
.te-ch-contact-form input[type="file"]::file-selector-button {
min-height: 36px;
margin-right: 10px;
padding: 7px 12px;
border: 1px solid #d8d8d8;
border-radius: 3px;
background: #f5f5f5;
color: #050505;
font: inherit;
font-weight: 600;
cursor: pointer;
transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.te-ch-contact-form input[type="file"]:hover::file-selector-button,
.te-ch-contact-form input[type="file"]:focus-visible::file-selector-button {
border-color: var(--te-ch-form-accent);
background: #fff6f0;
color: var(--te-ch-form-accent-hover);
}
.te-ch-contact-form input[type="file"]:focus-visible {
border-color: var(--te-ch-form-accent);
outline: 0;
box-shadow: 0 0 0 3px rgba(254, 102, 20, 0.14);
}
.te-ch-contact-form input::placeholder,
.te-ch-contact-form textarea::placeholder {
color: #8a8a8a;
opacity: 1;
}
.te-ch-contact-form input:focus,
.te-ch-contact-form select:focus,
.te-ch-contact-form textarea:focus {
border-color: var(--te-ch-form-accent);
outline: 0;
box-shadow: 0 0 0 3px rgba(254, 102, 20, 0.14);
}
.te-ch-contact-form .wpcf7-not-valid {
border-color: var(--te-ch-form-error) !important;
}
.te-ch-contact-form .wpcf7-not-valid-tip {
margin-top: 6px;
color: var(--te-ch-form-error);
font-size: 12px;
font-weight: 500;
line-height: 1.35;
}
.te-ch-contact-form__consent {
margin-top: 2px;
color: var(--te-ch-form-muted);
font-size: 13px;
line-height: 1.55;
}
.te-ch-contact-form__consent .wpcf7-list-item {
margin: 0;
}
.te-ch-contact-form__consent label {
display: grid;
grid-template-columns: 20px minmax(0, 1fr);
gap: 10px;
align-items: start;
cursor: pointer;
}
.te-ch-contact-form__consent input[type="checkbox"] {
width: 20px;
height: 20px;
margin: 1px 0 0;
accent-color: var(--te-ch-form-accent);
}
.te-ch-contact-form__consent a {
color: #050505;
font-weight: 600;
text-decoration: underline;
text-decoration-color: var(--te-ch-form-accent);
text-underline-offset: 3px;
}
.te-ch-contact-form__actions {
display: flex;
align-items: center;
gap: 12px;
}
.te-ch-contact-form .wpcf7-submit {
min-width: 210px;
min-height: 50px;
margin: 0;
padding: 12px 24px;
border: 1px solid var(--te-ch-form-accent);
border-radius: 4px;
background: var(--te-ch-form-accent);
box-shadow: none;
color: #fff;
font-family: inherit;
font-size: 15px;
font-weight: 700;
line-height: 1.2;
cursor: pointer;
transition: background-color 160ms ease, border-color 160ms ease;
}
.te-ch-contact-form .wpcf7-submit:hover,
.te-ch-contact-form .wpcf7-submit:focus-visible {
border-color: var(--te-ch-form-accent-hover);
background: var(--te-ch-form-accent-hover);
color: #fff;
}
.te-ch-contact-form .wpcf7-submit:focus-visible {
outline: 3px solid rgba(254, 102, 20, 0.28);
outline-offset: 3px;
}
.te-ch-contact-form .wpcf7-submit:disabled {
cursor: wait;
opacity: 0.65;
}
.te-ch-contact-form .wpcf7-spinner {
margin: 0;
}
.wpcf7 form:has(.te-ch-contact-form) .wpcf7-response-output {
margin: 20px 0 0;
padding: 13px 15px;
border: 1px solid #d8d8d8;
border-left: 4px solid var(--te-ch-form-accent, #fe6614);
border-radius: 3px;
background: #fff;
color: #050505;
font-size: 14px;
line-height: 1.5;
}
.wpcf7 form.sent:has(.te-ch-contact-form) .wpcf7-response-output {
border-color: #2e7d32;
border-left-color: #2e7d32;
}
.wpcf7 form.invalid:has(.te-ch-contact-form) .wpcf7-response-output,
.wpcf7 form.failed:has(.te-ch-contact-form) .wpcf7-response-output,
.wpcf7 form.unaccepted:has(.te-ch-contact-form) .wpcf7-response-output {
border-color: var(--te-ch-form-error, #c62828);
border-left-color: var(--te-ch-form-error, #c62828);
}
@media (max-width: 700px) {
.te-ch-contact-form__grid {
grid-template-columns: 1fr;
gap: 14px;
}
.te-ch-contact-form__field--full,
.te-ch-contact-form__actions,
.te-ch-contact-form__consent {
grid-column: auto;
}
.te-ch-contact-form__actions {
align-items: stretch;
flex-direction: column;
}
.te-ch-contact-form__files {
grid-template-columns: 1fr;
}
.te-ch-contact-form .wpcf7-submit {
width: 100%;
min-width: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.te-ch-contact-form input,
.te-ch-contact-form select,
.te-ch-contact-form textarea,
.te-ch-contact-form .wpcf7-submit {
transition: none;
}
}