/* ============================================================
   tax-eservice.css — ระบบภาษีท้องถิ่น e-Service (signboard/landtax/cancel/change)
   โทนเขียว อบต. ให้เข้าชุดกับ modern-list.css
   ============================================================ */
:root{
  --tx-g1:#1c8301; --tx-g2:#0a5c01; --tx-ink:#1a2540; --tx-muted:#64748b;
  --tx-line:#e6e9ef; --tx-soft:#f4f8f2; --tx-radius:14px;
  --tx-shadow:0 2px 10px rgba(20,40,80,.06);
}
.tx-wrap{ background:#f5f7f2; padding:22px 0 36px; -webkit-font-smoothing:antialiased; }

/* hero */
.tx-hero{ background:linear-gradient(135deg,var(--tx-g1) 0%,var(--tx-g2) 100%); border-radius:16px;
  padding:22px 26px; color:#fff; box-shadow:0 8px 22px rgba(2,94,24,.22); display:flex; align-items:center; gap:18px; margin-bottom:18px; }
.tx-hero .ic{ flex:0 0 auto; width:58px; height:58px; border-radius:14px; background:rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; font-size:26px; }
.tx-hero h2{ margin:0 0 4px; font-size:22px; font-weight:800; line-height:1.35; }
.tx-hero p{ margin:0; font-size:13.5px; opacity:.92; }

/* section card */
.tx-sec{ background:#fff; border:1px solid var(--tx-line); border-radius:var(--tx-radius); box-shadow:var(--tx-shadow);
  padding:18px 20px; margin-bottom:16px; }
.tx-sec-title{ font-size:15px; font-weight:700; color:var(--tx-g1); margin:0 0 16px; padding-bottom:10px;
  border-bottom:1px solid #eef2f7; display:flex; align-items:center; gap:8px; }
.tx-sec-title i{ color:var(--tx-g1); }

/* form */
.tx-field{ margin-bottom:15px; }
.tx-field label{ display:block; font-weight:600; color:#334155; font-size:13.5px; margin-bottom:6px; }
.tx-field .req{ color:#dc3545; margin-left:3px; }
.tx-field .form-control, .tx-field input, .tx-field select, .tx-field textarea{
  width:100%; border:1px solid #d8dee8; border-radius:9px; padding:9px 12px; font-size:14px; color:var(--tx-ink);
  background:#fff; transition:border-color .15s, box-shadow .15s; }
.tx-field input:focus, .tx-field select:focus, .tx-field textarea:focus{
  outline:0; border-color:var(--tx-g1); box-shadow:0 0 0 3px rgba(28,131,1,.12); }
.tx-help{ font-size:12px; color:var(--tx-muted); margin-top:4px; }
.tx-row2{ display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.tx-row3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:0 16px; }

/* signboard item rows */
.tx-item{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr auto; gap:10px; align-items:end;
  background:var(--tx-soft); border:1px solid #e4ecd0; border-radius:11px; padding:12px; margin-bottom:10px; }
.tx-item .tx-field{ margin-bottom:0; }
.tx-item-del{ background:#fee2e2; color:#b91c1c; border:0; border-radius:8px; width:38px; height:38px; cursor:pointer; font-size:16px; }
.tx-item-del:hover{ background:#dc2626; color:#fff; }
.tx-additem{ display:inline-flex; align-items:center; gap:7px; background:var(--tx-soft); color:var(--tx-g2);
  border:1px dashed #bcd49a; border-radius:9px; padding:9px 16px; font-weight:600; font-size:13.5px; cursor:pointer; }
.tx-additem:hover{ background:var(--tx-g1); color:#fff; border-color:var(--tx-g1); }

/* totals */
.tx-total{ display:flex; align-items:center; justify-content:flex-end; gap:14px; margin-top:8px;
  font-size:15px; }
.tx-total b{ font-size:24px; color:var(--tx-g2); }

/* buttons */
.tx-btn{ display:inline-flex; align-items:center; gap:8px; background:linear-gradient(135deg,var(--tx-g1),var(--tx-g2));
  color:#fff; border:0; border-radius:10px; padding:12px 26px; font-weight:700; font-size:15px; cursor:pointer;
  box-shadow:0 4px 14px rgba(2,94,24,.22); transition:transform .15s, box-shadow .15s, filter .15s; }
.tx-btn:hover{ transform:translateY(-2px); filter:brightness(1.04); color:#fff; text-decoration:none; }
.tx-btn.ghost{ background:#fff; color:var(--tx-g2); border:1px solid #cfe0bd; box-shadow:none; }
.tx-btn.ghost:hover{ background:var(--tx-soft); color:var(--tx-g2); }
.tx-btn.blue{ background:linear-gradient(135deg,#2563eb,#1a4fc0); box-shadow:0 4px 14px rgba(37,99,235,.22); }

/* captcha + honeypot */
.tx-captcha{ display:flex; align-items:center; gap:12px; }
.tx-captcha .q{ background:var(--tx-soft); border:1px solid #e4ecd0; border-radius:9px; padding:9px 16px; font-weight:700; color:var(--tx-g2); font-size:16px; white-space:nowrap; }
.tx-captcha input{ max-width:140px; }

/* result / status */
.tx-result{ background:#fff; border:1px solid var(--tx-line); border-radius:12px; overflow:hidden; }
.tx-rrow{ display:flex; justify-content:space-between; gap:12px; padding:11px 16px; border-top:1px solid #f1f5f9; font-size:14px; }
.tx-rrow:first-child{ border-top:0; }
.tx-rrow span{ color:var(--tx-muted); }
.tx-rrow b{ color:var(--tx-ink); text-align:right; }
.tx-alert{ border-radius:10px; padding:14px 16px; font-size:14.5px; font-weight:600; }
.tx-alert.ok{ background:#e8f7e9; color:#1c8301; border:1px solid #bfe3c2; }
.tx-alert.err{ background:#fde8e8; color:#b91c1c; border:1px solid #f3c0c0; }
.tx-alert i{ margin-right:6px; }

/* items table (success) */
.tx-items{ width:100%; border-collapse:collapse; margin:6px 0; font-size:13.5px; }
.tx-items th{ background:var(--tx-soft); color:#475569; font-weight:600; padding:9px 10px; border-bottom:1px solid var(--tx-line); text-align:left; }
.tx-items td{ padding:9px 10px; border-bottom:1px solid #f1f5f9; }
.tx-items td:last-child, .tx-items th:last-child{ text-align:right; }

/* bank box */
.tx-bank{ display:flex; gap:18px; flex-wrap:wrap; align-items:flex-start; }
.tx-qr img{ width:170px; height:auto; border-radius:12px; border:1px solid var(--tx-line); padding:6px; background:#fff; }
.tx-bank-info{ flex:1; min-width:220px; }
.tx-note{ margin-top:10px; font-size:13px; color:var(--tx-muted); background:var(--tx-soft); border-radius:8px; padding:9px 12px; }

/* big number ref */
.tx-ref{ text-align:center; padding:8px 0 4px; }
.tx-ref .lbl{ font-size:13px; color:var(--tx-muted); }
.tx-ref .no{ font-size:26px; font-weight:800; color:var(--tx-g2); letter-spacing:.5px; }

@media (max-width:680px){
  .tx-row2,.tx-row3{ grid-template-columns:1fr; }
  .tx-item{ grid-template-columns:1fr 1fr; }
  .tx-hero h2{ font-size:18px; }
  .tx-total b{ font-size:20px; }
}
