/* Medical & Nutritional History Form Styles */
.mhf{--navy:#334155;--teal:#2bb3a3;--line:#cbd5e1;--bg:#f8fafc;--ink:#1e293b;max-width:820px;margin:0 auto;font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg)}
.mhf *{box-sizing:border-box}
.mhf header{background:var(--navy);color:#fff;padding:22px 24px;border-bottom:3px solid var(--teal);display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.mhf h1{margin:0;font-size:1.5rem}.mhf header p{margin:2px 0 0;font-size:.85rem;opacity:.8}
.mhf .lang button{background:transparent;color:#fff;border:1px solid #fff8;padding:6px 14px;cursor:pointer;font:inherit}
.mhf .lang button[aria-pressed=true]{background:var(--teal);border-color:var(--teal)}
.mhf h2{background:var(--navy);color:#fff;margin:28px 0 0;padding:10px 16px;font-size:1.05rem;border-left:4px solid var(--teal)}
.mhf .box{background:#fff;border:1px solid #e2e8f0;padding:18px 20px;margin:0}
.mhf label,.mhf .q{display:block;font-weight:600;margin:14px 0 4px}
.mhf .note{font-weight:400;color:#475569;font-size:.9rem;margin:0 0 8px}
.mhf input[type=text],.mhf input[type=email],.mhf input[type=tel],.mhf input[type=date],.mhf input[type=number],.mhf textarea{width:100%;border:0;border-bottom:1px solid var(--line);padding:7px 2px;font:inherit;background:transparent;color:inherit;border-radius:0}
.mhf textarea{border:1px solid var(--line);padding:8px;min-height:84px}
.mhf input:focus,.mhf textarea:focus{outline:2px solid var(--teal);outline-offset:1px}
.mhf .grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.mhf .yn{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:14px 0 4px}
.mhf .yn b{font-weight:600;flex:1 1 260px}.mhf .yn label{display:inline-flex;gap:6px;margin:0;font-weight:400;align-items:center}
.mhf table{width:100%;border-collapse:collapse;margin-top:6px}
.mhf th{background:#eef2f7;text-align:center;padding:8px;border:1px solid var(--line);font-size:.9rem}
.mhf td{border:1px solid var(--line);padding:0}.mhf td:first-child{padding:8px;width:34%}
.mhf td input{border:0;padding:8px}
.mhf .actions{display:flex;gap:12px;padding:20px 0 30px;flex-wrap:wrap}
.mhf .actions button{background:var(--navy);color:#fff;border:0;padding:12px 26px;font:inherit;font-weight:600;cursor:pointer;border-bottom:3px solid var(--teal)}
.mhf .actions .alt{background:#fff;color:var(--navy);border:1px solid var(--navy)}
.mhf .actions button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
@media(max-width:600px){.mhf .grid{grid-template-columns:1fr}.mhf td:first-child{width:auto}.mhf th,.mhf td input{font-size:.85rem}}
@media print{.mhf .lang,.mhf .actions{display:none}.mhf h2{break-after:avoid}}
