/* ==========================================================================
   Contact Form 7 — make CF7 markup look exactly like the theme's built-in forms.
   ========================================================================== */

.kkt-cf7 .wpcf7-form-control-wrap { display: block; position: relative; }
.kkt-cf7 .form-control { display: block; }
.kkt-cf7 textarea.form-control { min-height: 110px; resize: vertical; }
.kkt-cf7 #contactContent { min-height: 136px; }

/* Field errors (same as .form-error) */
.kkt-cf7 .wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  color: var(--color-error);
  margin-top: 4px;
  font-weight: 500;
}
.kkt-cf7 .form-control.wpcf7-not-valid {
  border-color: var(--color-error);
  background-color: #FDF6F6;
}

/* Privacy checkbox (same as .form-checkbox-label) */
.kkt-cf7 .form-checkbox-group { margin: 16px 0 18px; }
.kkt-cf7 .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0; }
.kkt-cf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-secondary-text);
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}
.kkt-cf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--color-primary-burgundy);
  flex-shrink: 0;
  cursor: pointer;
}
.kkt-cf7 .wpcf7-acceptance strong { color: var(--color-primary-burgundy); font-weight: 600; }

/* Buttons */
.kkt-cf7 .kkt-btn-block { width: 100%; justify-content: center; padding: 14px 24px; }
.kkt-cf7 .kkt-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.kkt-cf7 .wpcf7-submit:disabled { opacity: 0.6; cursor: wait; }
.kkt-cf7 .wpcf7-spinner { display: none; }
.kkt-cf7.submitting .wpcf7-submit { opacity: 0.7; pointer-events: none; }

/* Response box: success like .form-success-box, errors in burgundy */
.kkt-cf7 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: var(--radius-xs);
  font-size: 13.5px;
  line-height: 1.6;
}
.kkt-cf7.sent .wpcf7-response-output {
  background-color: rgba(35, 93, 58, 0.08);
  border-color: var(--color-success);
  color: var(--color-success);
}
.kkt-cf7.invalid .wpcf7-response-output,
.kkt-cf7.unaccepted .wpcf7-response-output,
.kkt-cf7.failed .wpcf7-response-output,
.kkt-cf7.spam .wpcf7-response-output,
.kkt-cf7.aborted .wpcf7-response-output {
  background-color: #FDF6F6;
  border-color: var(--color-error);
  color: var(--color-error);
}

/* Dark CTA panel on the homepage keeps its own text colours */
.cta-form-panel .kkt-cf7 .wpcf7-response-output { color: inherit; }
.cta-form-panel .kkt-cf7.sent .wpcf7-response-output { color: var(--color-success); }

@media (max-width: 600px) {
  .kkt-cf7 .kkt-form-actions .btn-secondary { white-space: nowrap; flex: none; }
}
