/* Free UAE business tools: forms, results and notes. Uses the site's design tokens (ui2.css) with safe fallbacks. */
.tool { background: var(--paper, #fff); border: 1px solid var(--line, #e3e1d8); border-radius: 18px; padding: clamp(18px, 3vw, 30px); margin: 0 0 32px; box-shadow: 0 10px 30px -18px rgba(11, 18, 32, .35); }
.tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; }
.tool-form .tf { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.tool-form label, .tool-form legend { font-weight: 600; font-size: .95rem; padding: 0; }
.tool-form small { color: var(--muted, #5b6472); font-size: .82rem; line-height: 1.4; }
.tool-form input[type=number], .tool-form input[type=date], .tool-form select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line, #cfd3da); border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.tool-form input:focus-visible, .tool-form select:focus-visible, .tool-form button:focus-visible { outline: 3px solid var(--accent, #0f8f76); outline-offset: 2px; }
.tool-form .tf-check label, .tool-form .tf-checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.tool-form .tf-check input, .tool-form .tf-checks input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.tool-form .tf-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 16px; }
.tool-form fieldset.tf { grid-column: 1 / -1; }
.tool-form .tf-q .tf-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-form .tf-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 12px; }
.tool-form [hidden] { display: none !important; }
.tool-result { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: var(--ivory, #f4f6f1); border: 1px solid var(--line, #dfe3da); }
.tool-result h2, .tool-result h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tool-result .big { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.15; margin: 4px 0 10px; }
.tool-result table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.tool-result th, .tool-result td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, #dfe3da); vertical-align: top; }
.tool-result td.num, .tool-result th.num { text-align: right; white-space: nowrap; }
.tool-result .warn { color: #8a4b00; background: #fff6e5; border: 1px solid #f0d49a; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.tool-result .ok { color: #0b5b49; }
.tool-result ul { margin: 8px 0 0 1.1rem; }
.tool-note { font-size: .88rem; color: var(--muted, #5b6472); }
.tool-explainer { margin: 8px 0 28px; line-height: 1.7; }
.tool-explainer h2 { margin-top: 28px; }
.tool-faq details { border-bottom: 1px solid var(--line, #dfe3da); padding: 12px 0; }
.tool-faq summary { cursor: pointer; font-weight: 600; }
.tool-faq details p { margin: 8px 0 0; }
.tool-sources { margin: 28px 0; padding: 16px 18px; border-left: 4px solid var(--accent, #0f8f76); background: var(--ivory, #f4f6f1); border-radius: 0 12px 12px 0; }
.tool-sources ul { margin: 8px 0 12px 1.1rem; word-break: break-word; }
.tool-cta { margin-top: 24px; padding: 20px 22px; border-radius: 16px; background: #0b1220; color: #fff; }
.tool-cta p { color: rgba(255, 255, 255, .85); }
.tool-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
@media (max-width: 640px) { .tool-form .tf-q .tf-checks { grid-template-columns: 1fr; } .tool-result table { font-size: .88rem; } }
@media (prefers-color-scheme: dark) { .tool-form input[type=number], .tool-form input[type=date], .tool-form select { background: #111a2b; color: #fff; border-color: #2a3550; } .tool { background: #0f1626; } .tool-result, .tool-sources { background: #131c2f; } .tool-result .warn { background: #3a2b0e; color: #ffd98a; border-color: #6b5320; } }
