/* ============================================================
   Contact Form 7 — loaded only when the plugin is active.
   Reproduces the approved .btn and .form-note styling on the
   markup CF7 generates. assets/css/main.css stays untouched.
   ============================================================ */

/* CF7 wraps every control in an inline span; the inputs need a block line. */
.wpcf7-form-control-wrap{display:block}

/* CF7's own wrapper must not break the .form grid. The grid is applied to
   .wpcf7-form directly so the spacing never depends on the html_class
   setting surviving a form edit. */
.wpcf7{display:block}
.wpcf7 form.wpcf7-form{display:grid;gap:22px}

/* CF7 renders <textarea> with its own rows attribute, which overrides the
   min-height the design relies on. Pin it back to the approved height. */
.wpcf7 .field textarea{height:96px;min-height:96px}

/* CF7's hidden plumbing must never occupy a grid row. */
.wpcf7 form.wpcf7-form > .hidden-fields-container,
.wpcf7 form.wpcf7-form > .screen-reader-response{display:none}
.wpcf7 form.wpcf7-form > .wpcf7-response-output:empty{display:none}

/* [submit] is an <input>, so it cannot carry the .btn inner spans or the
   sweep pseudo-element. Same colours, padding and type; hover is a fill. */
.wpcf7 input.btn-submit{
  -webkit-appearance:none;appearance:none;border:0;cursor:pointer;
  display:inline-flex;align-items:center;
  padding:1.05em 1.9em;border-radius:999px;
  background:var(--brass-lt);color:var(--pine-900);
  font-family:var(--ff-sans);font-size:var(--fs-sm);font-weight:600;letter-spacing:.06em;
  transition:background .5s cubic-bezier(.65,0,.35,1),color .5s cubic-bezier(.65,0,.35,1);
}
.wpcf7 input.btn-submit:hover{background:var(--lime-50)}
.wpcf7 input.btn-submit:disabled{opacity:.55;cursor:default}

/* Validation + response messages, matched to .form-note. */
.wpcf7 .wpcf7-not-valid-tip{
  font-size:.75rem;line-height:1.5;color:#9E4326;margin-top:7px;
}
.wpcf7 .field input.wpcf7-not-valid,
.wpcf7 .field textarea.wpcf7-not-valid,
.wpcf7 .field select.wpcf7-not-valid{border-bottom-color:#9E4326}

.wpcf7 .wpcf7-response-output{
  margin:4px 0 0;padding:12px 15px;border:1px solid var(--line);border-radius:2px;
  font-size:.8rem;line-height:1.6;color:var(--fg);
}
.wpcf7 form.sent .wpcf7-response-output{border-color:var(--brass-dk)}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output{border-color:#9E4326}

.wpcf7 .wpcf7-spinner{margin:0 0 0 14px}
