.fx-wrap { max-width: 880px; }
.fx-intro { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; }
.fx-intro-logo { width: 96px; height: auto; flex-shrink: 0; }
.fx-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); margin-bottom: .2rem; }
.fx-intro h2 { font-size: 1.55rem; line-height: 1.3; color: var(--dark); margin-bottom: .6rem; }
.fx-intro p { color: #3c4c3c; }

.fx-form { display: flex; flex-direction: column; gap: 1.25rem; }
.fx-card { background: #fff; border: 1px solid #dfe9df; border-radius: 14px; padding: 1.5rem 1.6rem 1.4rem; box-shadow: var(--shadow); }
.fx-card h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; color: var(--primary); margin-bottom: 1.1rem; }
.fx-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .9rem; font-weight: 700; flex-shrink: 0; }

.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.1rem; }
.fx-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem 1.1rem; }
.fx-span2 { grid-column: span 2; }
.fx-hidden { display: none !important; }

.fx-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; border: 0; }
fieldset.fx-field { margin-bottom: 1rem; }
.fx-field label, .fx-field legend { font-size: .9rem; font-weight: 600; color: var(--text); }
.fx-field legend { margin-bottom: .45rem; }
.fx-req { color: #b3401f; }
.fx-field input[type=text], .fx-field input[type=tel], .fx-field input[type=email], .fx-field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fbfdfb;
  border: 1.5px solid #c9d9c9; border-radius: 9px; padding: .68rem .8rem; line-height: 1.3;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.fx-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d6a2d' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }
.fx-field input:focus, .fx-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,158,74,.18); background: #fff; }
.fx-invalid input, .fx-invalid select, .fx-invalid .fx-sig, .fx-sig.fx-invalid { border-color: #c2462a !important; }
.fx-field .fx-error, .fx-error { color: #b3401f; font-size: .85rem; font-weight: 600; min-height: 0; }
.fx-error:empty { display: none; }

.fx-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.fx-pills label { position: relative; cursor: pointer; }
.fx-pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fx-pills span { display: inline-block; padding: .5rem 1rem; border: 1.5px solid #c9d9c9; border-radius: 40px; font-size: .92rem; font-weight: 600; color: #3c4c3c; background: #fbfdfb; transition: all .2s; }
.fx-pills input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.fx-pills input:focus-visible + span { box-shadow: 0 0 0 3px rgba(74,158,74,.35); }

.fx-options { display: grid; gap: .55rem; }
.fx-option, .fx-check { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border: 1.5px solid #dfe9df; border-radius: 10px; cursor: pointer; background: #fbfdfb; line-height: 1.5; transition: border-color .2s, background .2s; }
.fx-option:has(input:checked), .fx-check:has(input:checked) { border-color: var(--accent); background: var(--light); }
.fx-option input, .fx-check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--primary); flex-shrink: 0; }
.fx-check { margin-bottom: .7rem; font-size: .95rem; }
.fx-check.fx-invalid { border-color: #c2462a; background: #fff6f3; }

.fx-help { font-size: .93rem; color: #4a5a4a; margin-bottom: 1rem; }
.fx-docpick { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: end; }
.fx-docbtns { display: flex; gap: .6rem; }
.fx-btn { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-weight: 600; font-size: .95rem; padding: .68rem 1.1rem; border-radius: 9px; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; transition: all .2s; white-space: nowrap; }
.fx-btn svg { width: 20px; height: 20px; fill: currentColor; }
.fx-btn:hover { background: var(--primary); color: #fff; }
.fx-btn-cam { display: none; }
.fx-touch .fx-btn-cam { display: inline-flex; }

.fx-files { list-style: none; display: grid; gap: .55rem; margin-top: 1rem; }
.fx-files li { display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem; border: 1px solid #dfe9df; border-radius: 10px; background: #fbfdfb; }
.fx-thumb { width: 52px; height: 52px; border-radius: 7px; object-fit: cover; flex-shrink: 0; background: var(--light); display: grid; place-items: center; color: var(--primary); font-weight: 700; font-size: .75rem; }
.fx-fmeta { flex: 1; min-width: 0; }
.fx-fmeta b { display: block; font-size: .93rem; color: var(--dark); }
.fx-fmeta span { display: block; font-size: .82rem; color: #5f6f5f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-fdel { border: 0; background: transparent; color: #b3401f; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; padding: .4rem .5rem; border-radius: 6px; }
.fx-fdel:hover { background: #fff0ec; }
.fx-total { font-size: .82rem; color: #5f6f5f; margin-top: .4rem; }
.fx-total:empty { display: none; }

.fx-sig { position: relative; height: 220px; border: 2px dashed #b9cfb9; border-radius: 12px; background: #fff; touch-action: none; overflow: hidden; }
.fx-sig canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 2; }
.fx-sig-line { position: absolute; left: 7%; right: 7%; bottom: 30%; border-bottom: 1.5px solid #d6e2d6; z-index: 1; }
.fx-sig-hint { position: absolute; left: 7%; bottom: calc(30% + 8px); color: #a8bca8; font-size: 1rem; font-style: italic; z-index: 1; pointer-events: none; }
.fx-signed .fx-sig-hint { display: none; }
.fx-sig-clear { position: absolute; right: .6rem; top: .6rem; z-index: 3; font: inherit; font-size: .85rem; font-weight: 700; color: var(--primary); background: #fff; border: 1.5px solid #c9d9c9; border-radius: 20px; padding: .3rem .85rem; cursor: pointer; }
.fx-sig-clear:hover { border-color: var(--primary); }
.fx-date { margin-top: .8rem; font-size: .95rem; color: #3c4c3c; }

.fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fx-submit { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; padding: .5rem 0 0; }
.fx-send { font-size: 1.05rem; padding: 1rem 2.4rem; justify-content: center; }
.fx-send[disabled] { opacity: .65; cursor: progress; transform: none !important; }
.fx-note { font-size: .85rem; color: #5f6f5f; max-width: 560px; }
.fx-form-error { font-size: .95rem; }
.fx-progress { width: 100%; max-width: 420px; height: 8px; border-radius: 8px; background: #e2ece2; overflow: hidden; }
.fx-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.fx-done { text-align: center; background: #fff; border: 1px solid #dfe9df; border-radius: 16px; padding: 2.6rem 1.6rem; box-shadow: var(--shadow); }
.fx-done:focus { outline: none; }
.fx-done-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--light); display: grid; place-items: center; }
.fx-done-icon svg { width: 40px; height: 40px; fill: var(--primary); }
.fx-done h2 { color: var(--dark); font-size: 1.6rem; margin-bottom: .6rem; }
.fx-done p { color: #3c4c3c; margin-bottom: .6rem; }
.fx-ref { font-size: 1.1rem; }
.fx-ref b { font-family: Consolas, Menlo, monospace; color: var(--primary); }
.fx-done .btn { margin-top: 1rem; }
.fx-footer-logo { width: 110px; height: auto; }

@media (max-width: 700px) {
  .content-inner.fx-wrap { padding: 2rem 1rem 3.5rem; }
  .fx-intro { flex-direction: column; gap: .8rem; }
  .fx-intro-logo { width: 72px; }
  .fx-intro h2 { font-size: 1.3rem; }
  .fx-card { padding: 1.15rem 1rem 1.1rem; border-radius: 12px; }
  .fx-grid { grid-template-columns: 1fr; }
  .fx-span2 { grid-column: auto; }
  .fx-grid4 { grid-template-columns: 1fr 1fr; }
  .fx-docpick { grid-template-columns: 1fr; }
  .fx-docbtns .fx-btn { flex: 1; justify-content: center; }
  .fx-pills span { padding: .45rem .8rem; font-size: .88rem; }
  .fx-sig { height: 200px; }
  .fx-send { width: 100%; }
}

.fx-combo { position: relative; }
.fx-combo input[type=text] { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fbfdfb; border: 1.5px solid #c9d9c9; border-radius: 9px; padding: .68rem .8rem; line-height: 1.3; -webkit-appearance: none; appearance: none; }
.fx-combo input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,158,74,.18); background: #fff; }
.fx-combo input[disabled] { opacity: .6; }
.fx-combo-list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; list-style: none; margin: 0; padding: .3rem; background: #fff; border: 1.5px solid #c9d9c9; border-radius: 10px; box-shadow: 0 12px 32px rgba(26,61,26,.16); -webkit-overflow-scrolling: touch; }
.fx-combo-list li { padding: .55rem .7rem; border-radius: 7px; cursor: pointer; font-size: .95rem; line-height: 1.35; }
.fx-combo-list li[role=option]:hover, .fx-combo-list li.fx-on { background: var(--light); color: var(--dark); }
.fx-combo-empty { color: #6b7b6b; cursor: default !important; }
.fx-combo-manual { margin-top: .2rem; border-top: 1px solid #e3ece3; border-radius: 0 0 7px 7px !important; color: var(--brown); font-weight: 600; }
.fx-combo-manual:hover { background: #fbf7f1; }
.fx-combo-note { font-size: .85rem; color: #5f6f5f; margin-top: .3rem; }
.fx-link { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); font-weight: 700; text-decoration: underline; cursor: pointer; }
.fx-check-alt { margin-top: 1rem; }
.fx-alt { border: 1.5px dashed #c9d9c9; border-radius: 12px; padding: 1rem 1rem .9rem; margin-top: .2rem; background: #fcfefc; }
.fx-alt-title { font-weight: 700; color: var(--primary); margin-bottom: .7rem; }

.fx-form, .fx-card, .fx-docpick, .fx-field { min-width: 0; }
.fx-files { grid-template-columns: minmax(0, 1fr); }
.fx-files li { min-width: 0; max-width: 100%; }
.fx-fmeta b { overflow-wrap: anywhere; }
.fx-fdel { flex-shrink: 0; }
.fx-thumb { flex-shrink: 0; }

.fx-files li.fx-virus { border-color: #c2462a; background: #fff3f0; }
.fx-files li.fx-virus .fx-thumb { outline: 2px solid #c2462a; }
.fx-fmeta em { display: block; font-style: normal; font-weight: 700; font-size: .84rem; color: #b3401f; margin-top: .15rem; white-space: normal; }
