/* Layout only: inputs and buttons take the site's own .w-input / .primary-button styles. */
/* The script toggles the hidden attribute; author display rules (ours and the site's button)
   would otherwise outrank it and leave the fields and "Sending…" visible next to the thank-you. */
.cj-lead-form [hidden] { display: none !important; }
.cj-lead-form { display: grid; gap: 14px; width: 100%; text-align: left; }
.cj-lf-fields { display: grid; gap: 12px; }
/* Two columns when the card is wide enough for two 200px fields, one column below that
   (the card is ~360px on a 1280px laptop, ~520px on a large screen). */
.cj-lf-contact .cj-lf-fields { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 479px) { .cj-lf-contact .cj-lf-fields { grid-template-columns: 1fr; } }   /* phones: always one column */
.cj-lf-wide { grid-column: 1 / -1; }
.cj-lf-field { display: block; margin: 0; }
.cj-lf-label { display: block; font-size: 14px; line-height: 1.3; margin-bottom: 6px; color: #1b2a28; }
.cj-lf-subscribe .cj-lf-label { color: rgba(255, 255, 255, .85); }   /* the blog box is dark */
.cj-lead-form .w-input { width: 100%; margin-bottom: 0; }
.cj-lf-textarea { min-height: 130px; resize: vertical; }
.cj-lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cj-lf-error { margin: 0; font-size: 14px; color: #b4472f; }
.cj-lf-submit { justify-self: start; }
.cj-lf-done { display: grid; gap: 8px; outline: none; }
.cj-lf-done p { margin: 0; }
.cj-lf-done-title { font-weight: 700; font-size: 1.1em; }
.cj-lf-done-link a { display: inline-block; margin-top: 6px; }

/* Contact form: the Synup form's layout (synup.com/contact) in Clientjoy's colours. Inputs and
   headings take the Synup form's spacing and radii; the accent is the site's own green
   (#337145, the header button) and the button is the site's header button, hover included. */
.cj-lf-contact { --cj-lf-green: #337145; --cj-lf-ink: #1c1917; --cj-lf-line: #e7e2da; --cj-lf-soft: #f4f0ea; gap: 16px; }
.cj-lf-contact .cj-lf-fields { gap: 16px; }
.cj-lf-heading { margin: 6px 0 -6px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--cj-lf-ink); }
.cj-lf-contact .cj-lf-field { display: grid; gap: 6px; min-width: 0; margin: 0; }
.cj-lf-contact .cj-lf-label { margin: 0; font-size: .875rem; font-weight: 650; line-height: 1.3; color: var(--cj-lf-ink); }
.cj-lf-req { color: var(--cj-lf-green); }
.cj-lf-input { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: .75rem .875rem; font: inherit; font-size: .9375rem; line-height: 1.35; color: var(--cj-lf-ink);
  background: #fff; border: 1px solid var(--cj-lf-line); border-radius: 10px; appearance: none; -webkit-appearance: none; transition: border-color .14s, box-shadow .14s; }
.cj-lf-input::placeholder { color: #a8a29e; }
.cj-lf-input:focus { border-color: var(--cj-lf-green); outline: none; box-shadow: 0 0 0 3px rgba(51, 113, 69, .18); }
select.cj-lf-input { padding-right: 2.4rem; cursor: pointer; background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357534E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.cj-lf-tel { display: grid; grid-template-columns: auto 1fr; }
.cj-lf-tel select.cj-lf-input { width: auto; padding-right: 2rem; font-size: .875rem; background-color: var(--cj-lf-soft); border-right: 0; border-radius: 10px 0 0 10px; }
.cj-lf-tel input.cj-lf-input { border-radius: 0 10px 10px 0; }
.cj-lf-tel .cj-lf-input:focus { position: relative; z-index: 1; }
textarea.cj-lf-input { resize: vertical; min-height: 6.5rem; }
.cj-lf-contact .cj-lf-submit { margin-top: 4px; cursor: pointer; }   /* colours, radius, padding, hover: the site's header-button classes */
