/* ===== CF7 Content Gate (before submit) ===== */

.cf7-content-gate {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  margin: 24px 0;
}

.cf7-content-gate__message {
  margin: 0 0 14px 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

/* Optional subtext if you add <p> inside message */
.cf7-content-gate__message p {
  margin: 0;
}

.cf7-content-gate .wpcf7 {
  margin: 0;
}

/* Form layout */
.cf7-content-gate .wpcf7 form {
  margin: 0;
}

/* Input / select / textarea */
.cf7-content-gate .wpcf7 input[type="text"],
.cf7-content-gate .wpcf7 input[type="email"],
.cf7-content-gate .wpcf7 input[type="tel"],
.cf7-content-gate .wpcf7 input[type="url"],
.cf7-content-gate .wpcf7 input[type="number"],
.cf7-content-gate .wpcf7 input[type="date"],
.cf7-content-gate .wpcf7 select,
.cf7-content-gate .wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Focus state */
.cf7-content-gate .wpcf7 input:focus,
.cf7-content-gate .wpcf7 select:focus,
.cf7-content-gate .wpcf7 textarea:focus {
  border-color: rgba(0,0,0,.42);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

/* CF7 labels (if you wrap fields in <label>) */
.cf7-content-gate .wpcf7 label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 600;
  opacity: .9;
}

/* Submit button */
.cf7-content-gate .wpcf7 input[type="submit"],
.cf7-content-gate .wpcf7 button,
.cf7-content-gate .wpcf7 input[type="button"] {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease;
}

.cf7-content-gate .wpcf7 input[type="submit"]:hover,
.cf7-content-gate .wpcf7 button:hover {
  transform: translateY(-1px);
}

.cf7-content-gate .wpcf7 input[type="submit"]:active,
.cf7-content-gate .wpcf7 button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* Helper text */
.cf7-content-gate .wpcf7 .wpcf7-not-valid-tip {
  font-size: 13px;
  margin-top: 6px;
}

/* Error / success messages */
.cf7-content-gate .wpcf7 .wpcf7-response-output {
  margin: 14px 0 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}

/* CF7: invalid */
.cf7-content-gate .wpcf7 form.invalid .wpcf7-response-output,
.cf7-content-gate .wpcf7 form.failed .wpcf7-response-output {
  border-color: rgba(180, 0, 0, .25);
  background: rgba(180, 0, 0, .06);
}

/* CF7: sent */
.cf7-content-gate .wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(0, 120, 0, .22);
  background: rgba(0, 120, 0, .06);
}

/* Space between multiple fields */
.cf7-content-gate .wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin: 10px 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .cf7-content-gate {
    padding: 16px;
    border-radius: 10px;
  }
}
