/* ===== CF7 General Contact — underline/stroke style (matches your DOM) ===== */
.wpcf7 .cf7-wrap{
  --tfc-ink: #141c46;
  --tfc-muted: #141c46;
  --tfc-line: #c36f6c;
  --tfc-line-focus: #141c46;
  --tfc-gap: 18px;
}

/* kill CF7 <p> default spacing (CF7 wraps lots of things in <p>) */
.wpcf7 .cf7-wrap p{
  margin: 0;
}
.wpcf7 .cf7-wrap .cf7-row{
  margin: 0 0 var(--tfc-gap);
}

/* intro paragraph spacing */
.wpcf7 .cf7-wrap > p{
  margin: 0 0 12px;
  color: var(--tfc-muted);
}
.wpcf7 .cf7-wrap a{
  color: var(--tfc-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* labels */
.wpcf7 .cf7-wrap label{
  display: block;
  margin: 0 0 8px;
  color: var(--tfc-muted);
  font-size: 0.95rem;
  line-height: 1.2;
}

/* make CF7 wrap behave */
.wpcf7 .cf7-wrap .wpcf7-form-control-wrap{
  display: block;
}

/* underline-only controls */
.wpcf7 .cf7-wrap input[type="text"],
.wpcf7 .cf7-wrap input[type="email"],
.wpcf7 .cf7-wrap input[type="tel"],
.wpcf7 .cf7-wrap input[type="number"],
.wpcf7 .cf7-wrap input[type="date"],
.wpcf7 .cf7-wrap select,
.wpcf7 .cf7-wrap textarea{
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  color: var(--tfc-ink);

  border: 0 !important;
  border-bottom: 1px solid var(--tfc-line) !important;
  border-radius: 0 !important;

  padding: 10px 0 10px;
  outline: none;
  font: inherit;

  /* overrides some themes */
  box-shadow: none !important;
}

/* focus underline */
.wpcf7 .cf7-wrap input[type="text"]:focus,
.wpcf7 .cf7-wrap input[type="email"]:focus,
.wpcf7 .cf7-wrap input[type="tel"]:focus,
.wpcf7 .cf7-wrap input[type="number"]:focus,
.wpcf7 .cf7-wrap input[type="date"]:focus,
.wpcf7 .cf7-wrap select:focus,
.wpcf7 .cf7-wrap textarea:focus{
  border-bottom-color: var(--tfc-line-focus) !important;
}

/* select arrow */
.wpcf7 .cf7-wrap select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  padding-right: 26px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--tfc-muted) 50%),
    linear-gradient(135deg, var(--tfc-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 55%,
    calc(100% - 9px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* textarea */
.wpcf7 .cf7-wrap textarea{
  min-height: 140px;
  resize: vertical;
}

/* placeholders */
.wpcf7 .cf7-wrap ::placeholder{
  color: rgba(17,17,17,.35);
}

/* headings inside rows */
.wpcf7 .cf7-wrap .cf7-row > p > strong{
  display: inline-block;
  margin: 0 0 8px;
  color: var(--tfc-muted);
}

/* radio styling */
.wpcf7 .cf7-wrap .wpcf7-radio{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 6px;
}
.wpcf7 .cf7-wrap .wpcf7-list-item{
  margin: 0 !important; /* CF7 sometimes adds margins */
}
.wpcf7 .cf7-wrap .wpcf7-list-item label{
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
}
.wpcf7 .cf7-wrap input[type="radio"],
.wpcf7 .cf7-wrap input[type="checkbox"]{
  accent-color: var(--tfc-ink);
  transform: translateY(2px);
}

/* acceptance row */
.wpcf7 .cf7-wrap .wpcf7-acceptance .wpcf7-list-item label{
  align-items: flex-start;
}

/* submit button */
.wpcf7 .cf7-wrap .wpcf7-submit{
  cursor: pointer;
  background: transparent;
  color: var(--tfc-ink);
  border: 1px solid var(--tfc-line-focus) !important;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;

  transition: transform .08s ease, background-color .2s ease, border-color .2s ease;
}
.wpcf7 .cf7-wrap .wpcf7-submit:hover{
  background: rgba(17,17,17,.04);
}
.wpcf7 .cf7-wrap .wpcf7-submit:active{
  transform: translateY(1px);
}

/* CF7 validation */
.wpcf7 .cf7-wrap .wpcf7-not-valid{
  border-bottom-color: #c62828 !important;
}
.wpcf7 .cf7-wrap .wpcf7-not-valid-tip{
  margin-top: 6px;
  font-size: .9rem;
}

/* response output box */
.wpcf7 .cf7-wrap + .wpcf7-response-output,
.wpcf7 .wpcf7-response-output{
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
}

/* spinner spacing */
.wpcf7 .cf7-wrap .wpcf7-spinner{
  margin-left: 10px;
}
