/* Форма заявки MerchyPrint (блок «Контакты» на главной) */
.lf-card { background: #111827; border: 1px solid #1f2937; border-radius: 28px; padding: 28px 20px; box-shadow: 0 25px 50px rgba(0,0,0,.35); color: #fff; font-family: "Inter", system-ui, sans-serif; }
@media (min-width: 768px) { .lf-card { padding: 40px; } }
.lf-h { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.lf-sub { color: #9ca3af; font-size: 14px; margin: 0 0 22px; line-height: 1.5; }
.lf[hidden], .lf-done[hidden], .lf-h[hidden], .lf-sub[hidden] { display: none !important; }
.lf { display: flex; flex-direction: column; gap: 16px; }
.lf-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .lf-row { grid-template-columns: 1fr 1fr; } }
.lf-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.lf-f > span, .lf-f legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #9ca3af; padding: 0; margin-bottom: 6px; }
.lf input[type="text"], .lf input[type="tel"], .lf input[type="number"], .lf select, .lf textarea {
  width: 100%; box-sizing: border-box; padding: 14px 16px; background: rgba(31,41,55,.6); border: 1px solid #374151; border-radius: 14px;
  color: #fff; font: 16px "Inter", system-ui, sans-serif; outline: none; transition: border-color .2s, box-shadow .2s; }
.lf select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.lf select option { background: #111827; color: #fff; }
.lf textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.lf input::placeholder, .lf textarea::placeholder { color: #6b7280; }
.lf input:focus, .lf select:focus, .lf textarea:focus { border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234,88,12,.2); }
.lf .lf-bad { border-color: #ef4444 !important; }

.lf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-pills label { cursor: pointer; }
.lf-pills input { position: absolute; opacity: 0; pointer-events: none; }
.lf-pills span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid #374151; background: rgba(31,41,55,.6); font-size: 14px; font-weight: 600; transition: .2s; }
.lf-pills label:hover span { border-color: #6b7280; }
.lf-pills input:checked + span { background: #ea580c; border-color: #ea580c; }
.lf-pills input:focus-visible + span { box-shadow: 0 0 0 3px rgba(234,88,12,.35); }

.lf-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 2px dashed #374151; border-radius: 16px; text-align: center; cursor: pointer; transition: .2s; background: rgba(31,41,55,.35); }
.lf-drop:hover, .lf-drop.over { border-color: #ea580c; background: rgba(234,88,12,.08); }
.lf-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lf-drop i { font-size: 26px; color: #ea580c; }
.lf-drop b { font-size: 14px; } .lf-drop small { color: #6b7280; font-size: 12px; line-height: 1.4; }
.lf-files { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lf-files li { display: flex; align-items: center; gap: 10px; background: rgba(31,41,55,.7); border-radius: 10px; padding: 8px 10px 8px 14px; font-size: 13px; }
.lf-files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-files li small { color: #9ca3af; }
.lf-files li button { border: 0; background: none; color: #9ca3af; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.lf-files li button:hover { color: #ef4444; }

.lf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lf-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #9ca3af; cursor: pointer; }
.lf-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: #ea580c; cursor: pointer; }
.lf-consent a { color: #fb923c; text-decoration: underline; }
.lf-consent.lf-bad span { color: #fca5a5; }
.lf-err { color: #fca5a5; font-size: 14px; line-height: 1.5; min-height: 0; }
.lf-err:empty { display: none; }
.lf-err a { color: #fb923c; }
.lf-btn { position: relative; width: 100%; padding: 20px; border: 0; border-radius: 14px; background: #ea580c; color: #fff; font: 900 15px "Inter", sans-serif; text-transform: uppercase; letter-spacing: .18em; cursor: pointer; box-shadow: 0 10px 30px rgba(124,45,18,.4); transition: background .2s, transform .1s; overflow: hidden; }
.lf-btn:hover { background: #f97316; } .lf-btn:active { transform: scale(.99); }
.lf-btn:disabled { cursor: wait; opacity: .85; }
.lf-btn .lf-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.18); transition: width .2s; }
.lf-btn span { position: relative; }

.lf-done { text-align: center; padding: 30px 6px 10px; animation: lf-in .4s ease; }
.lf-ok { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: rgba(34,197,94,.15); color: #22c55e; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.lf-done h3 { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.lf-done p { color: #9ca3af; line-height: 1.6; margin: 0 auto 22px; max-width: 420px; }
.lf-again { border: 1px solid #374151; background: none; color: #fff; padding: 12px 20px; border-radius: 999px; font: 600 14px "Inter", sans-serif; cursor: pointer; }
.lf-again:hover { border-color: #ea580c; color: #fb923c; }
@keyframes lf-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
