/* Contact Form 7 restyled to match the original ContactForm component.
 * The original styles were component-scoped (data-astro-cid) and cannot match
 * CF7's markup, so they are re-declared here against CF7 classes. */

.wpcf7 form.contact-form {
  padding: clamp(22px, 3.5vw, 40px);
}
.wpcf7 .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.wpcf7 .field--full {
  grid-column: 1 / -1;
}
.wpcf7 label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.wpcf7 input:not([type='checkbox']):not([type='submit']),
.wpcf7 select,
.wpcf7 textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7 input:not([type='checkbox']):not([type='submit']):focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-soft) 30%, transparent);
}
.wpcf7 textarea {
  resize: vertical;
}

/* consent (CF7 acceptance) */
.wpcf7 .consent {
  margin: 1.3rem 0;
}
.wpcf7 .consent .wpcf7-list-item {
  margin: 0;
}
.wpcf7 .consent .wpcf7-list-item label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.wpcf7 .consent input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--sage-deep);
}

.wpcf7 .form-note {
  font-size: 0.85rem;
  text-align: center;
  margin: 1rem 0 0;
}

/* CF7 feedback states, in the site's voice */
.wpcf7 .wpcf7-not-valid-tip {
  color: #a4442f;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
.wpcf7 .wpcf7-response-output {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #a4442f;
  color: #a4442f;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--sage);
  color: var(--sage-deep);
}
.wpcf7 .wpcf7-spinner {
  margin: 0 auto;
  display: block;
}
