/* ============================================================
   PARTNER WITH TEAMED — reusable contact form (partner page,
   homepage vendor section). Scoped under .tpf.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@400;500;600;700&display=swap');

.tpf {
  --teal:#00A896; --teal-dark:#007A6E; --teal-light:#E6F7F5;
  --dark:#1A2B2A; --mid:#3D5250; --gray:#6B7B7A; --border:#E2EEEC; --light:#F5F9F8;
  --sans:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --serif:'DM Serif Display',Georgia,serif;
  font-family:var(--sans); color:var(--dark);
}
.tpf *{ box-sizing:border-box; }
.tpf-inner { max-width:560px; margin:0 auto; background:#fff; border:1px solid var(--border); border-radius:16px; padding:30px 30px 26px; }

.tpf-eyebrow { display:inline-block; font:700 11px/1 var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--teal-dark); background:var(--teal-light); border-radius:999px; padding:6px 12px; margin:0 0 14px; }
.tpf-title { font-family:var(--serif); font-weight:400; font-size:27px; line-height:1.15; margin:0 0 8px; color:var(--dark); }
.tpf-intro { font-size:14.5px; line-height:1.6; color:var(--mid); margin:0 0 22px; }

.tpf-form { display:block; }
.tpf-grid { display:flex; gap:14px; }
.tpf-grid .tpf-field { flex:1; }
.tpf-field { display:block; margin:0 0 14px; }
.tpf-field > span { display:block; font:600 12px/1 var(--sans); color:var(--mid); margin:0 0 7px; }
.tpf-field > span em { color:var(--gray); font-weight:400; font-style:normal; }
.tpf-field input, .tpf-field textarea { width:100%; border:1px solid var(--border); border-radius:10px; padding:11px 13px; font:400 14.5px/1.5 var(--sans); color:var(--dark); background:#fff; outline:none; transition:border-color .12s, box-shadow .12s; }
.tpf-field input:focus, .tpf-field textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(0,168,150,.18); }
.tpf-field textarea { resize:vertical; min-height:74px; }

.tpf-opts-lbl { display:block; font:600 12px/1 var(--sans); color:var(--mid); margin:0 0 9px; }
.tpf-opts-lbl em { color:var(--gray); font-weight:400; font-style:normal; }
.tpf-opts { display:flex; flex-wrap:wrap; gap:8px; }
.tpf-pill { display:inline-flex; align-items:center; gap:8px; border:1px solid var(--border); border-radius:999px; padding:8px 14px; font-size:13px; color:var(--dark); cursor:pointer; transition:.12s; user-select:none; }
.tpf-pill:hover { border-color:var(--teal); }
.tpf-pill input { position:absolute; opacity:0; pointer-events:none; }
/* Brand checkbox: white check on a teal fill (not accent-color). */
.tpf-pill input + span::before { content:''; display:inline-block; width:15px; height:15px; margin-right:2px; vertical-align:-2px; border:1.5px solid var(--border); border-radius:4px; background:#fff no-repeat center/10px; transition:.12s; }
.tpf-pill input:checked + span::before { background-color:var(--teal); border-color:var(--teal); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.tpf-pill:has(input:checked) { border-color:var(--teal); background:var(--teal-light); color:var(--teal-dark); font-weight:600; }

.tpf-submit-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:6px; }
.tpf-submit { background:var(--teal); color:#fff; font:600 14.5px/1 var(--sans); border:none; border-radius:8px; padding:13px 22px; cursor:pointer; transition:background .15s; }
.tpf-submit:hover { background:var(--teal-dark); }
.tpf-submit:disabled { opacity:.6; cursor:default; }
.tpf-note { font-size:12.5px; color:var(--gray); }
.tpf-error { color:#C0392B; font-size:13px; margin:12px 0 0; }

.tpf-success { text-align:center; padding:30px 10px; }
.tpf-success-ic { display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%; background:var(--teal-light); color:var(--teal-dark); font-size:22px; margin-bottom:14px; }
.tpf-success h3 { font-family:var(--serif); font-weight:400; font-size:22px; margin:0 0 8px; color:var(--dark); }
.tpf-success p { font-size:14px; line-height:1.6; color:var(--mid); margin:0; }

@media (max-width:520px) {
  .tpf-inner { padding:24px 20px; }
  .tpf-grid { flex-direction:column; gap:0; }
  .tpf-title { font-size:23px; }
}
