/* form-legal.css — custom-dev strip, inquiry form (final CTA), legal pages, thanks page */

  /* ---------------- custom development strip ---------------- */
  .custom { background: var(--paper); padding: 64px 0; }
  .custom-box {
    border: 2px solid var(--ink); border-radius: 6px; background: var(--board);
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 34px 36px; align-items: center;
  }
  @media (max-width: 760px) { .custom-box { grid-template-columns: 1fr; padding: 26px 22px; } }
  .custom-box h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--ink); line-height: 1.45; margin-bottom: 10px; text-wrap: balance; }
  .custom-box p { font-size: 13.5px; line-height: 1.85; }
  .custom-list { list-style: none; display: grid; gap: 10px; }
  .custom-list li {
    background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; padding: 12px 14px;
    font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; gap: 10px; align-items: flex-start;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .custom-list li span { font-weight: 400; color: var(--ink-soft); font-size: 12.5px; display: block; margin-top: 2px; }
  .custom-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--marker); margin-top: 1px; }
  .custom-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .custom-cta .btn-ghost { background: var(--paper); }

  /* ---------------- inquiry form ---------------- */
  .cta-memo.form-memo { max-width: 640px; padding: 40px 38px 36px; text-align: left; }
  .cta-memo.form-memo h2, .cta-memo.form-memo > p { text-align: center; }
  @media (max-width: 520px) { .cta-memo.form-memo { padding: 30px 20px 26px; } }
  .kind-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
  @media (max-width: 520px) { .kind-switch { grid-template-columns: 1fr; } }
  .kind-switch input { position: absolute; opacity: 0; pointer-events: none; }
  .kind-switch label {
    display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 4px; padding: 10px 8px;
    font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; background: var(--paper);
    transition: background .15s, border-color .15s;
  }
  .kind-switch label small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 11px; margin-top: 2px; }
  .kind-switch input:checked + label { background: var(--yellow); border-color: var(--marker); }
  .kind-switch input:focus-visible + label { outline: 2.5px solid var(--marker); outline-offset: 2px; }
  .f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }
  .f-field { display: flex; flex-direction: column; gap: 6px; }
  .f-field.full { grid-column: 1 / -1; }
  .f-field label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
  .f-field label .req { color: var(--marker); margin-left: 4px; font-size: 11px; }
  .f-field label .opt { color: var(--ink-soft); margin-left: 4px; font-size: 11px; font-weight: 400; }
  .f-input {
    font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 4px;
    padding: 10px 12px; width: 100%; transition: box-shadow .15s, border-color .15s;
  }
  .f-input:focus { outline: none; border-color: var(--marker); box-shadow: 0 0 0 3px rgba(255,111,89,.28); }
  .f-input::placeholder { color: #b5ab9b; }
  textarea.f-input { min-height: 96px; resize: vertical; line-height: 1.6; }
  select.f-input { appearance: auto; }
  /* the required set is just company/name/email -- everything else (phone,
     employee count, file upload, message) starts collapsed behind this, so
     the form reads as three fields, not eight */
  .f-more-toggle {
    display: flex; align-items: center; gap: 6px; margin: 2px 0 20px; padding: 4px 0;
    background: none; border: none; font: inherit; font-size: 13px; font-weight: 700;
    color: var(--marker); cursor: pointer;
  }
  .f-more-toggle svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
  .f-more-toggle.open svg { transform: rotate(180deg); }
  .f-more-toggle:hover { color: var(--pink-ink); }
  .f-more { margin-bottom: 6px; }
  .f-help { font-size: 11.5px; color: var(--ink-soft); line-height: 1.6; }
  .f-files {
    border: 1.5px dashed var(--line); border-radius: 4px; padding: 18px 14px; text-align: center; cursor: pointer;
    background: rgba(255,255,255,.6); font-size: 13px; color: var(--ink); transition: background .15s, border-color .15s;
  }
  .f-files:hover, .f-files.over { background: var(--yellow); border-color: var(--marker); }
  .f-files strong { display: block; font-size: 13.5px; margin-bottom: 4px; }
  .f-files input { display: none; }
  .f-filelist { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
  .f-filelist li {
    display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px;
  }
  .f-filelist li .sz { color: var(--ink-soft); font-size: 11px; }
  .f-filelist li button { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--marker); font-weight: 800; font-size: 14px; }
  .f-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
  .f-agree input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--marker); flex-shrink: 0; }
  .f-agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
  .f-submit { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .f-submit .btn-primary { cursor: pointer; font-family: inherit; }
  .f-submit .btn-primary:disabled { opacity: .6; cursor: wait; }
  .f-error {
    display: none; background: var(--pink); color: var(--pink-ink); border: 2px solid var(--ink); border-radius: 4px;
    padding: 10px 14px; font-size: 13px; font-weight: 700; margin-top: 16px;
  }
  .f-error.show { display: block; }
  .hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
  .f-done { display: none; text-align: center; padding: 10px 0 4px; }
  .f-done.show { display: block; }
  .f-done .stamp {
    display: inline-block; border: 3px solid var(--sage-ink); color: var(--sage-ink); border-radius: 6px; padding: 6px 16px;
    font-weight: 800; font-size: 16px; transform: rotate(-4deg); margin-bottom: 18px; letter-spacing: .04em;
  }
  .f-done h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }
  .f-done p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 0 !important; }
  .f-done .btn-ghost { margin-top: 18px; display: inline-block; }

  /* ---------------- legal / thanks pages ---------------- */
  .legal { max-width: 760px; margin: 0 auto; padding: 56px 28px 90px; }
  .legal h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; color: var(--ink); margin-bottom: 8px; line-height: 1.4; }
  .legal .updated { font-size: 12px; color: var(--ink-soft); margin-bottom: 34px; }
  .legal h2 { font-size: 16.5px; font-weight: 800; color: var(--ink); margin: 34px 0 10px; padding-top: 14px; border-top: 2px solid var(--ink); }
  .legal h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
  .legal p, .legal li { font-size: 13.5px; line-height: 1.95; color: var(--ink-soft); }
  .legal ol, .legal ul { padding-left: 1.4em; margin: 6px 0 10px; }
  .legal li { margin-bottom: 3px; }
  .legal table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0 18px; }
  .legal th, .legal td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); line-height: 1.8; }
  .legal th { width: 32%; color: var(--ink); font-weight: 700; background: var(--board); }
  .legal td { color: var(--ink-soft); }
  .legal .todo { background: var(--yellow); color: var(--yellow-ink); padding: 1px 6px; border-radius: 3px; font-weight: 700; }
  .legal .notice {
    background: var(--board); border: 2px solid var(--ink); border-radius: 4px; padding: 14px 16px; font-size: 12.5px; line-height: 1.8; margin-bottom: 26px;
  }
  .legal .notice strong { color: var(--ink); }
  .thanks { text-align: center; padding: 80px 28px 100px; max-width: 640px; margin: 0 auto; }
  .thanks .stamp {
    display: inline-block; border: 3px solid var(--sage-ink); color: var(--sage-ink); border-radius: 6px; padding: 8px 20px;
    font-weight: 800; font-size: 18px; transform: rotate(-4deg); margin-bottom: 26px; letter-spacing: .04em;
  }
  .thanks h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; color: var(--ink); margin-bottom: 14px; line-height: 1.4; }
  .thanks p { font-size: 14px; line-height: 1.9; color: var(--ink-soft); margin-bottom: 10px; }
  .thanks .steps { text-align: left; display: grid; gap: 10px; margin: 28px 0; }
  .thanks .steps div { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink); line-height: 1.7; }
  .thanks .steps b { background: var(--ink); color: var(--paper); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
  .thanks .btn-ghost { margin-top: 10px; display: inline-block; }
  .simple-nav { justify-content: space-between; }
  .simple-nav .nav-links { margin-left: 0; }
