/* Universal contact form — homepage is the source of truth.
   Works with section.talk / section.talk-sec and form#f. */
#talk .submit { color:#172936 !important; }
#talk .privacy-note, #talk .fineprint, #talk .hint { font-size:14px !important; }
#talk input, #talk textarea, #talk select { font-size:16px !important; box-sizing:border-box; }
#talk .pill span { min-height:44px; display:flex; align-items:center; }
#talk #ferror:not([hidden]) { padding:12px; border:2px solid #a42b24; background:#fff3f1; color:#8b221c !important; text-align:left; }
#talk [aria-invalid="true"] { border:2px solid #a42b24 !important; }
#talk .frow .submit { min-width:0; }

.talk,
.talk-sec {
  background:
    radial-gradient(700px 420px at 12% 8%, rgba(255, 231, 188, .35), transparent 60%),
    linear-gradient(180deg, #faf8f2, #fcfbf7);
  padding: 88px 0;
  position: relative;
}

.talk .form-grid,
.talk-sec .form-grid,
.form-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.avatars {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
}

.avatars img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: 0 8px 24px rgba(24, 36, 48, .15);
}

.avatars img + img { margin-left: -13px; }

.avatars .av-note {
  margin-left: 15px;
  font-size: 14px;
  color: #4a5966;
  line-height: 1.45;
}

.avatars .av-note b {
  display: block;
  font-weight: 700;
  color: #172936;
}

.trust { list-style: none; margin: 0; padding: 0; }

.trust li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
  font-size: 14.5px;
  color: #5e6b77;
  line-height: 1.58;
}

.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31, 157, 102, .12);
  border: 1.5px solid rgba(31, 157, 102, .5);
}

.trust li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 5px;
  border-left: 1.8px solid #1f9d66;
  border-bottom: 1.8px solid #1f9d66;
  transform: rotate(-45deg);
}

.trust li b {
  color: #172936;
  font-weight: 700;
}

.talk .card,
.talk-sec .card,
#talk .card {
  background: #fcfbf7;
  border: 1px solid #e7e1d7;
  border-radius: 16px;
  padding: 28px 30px 30px;
  box-shadow: 0 12px 36px rgba(24, 36, 48, .06);
}

.fld fieldset,
fieldset.fld {
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0 0 18px;
}

.fld legend,
fieldset.fld legend {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #172936;
}

.fld { margin-bottom: 18px; }

#talk label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #172936;
}

#talk .hint {
  font-weight: 400;
  color: #5e6b77;
  font-size: 12.5px;
  display: block;
  margin-top: 2px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill { position: relative; }

.pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill span {
  display: block;
  cursor: pointer;
  font-size: 13.5px;
  padding: 8px 15px;
  border: 1px solid #e7e1d7;
  border-radius: 99px;
  background: #fff;
  color: #4a5966;
  transition: all .18s;
  user-select: none;
}

.pill input:checked + span {
  background: #172936;
  color: #fff;
  border-color: #172936;
  font-weight: 600;
}

.pill input:focus-visible + span {
  outline: 2px solid #2e7fc2;
  outline-offset: 2px;
}

.pill span:hover { border-color: #a56814; }

#talk input[type=text],
#talk input[type=tel],
#talk input[type=email],
#talk select,
#talk textarea {
  width: 100%;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1px solid #e7e1d7;
  border-radius: 12px;
  background: #fff;
  color: #172936;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

#talk input::placeholder,
#talk textarea::placeholder { color: #9aa6b1; }

#talk input:focus,
#talk select:focus,
#talk textarea:focus {
  outline: none;
  border-color: #2e7fc2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 127, 194, .12);
}

#talk textarea {
  resize: vertical;
  min-height: 70px;
}

#talk .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#talk .submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 22px;
  border-radius: 6px;
  color: #fff;
  background: #c99435;
  transition: box-shadow .25s, transform .2s;
  box-shadow: 0 8px 20px rgba(180, 119, 25, .18);
}

#talk .submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(180, 119, 25, .24);
}

#talk .submit:active { transform: translateY(0); }
#talk .submit:disabled { opacity: .7; cursor: wait; transform: none; }

#talk .fineprint {
  font-size: 12.5px;
  color: #5e6b77;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

#talk .fineprint a {
  color: #a56814;
  font-weight: 700;
}

#talk .privacy-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3f7fa;
  border: 1px solid #e7e1d7;
  font-size: 11.5px;
  line-height: 1.55;
  color: #5e6b77;
  text-align: left;
}

#talk .privacy-note b { color: #172936; }

#talk .sent {
  display: none;
  text-align: center;
  padding: 36px 10px;
}

#talk .sent h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 10px;
  color: #172936;
}

#talk .sent p {
  color: #5e6b77;
  font-size: 15px;
}

#talk .sent a {
  color: #a56814;
  font-weight: 600;
}

/* two-step form */
.fsteps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.fstep-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5e6b77;
}

.fdots { display: flex; gap: 6px; }

.fdots i {
  display: block;
  width: 24px;
  height: 5px;
  border-radius: 99px;
  background: #e7e1d7;
  transition: background .3s;
}

.fdots i.on {
  background: linear-gradient(90deg, #ffc65c, #e8912a);
}

.fpane { animation: contact-fpane .35s ease; }

@keyframes contact-fpane {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

.frow {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.frow .submit { flex: 1; }

.fback {
  appearance: none;
  border: 1.5px solid #e7e1d7;
  background: #fff;
  border-radius: 99px;
  padding: 0 20px;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #4a5966;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  flex: none;
}

.fback:hover {
  border-color: #2e7fc2;
  color: #2e7fc2;
}

@media (max-width: 960px) {
  .talk,
  .talk-sec { padding: 64px 0; }

  .talk .form-grid,
  .talk-sec .form-grid,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 600px) {
  #talk .two { grid-template-columns: 1fr; }

  #talk .card {
    padding: 22px 18px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fpane { animation: none; }
}
