/* CF7-only corrections. The original style.css remains byte-identical. */
#entry .entry-form {
  position: relative;
}

#entry .entry-form label,
#entry .entry-form input,
#entry .entry-form select,
#entry .entry-form textarea {
  min-width: 0;
}

/* Prevent the static label > span flex rule from styling CF7 control wrappers. */
#entry .entry-form label > .wpcf7-form-control-wrap {
  display: grid;
  align-items: normal;
  justify-content: normal;
  gap: 0;
  min-width: 0;
}

/* Hidden CF7 metadata precedes the labels, shifting static nth-child rules. */
#entry .entry-form label:nth-of-type(1) { --stagger-index: 0; }
#entry .entry-form label:nth-of-type(2) { --stagger-index: 1; }
#entry .entry-form label:nth-of-type(3) { --stagger-index: 2; }
#entry .entry-form label:nth-of-type(4) { --stagger-index: 3; }
#entry .entry-form label:nth-of-type(n+5) { --stagger-index: 4; }

/* The spinner must not become an extra grid row or offset the button. */
#entry .entry-form .wpcf7-spinner {
  position: absolute;
  bottom: .8rem;
  left: calc(50% + 4.5rem);
  margin: 0;
}

#entry .entry-form .wpcf7-not-valid-tip {
  margin-top: .35rem;
  color: var(--color-accent);
  font-size: inherit;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#entry .entry-form .wpcf7-response-output {
  margin: 0;
  padding: .55rem .65rem;
  font-size: .6875rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
