/*
 * Contact Form 7 restyle.
 *
 * CF7 ships almost no styling, so its default inputs look like raw browser
 * fields inside the Stratus cards. These rules match the site's type, radii,
 * and accent color. Scoped to .wpcf7 so nothing else is affected.
 */

.wpcf7 {
  font-family: 'Hanken Grotesk', sans-serif;
  color: #2B3138;
}

.wpcf7 form > p,
.wpcf7 .wpcf7-form > p {
  margin: 0 0 16px;
}

/* Field labels */
.wpcf7 label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #4B5157;
  margin-bottom: 7px;
}

/* Inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: #2B3138;
  background: #FFFFFF;
  border: 1px solid rgba(42, 48, 54, 0.14);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7 textarea {
  min-height: 132px;
  resize: vertical;
}

.wpcf7 select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236E7378' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #9AA3AB;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #298FC2;
  box-shadow: 0 0 0 3px rgba(41, 143, 194, 0.14);
}

/* Checkboxes and radios */
.wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.wpcf7 .wpcf7-radio .wpcf7-list-item {
  display: block;
  margin: 0 0 8px;
}

.wpcf7 .wpcf7-list-item-label {
  font-size: 15px;
  color: #4B5157;
  font-weight: 400;
}

/* Submit */
.wpcf7 input[type="submit"] {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  background: #298FC2;
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.16s ease;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7 input[type="submit"]:hover {
  background: #1F7BA8;
}

.wpcf7 input[type="submit"]:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Validation + response messages */
.wpcf7 .wpcf7-not-valid {
  border-color: #D0473E;
}

.wpcf7 .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #D0473E;
  margin-top: 6px;
}

.wpcf7 .wpcf7-response-output {
  font-size: 14px;
  line-height: 1.55;
  border: 0;
  border-radius: 12px;
  margin: 18px 0 0;
  padding: 13px 16px;
  background: rgba(41, 143, 194, 0.09);
  color: #2B3138;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  background: rgba(208, 71, 62, 0.09);
  color: #98322B;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: rgba(46, 143, 95, 0.10);
  color: #1F6B45;
}

.wpcf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
}

/* Two-up rows: wrap two fields in <span class="stratus-row"> in the CF7 editor */
.wpcf7 .stratus-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
