.slcm-consultation-page .wpcf7 {
  color: #17181c;
  font-size: 15px;
}

.slcm-consultation-page .slcm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px 20px;
}

.slcm-consultation-page .wpcf7-form,
.slcm-consultation-page .slcm-form-grid,
.slcm-consultation-page .slcm-form-field,
.slcm-consultation-page .slcm-form-field p {
  margin: 0;
}

.slcm-consultation-page .slcm-form-field {
  min-width: 0;
  align-self: start;
}

.slcm-consultation-page .slcm-form-grid > p:empty,
.slcm-consultation-page .slcm-form-field > p:empty,
.slcm-consultation-page .slcm-form-field > br {
  display: none;
}

.slcm-consultation-page .slcm-form-field--full {
  grid-column: 1 / -1;
}

.slcm-consultation-page .slcm-form-field > label,
.slcm-consultation-page .slcm-form-field > label:first-child {
  display: block;
  color: #20222a;
  font-weight: 700;
  line-height: 1.55;
}

.slcm-consultation-page .slcm-required,
.slcm-consultation-page .slcm-optional {
  display: inline-block;
  margin-left: 5px;
  font-size: 11px;
  font-weight: 700;
}

.slcm-consultation-page .slcm-required { color: #e44848; }
.slcm-consultation-page .slcm-optional { color: #8b8f98; }

.slcm-consultation-page .wpcf7-form-control-wrap {
  display: block;
  margin-top: 9px;
}

.slcm-consultation-page input[type="text"],
.slcm-consultation-page input[type="email"],
.slcm-consultation-page input[type="tel"],
.slcm-consultation-page input[type="file"],
.slcm-consultation-page select,
.slcm-consultation-page textarea {
  width: 100%;
  max-width: none;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dfe2e8;
  border-radius: 7px;
  background: #fff;
  color: #17181c;
  font: inherit;
  line-height: 1.5;
  box-sizing: border-box;
  height: auto !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.slcm-consultation-page textarea {
  height: 160px !important;
  min-height: 160px;
  max-height: 420px;
  resize: vertical;
}
.slcm-consultation-page input[type="file"] { padding: 10px; background: #f8f9fb; }
.slcm-consultation-page input:focus,
.slcm-consultation-page select:focus,
.slcm-consultation-page textarea:focus {
  outline: none;
  border-color: #252765;
  box-shadow: 0 0 0 3px rgba(37, 39, 101, .1);
}

.slcm-consultation-page .wpcf7-checkbox,
.slcm-consultation-page .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
}

.slcm-consultation-page .wpcf7-list-item { margin: 0; }
.slcm-consultation-page .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  cursor: pointer;
}

.slcm-consultation-page .wpcf7-list-item-label {
  line-height: 1.45;
}

.slcm-consultation-page input[type="checkbox"],
.slcm-consultation-page input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: #252765;
}

.slcm-consultation-page .slcm-form-help {
  margin: 8px 0 0;
  color: #777c86;
  font-size: 12px;
  line-height: 1.6;
}

.slcm-consultation-page .slcm-form-consent {
  padding: 17px 18px;
  border-radius: 7px;
  background: #f6f7fa;
}

.slcm-consultation-page .slcm-form-consent .wpcf7-form-control-wrap { margin-top: 0; }
.slcm-consultation-page .slcm-form-consent label { font-weight: 500; }
.slcm-consultation-page .slcm-form-submit { padding-top: 4px; }
.slcm-consultation-page .wpcf7-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 7px;
  background: #252765;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.slcm-consultation-page .wpcf7-submit:hover { background: #181a50; transform: translateY(-1px); }
.slcm-consultation-page .wpcf7-not-valid { border-color: #e44848; }
.slcm-consultation-page .wpcf7-not-valid-tip { margin-top: 6px; color: #d93737; font-size: 12px; }
.slcm-consultation-page .wpcf7-response-output { margin: 20px 0 0 !important; padding: 14px 16px !important; border-radius: 7px; }

@media (max-width: 767px) {
  .slcm-consultation-page .slcm-form-grid { grid-template-columns: 1fr; gap: 20px; }
  .slcm-consultation-page .slcm-form-field--full { grid-column: auto; }
  .slcm-consultation-page .wpcf7-checkbox,
  .slcm-consultation-page .wpcf7-radio { flex-direction: column; align-items: flex-start; }
}
