/* Calculator and KYC tool pages - Parth Bullion rose and ivory palette. */
:root{--tool-bg:#fbf7f3;--tool-panel:#ffffff;--tool-panel-2:#fff1f3;--tool-rose:#d77282;--tool-rose-deep:#a94e60;--tool-rose-soft:#f9e1e5;--tool-gold:#b6893f;--tool-text:#3d2930;--tool-muted:#836b72;--tool-border:rgba(169,78,96,.38);--tool-danger:#b42336;--tool-shadow:0 18px 45px rgba(102,48,59,.12)}
*{box-sizing:border-box}
body.tool-page{margin:0;background:var(--tool-bg);color:var(--tool-text);font-family:Montserrat,Arial,sans-serif;line-height:1.5}
.tool-shell{min-height:100vh;background:var(--tool-bg)}
.tool-header{background:var(--tool-bg);border-bottom:1px solid var(--tool-border)}
.tool-brand{display:flex;justify-content:center;align-items:center;min-height:96px;padding:8px 20px}
.tool-brand img{width:min(460px,80vw);height:82px;object-fit:contain}
.tool-nav{background:var(--tool-rose);border-top:1px solid var(--tool-rose-soft);border-bottom:1px solid var(--tool-rose-deep)}
.tool-nav__inner{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:0 16px}
.tool-nav a{min-height:50px;display:flex;align-items:center;padding:0 14px;color:#fff;font-size:12px;font-weight:700;letter-spacing:.03em;text-decoration:none;text-transform:uppercase;border-bottom:2px solid transparent}
.tool-nav a:hover,.tool-nav a:focus-visible,.tool-nav a[aria-current=page]{color:#fff;background:var(--tool-rose-deep);border-bottom-color:#fff}
.tool-main{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:56px 0 72px}
.tool-intro{max-width:740px;margin-bottom:30px}
.tool-intro h1{margin:0 0 10px;color:var(--tool-rose-deep);font-size:clamp(2rem,5vw,4rem);line-height:1.04;letter-spacing:-.03em}
.tool-intro p{margin:0;color:var(--tool-muted);font-size:1rem}
.tool-panel{background:var(--tool-panel);border:1px solid var(--tool-border);border-radius:14px;overflow:hidden;box-shadow:var(--tool-shadow)}
.tool-panel__head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px 26px;background:var(--tool-panel-2);border-bottom:1px solid var(--tool-border)}
.tool-panel__head h2{margin:0;color:var(--tool-rose-deep);font-size:1.2rem}
.gst-badge{padding:6px 11px;border-radius:999px;background:var(--tool-rose);color:#fff;font-size:.78rem;font-weight:800;white-space:nowrap}
.tool-body{padding:28px}
.form-section{padding:0 0 28px;margin:0 0 28px;border:0;border-bottom:1px solid var(--tool-rose-soft)}
.form-section:last-of-type{border-bottom:0;margin-bottom:8px}
.form-section legend{padding:0;margin:0 0 18px;color:var(--tool-rose-deep);font-size:1.08rem;font-weight:700}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
.field--wide{grid-column:1/-1}
.field label{display:block;margin:0 0 7px;color:var(--tool-rose-deep);font-size:.88rem;font-weight:600}
.required{color:var(--tool-danger)}
.field input,.field select,.field textarea{width:100%;min-height:48px;padding:11px 13px;background:#fff;border:1px solid var(--tool-border);border-radius:8px;color:var(--tool-text);font:inherit;outline:none}
.field textarea{min-height:104px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:#a3919a}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--tool-rose);box-shadow:0 0 0 3px rgba(215,114,130,.18)}
.field small{display:block;margin-top:6px;color:var(--tool-muted);font-size:.76rem}
.calc-table-wrap{width:100%;overflow-x:auto;margin-bottom:14px}
.calc-table{width:100%;border-collapse:collapse;table-layout:fixed}
.calc-table th{padding:13px 12px;background:var(--tool-rose);color:#fff;font-size:.78rem;letter-spacing:.02em;text-align:left;text-transform:uppercase}
.calc-table th:first-child{border-radius:8px 0 0 8px}.calc-table th:last-child{width:58px;border-radius:0 8px 8px 0}
.calc-table td{padding:12px;border-bottom:1px solid var(--tool-rose-soft);vertical-align:middle}
.calc-table td:first-child,.calc-table th:first-child{width:24%}.calc-table td:nth-child(2),.calc-table th:nth-child(2){width:18%}.calc-table td:nth-child(3),.calc-table th:nth-child(3){width:24%}.calc-table td:nth-child(4),.calc-table th:nth-child(4){width:23%}
.calc-table input,.calc-table select{width:100%;min-height:44px;padding:9px 10px;background:#fff;border:1px solid var(--tool-border);border-radius:8px;color:var(--tool-text);font:inherit}
.calc-table input:focus,.calc-table select:focus{outline:0;border-color:var(--tool-rose);box-shadow:0 0 0 3px rgba(215,114,130,.18)}
.calc-amount{display:block;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--tool-text)}
.remove-row-button{width:38px;height:38px;border:1px solid rgba(180,35,54,.35);border-radius:8px;background:#fff;color:var(--tool-danger);font-size:1.45rem;line-height:1;cursor:pointer}
.remove-row-button:hover,.remove-row-button:focus-visible{background:#fff1f3;border-color:var(--tool-danger)}
.add-row-button{display:flex;align-items:center;gap:7px;min-height:42px;margin:0 0 26px auto;padding:0 15px;border:1px solid var(--tool-rose-deep);border-radius:8px;background:#fff;color:var(--tool-rose-deep);font:inherit;font-weight:750;cursor:pointer}
.add-row-button:hover,.add-row-button:focus-visible{background:var(--tool-rose-soft)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.summary{margin-left:0;width:100%;border-top:1px solid var(--tool-border)}
.summary-row{display:flex;justify-content:space-between;gap:24px;padding:13px 0;border-bottom:1px solid var(--tool-rose-soft)}
.summary-row span:first-child{color:var(--tool-muted)}
.summary-row strong{font-variant-numeric:tabular-nums;color:var(--tool-text)}
.summary-row--total{padding-top:18px;color:var(--tool-rose-deep);font-size:1.25rem;border-bottom:0}
.summary-row--total strong{color:var(--tool-rose-deep)}
.actions{display:flex;gap:12px;align-items:center;margin-top:26px}
.tool-button{min-height:46px;padding:0 22px;border:1px solid var(--tool-rose-deep);border-radius:8px;background:var(--tool-rose);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.tool-button:hover,.tool-button:focus-visible{background:var(--tool-rose-deep)}
.tool-button--secondary{background:#fff;color:var(--tool-rose-deep)}
.tool-button--secondary:hover,.tool-button--secondary:focus-visible{background:var(--tool-rose-soft);color:var(--tool-rose-deep)}
.form-status{margin:0;color:var(--tool-muted)}
.form-status.is-success{color:#2f7d55}.form-status.is-error{color:var(--tool-danger)}
.tool-footer{padding:24px 16px;text-align:center;background:var(--tool-rose-deep);border-top:1px solid var(--tool-rose-300,#e9a1ad);color:#fff;font-size:.85rem}
@media(max-width:760px){.tool-brand{min-height:78px}.tool-brand img{height:62px}.tool-nav__inner{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}.tool-nav a{white-space:nowrap}.tool-main{padding:36px 0 52px}.tool-panel__head{align-items:flex-start}.tool-body{padding:20px}.form-grid{grid-template-columns:1fr}.field--wide{grid-column:auto}.actions{align-items:stretch;flex-direction:column}.tool-button{width:100%}.calc-table{table-layout:auto;min-width:720px}.calc-table td:first-child,.calc-table th:first-child{width:180px}.calc-table td:nth-child(2),.calc-table th:nth-child(2){width:135px}.calc-table td:nth-child(3),.calc-table th:nth-child(3){width:170px}.calc-table td:nth-child(4),.calc-table th:nth-child(4){width:155px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
