/* Lead form for the accounting service pages. Copied from /accounting-services/ on 2026-09-28.
   Keep in step with the form CSS in accounting-services/index.html. */
:root { --r-xl: 36px; --r-pill: 999px; --ease: cubic-bezier(0.34, 1.56, 0.64, 1); --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1); }
.lp-form { margin: 26px 0 30px; }
#contact { scroll-margin-top: 96px; }
    /* form */
    .form-card {
      background: #fff;
      border: 3px solid var(--ink);
      border-radius: var(--r-xl);
      padding: 30px 28px 32px;
      box-shadow: 10px 12px 0 var(--ink);
      position: relative;
      transition: transform 0.4s var(--ease);
    }

    .form-card::before {
      content: 'No obligation';
      position: absolute;
      top: -18px;
      right: 22px;
      background: var(--sun);
      color: var(--ink);
      border: 2px solid var(--ink);
      border-radius: var(--r-pill);
      padding: 6px 16px;
      font-weight: 700;
      font-size: 0.78rem;
      transform: rotate(4deg);
      box-shadow: 2px 3px 0 var(--ink);
    }

    .form-card form {
      display: flex;
      flex-direction: column;
    }

    /* Step header */
    .form-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 16px;
      margin-bottom: 18px;
      border-bottom: 2px dashed var(--line-strong);
    }

    .form-step-label {
      font-family: var(--f-display);
      font-weight: 600;
      font-size: 0.84rem;
      color: var(--ink-soft);
      letter-spacing: 0.02em;
    }

    .form-progress {
      display: flex;
      gap: 5px;
    }

    .prog-dot {
      width: 28px;
      height: 5px;
      background: var(--line-strong);
      border-radius: 3px;
      transition: background 0.4s var(--ease-smooth);
    }

    .prog-dot.active {
      background: var(--mint-deep);
    }

    .prog-dot.done {
      background: var(--mint);
    }

    /* Step panels */
    .form-step-panel {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .form-step-panel[hidden] {
      display: none;
    }

    .form-step-panel.entering {
      animation: stepIn 0.4s var(--ease) both;
    }

    @keyframes stepIn {
      from {
        opacity: 0;
        transform: translateX(20px);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    .form-q {
      font-family: var(--f-display);
      font-weight: 600;
      font-size: 1.05rem;
      color: var(--ink);
      margin-top: 6px;
      margin-bottom: -2px;
    }

    .form-q:first-child {
      margin-top: 0;
    }

    .form-helper {
      font-size: 0.84rem;
      color: var(--ink-mute);
      margin-bottom: 4px;
    }

    /* Tap-to-select options */
    .opt-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .opt-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .opt-grid .opt-wide {
      grid-column: span 2;
    }

    .opt {
      background: var(--cream);
      border: 2px solid var(--ink);
      border-radius: var(--r-md);
      padding: 11px 14px;
      font-family: var(--f-body);
      font-weight: 500;
      font-size: 0.9rem;
      color: var(--ink);
      text-align: left;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      transition: all 0.2s var(--ease);
      position: relative;
    }

    .opt:hover {
      background: var(--sun-soft);
      transform: translateY(-1px);
    }

    .opt::before {
      content: '';
      width: 16px;
      height: 16px;
      border: 2px solid var(--ink);
      border-radius: 50%;
      background: #fff;
      flex-shrink: 0;
      transition: all 0.2s;
    }

    .opt.selected {
      background: var(--mint-soft);
      box-shadow: 3px 4px 0 var(--ink);
      transform: translate(-1px, -2px);
    }

    .opt.selected::before {
      background: var(--mint);
      box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--ink);
    }

    .opt-error {
      animation: shake 0.4s;
    }

    @keyframes shake {

      0%,
      100% {
        transform: translateX(0);
      }

      25% {
        transform: translateX(-6px);
      }

      75% {
        transform: translateX(6px);
      }
    }

    /* Fields */
    .field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .field label {
      font-weight: 600;
      font-size: 0.82rem;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .field label .req {
      color: var(--coral);
      font-weight: 700;
    }

    .field input,
    .field textarea {
      width: 100%;
      padding: 12px 14px;
      background: var(--cream);
      border: 2px solid var(--ink);
      border-radius: var(--r-md);
      font-size: 16px;
      /* min 16px to prevent iOS zoom */
      font-family: var(--f-body);
      color: var(--ink);
      transition: all 0.2s var(--ease-smooth);
      outline: none;
    }

    .field textarea {
      resize: vertical;
      min-height: 70px;
      line-height: 1.5;
    }

    .field input:focus,
    .field textarea:focus {
      background: #fff;
      box-shadow: 4px 5px 0 var(--mint);
      transform: translate(-1px, -1px);
    }

    .field input.error,
    .field textarea.error {
      border-color: var(--coral-deep);
      background: #FFF0EC;
    }

    .field-error {
      font-size: 0.76rem;
      color: var(--coral-deep);
      font-weight: 500;
      margin-top: 2px;
    }

    /* Consent */
    .consent {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 8px 4px 4px;
      font-size: 0.82rem;
      color: var(--ink-soft);
      cursor: pointer;
      line-height: 1.5;
    }

    .consent input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .consent .cbox {
      width: 22px;
      height: 22px;
      border: 2px solid var(--ink);
      border-radius: 5px;
      background: #fff;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 1px;
      transition: all 0.2s;
    }

    .consent .cbox svg {
      width: 12px;
      height: 12px;
      stroke-width: 4;
      color: var(--ink);
      opacity: 0;
      transition: opacity 0.15s;
    }

    .consent input:checked~.cbox {
      background: var(--mint);
    }

    .consent input:checked~.cbox svg {
      opacity: 1;
    }

    .consent a {
      color: var(--coral-deep);
      font-weight: 600;
    }

    .consent.error .cbox {
      border-color: var(--coral-deep);
      background: #FFF0EC;
    }

    /* Buttons */
    .btn-row {
      display: flex;
      gap: 10px;
      margin-top: 14px;
    }

    .btn-back,
    .btn-next,
    .btn-submit,
    .btn-whatsapp {
      font-family: var(--f-body);
      font-weight: 700;
      font-size: 0.95rem;
      border: 2.5px solid var(--ink);
      border-radius: var(--r-pill);
      padding: 14px 22px;
      cursor: pointer;
      transition: all 0.2s var(--ease);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
    }

    .btn-back svg,
    .btn-next svg,
    .btn-submit svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .btn-next,
    .btn-submit {
      flex: 1;
      background: var(--coral);
      color: #fff;
      box-shadow: 5px 6px 0 var(--ink);
    }

    .btn-next:hover,
    .btn-submit:hover {
      background: var(--coral-deep);
      transform: translate(-2px, -3px);
      box-shadow: 8px 10px 0 var(--ink);
    }

    .btn-next:active,
    .btn-submit:active {
      transform: translate(2px, 3px);
      box-shadow: 0 0 0 var(--ink);
    }

    .btn-next.full,
    .btn-submit.full {
      width: 100%;
    }

    .btn-back {
      flex: 0 0 auto;
      background: #fff;
      color: var(--ink);
      box-shadow: 3px 4px 0 var(--ink);
    }

    .btn-back:hover {
      background: var(--sun-soft);
      transform: translate(-1px, -2px);
    }

    .btn-whatsapp {
      width: 100%;
      background: #25D366;
      color: #fff;
      box-shadow: 5px 6px 0 var(--ink);
    }

    .btn-whatsapp:hover {
      background: #1FB856;
      transform: translate(-2px, -3px);
      box-shadow: 8px 10px 0 var(--ink);
    }

    .btn-whatsapp svg {
      width: 18px;
      height: 18px;
    }

    /* Inline WhatsApp link (Step 1) */
    .form-whatsapp-link {
      display: block;
      text-align: center;
      margin-top: 12px;
      font-size: 0.85rem;
      font-weight: 600;
      color: #1B8C46;
      text-decoration: none;
      padding: 4px 0;
      transition: color 0.2s;
    }

    .form-whatsapp-link:hover {
      color: #25D366;
    }

    /* Divider */
    .divider-or {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 18px 0 12px;
    }

    .divider-or::before,
    .divider-or::after {
      content: '';
      flex: 1;
      height: 1.5px;
      background: var(--line-strong);
      border-radius: 1px;
    }

    .divider-or span {
      font-family: var(--f-display);
      font-size: 0.74rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--ink-mute);
    }

    .form-fine {
      font-size: 0.72rem;
      color: var(--ink-mute);
      text-align: center;
      margin-top: 8px;
      line-height: 1.5;
    }

    .form-fine a {
      color: var(--coral-deep);
      font-weight: 600;
    }

    /* Honeypot */
    .honeypot {
      position: absolute;
      left: -9999px;
      top: -9999px;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    /* Success screen */
    .form-success {
      text-align: center;
      padding: 20px 4px;
      animation: stepIn 0.5s var(--ease) both;
    }

    .form-success[hidden] {
      display: none;
    }

    .success-icon {
      width: 64px;
      height: 64px;
      background: var(--mint);
      border: 2.5px solid var(--ink);
      border-radius: 50%;
      margin: 0 auto 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 4px 5px 0 var(--ink);
      animation: pop 0.5s var(--ease) 0.1s both;
    }

    @keyframes pop {
      0% {
        transform: scale(0);
      }

      100% {
        transform: scale(1);
      }
    }

    .success-icon svg {
      width: 30px;
      height: 30px;
      color: var(--ink);
      stroke-width: 3.5;
    }

    .form-success h3 {
      font-family: var(--f-display);
      font-weight: 700;
      font-size: 1.7rem;
      color: var(--ink);
      margin-bottom: 10px;
      line-height: 1.15;
    }

    .form-success .lead-line {
      font-size: 0.95rem;
      color: var(--ink-soft);
      margin-bottom: 20px;
      line-height: 1.6;
    }

    .success-next {
      background: var(--cream);
      border: 2px solid var(--ink);
      border-radius: var(--r-lg);
      padding: 16px 18px;
      text-align: left;
      margin-bottom: 18px;
    }

    .success-next-tag {
      font-family: var(--f-display);
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--mint-deep);
      margin-bottom: 8px;
    }

    .success-next ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .success-next li {
      font-size: 0.86rem;
      color: var(--ink-soft);
      padding-left: 22px;
      position: relative;
      line-height: 1.5;
    }

    .success-next li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 4px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--mint);
      border: 2px solid var(--ink);
    }

    .success-redirect-note {
      font-size: 0.76rem;
      color: var(--ink-mute);
      margin-top: 10px;
      font-style: italic;
    }

@media (max-width: 700px) {
      /* LEAD FORM */
      .lead-text h2 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        line-height: 1.08;
      }

      .lead-text p {
        font-size: 0.95rem;
      }

      .lead-promise {
        font-size: 0.88rem;
      }

      .form-card {
        padding: 26px 20px 28px;
        border-radius: 24px;
      }

      .form-card::before {
        right: 16px;
        top: -16px;
        font-size: 0.72rem;
        padding: 5px 13px;
      }

      .form-head {
        padding-bottom: 14px;
        margin-bottom: 16px;
      }

      .form-step-label {
        font-size: 0.78rem;
      }

      .prog-dot {
        width: 22px;
        height: 4px;
      }

      .form-q {
        font-size: 0.98rem;
      }

      .form-helper {
        font-size: 0.8rem;
      }

      .opt {
        padding: 12px 14px;
        font-size: 0.92rem;
        min-height: 44px;
      }

      .opt-grid {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .opt-grid .opt-wide {
        grid-column: span 1;
      }

      .field-row {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .field label {
        font-size: 0.84rem;
      }

      .field input,
      .field textarea {
        padding: 12px 14px;
        min-height: 44px;
      }

      .consent {
        font-size: 0.8rem;
      }

      .btn-row {
        flex-direction: column-reverse;
        gap: 10px;
      }

      .btn-back,
      .btn-next,
      .btn-submit {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.92rem;
        min-height: 48px;
      }

      .btn-back {
        box-shadow: 3px 4px 0 var(--ink);
      }

      .btn-whatsapp {
        padding: 14px 22px;
        min-height: 48px;
      }

      .form-success h3 {
        font-size: 1.5rem;
      }

      .success-icon {
        width: 56px;
        height: 56px;
      }

      .success-next ul {
        gap: 6px;
      }

      .success-next li {
        font-size: 0.82rem;
      }

}
@media (max-width: 480px) {
  .lp-form { margin: 20px 0 24px; }
}
