.gst-page {
  --gst-accent: var(--fmf-coral);
  --gst-accent-soft: color-mix(in srgb, var(--gst-accent) 15%, white);
}

.gst-intro { margin-bottom: 22px; }
.gst-intro__chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.gst-intro__chips span { padding: 7px 11px; border-radius: 999px; background: #fff7f2; border: 1px solid #f3ddd2; color: #71483c; font-size: .82rem; font-weight: 700; }

.gst-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr);
  gap: 20px;
  align-items: stretch;
}

.gst-calculator__main,
.gst-results,
.gst-help-card,
.gst-disclaimer {
  background: white;
  border: 1px solid var(--fmf-border);
  border-radius: var(--radius);
}

.gst-calculator__main { padding: clamp(22px, 4vw, 36px); }
.gst-calculator__heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.gst-calculator__heading h2 { margin: .1em 0 0; color: var(--fmf-navy); font-size: clamp(1.45rem, 2.7vw, 2rem); letter-spacing: -.03em; }
.gst-reset { min-height: 44px; padding: 0 15px; background: white; border: 1px solid var(--fmf-border); border-radius: 11px; color: var(--fmf-navy); cursor: pointer; font-weight: 700; }
.gst-reset:hover { background: var(--fmf-page); }

.gst-mode { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.gst-mode__button { min-height: 76px; padding: 13px 16px; border: 2px solid var(--fmf-border); border-radius: 15px; background: #fbfcfe; color: var(--fmf-text); text-align: left; cursor: pointer; }
.gst-mode__button strong, .gst-mode__button span { display: block; }
.gst-mode__button strong { color: var(--fmf-navy); font-size: 1rem; }
.gst-mode__button span { margin-top: 2px; color: var(--fmf-muted); font-size: .84rem; }
.gst-mode__button.is-active { border-color: var(--gst-accent); background: var(--gst-accent-soft); }
.gst-mode__button.is-active strong { color: #6c3529; }

.gst-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gst-field { display: grid; gap: 7px; min-width: 0; }
.gst-field__label { color: var(--fmf-navy); font-size: .86rem; font-weight: 700; }
.gst-field input,
.gst-field select { width: 100%; min-width: 0; min-height: 52px; border: 1.5px solid #cfd8e6; border-radius: 13px; background: white; color: var(--fmf-text); padding: 0 14px; }
.gst-field input:focus,
.gst-field select:focus { border-color: var(--fmf-blue); outline: 3px solid color-mix(in srgb, var(--fmf-blue) 18%, transparent); outline-offset: 1px; }
.gst-field input:disabled { color: #69748a; background: #f3f5f8; cursor: not-allowed; }

.gst-money-input,
.gst-rate-input { display: flex; align-items: center; min-height: 52px; border: 1.5px solid #cfd8e6; border-radius: 13px; background: white; overflow: hidden; }
.gst-money-input:focus-within,
.gst-rate-input:focus-within { border-color: var(--fmf-blue); outline: 3px solid color-mix(in srgb, var(--fmf-blue) 18%, transparent); outline-offset: 1px; }
.gst-money-input__prefix { padding-left: 14px; color: var(--fmf-muted); font-weight: 700; }
.gst-money-input input,
.gst-rate-input input { border: 0; border-radius: 0; min-height: 49px; outline: none !important; box-shadow: none; }
.gst-rate-input span { padding-right: 14px; color: var(--fmf-muted); font-weight: 700; }
.gst-rate-input:has(input:disabled) { background: #f3f5f8; }
.gst-rate-input:has(input:disabled) input { background: transparent; }

.gst-validation { min-height: 1.5em; margin: 10px 0 0; color: #9a3e38; font-size: .86rem; font-weight: 500; }

.gst-preset-note { display: grid; grid-template-columns: auto 1fr auto; gap: 7px 12px; align-items: center; margin-top: 12px; padding: 14px 15px; border-radius: 14px; background: #fffaf7; border: 1px solid #f1e2da; }
.gst-preset-note strong { color: var(--fmf-navy); }
.gst-preset-note span { color: var(--fmf-muted); font-size: .86rem; }
.gst-preset-note a { color: #8c4a39; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.gst-preset-note a[hidden] { display: none; }

.gst-results { display: flex; flex-direction: column; padding: clamp(22px, 4vw, 34px); background: linear-gradient(145deg, #fff, #fff8f4); border-color: #edd9cf; box-shadow: var(--shadow); }
.gst-result-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid #eadfd9; }
.gst-result-row span { color: var(--fmf-muted); }
.gst-result-row strong { color: var(--fmf-navy); font-size: clamp(1.15rem, 2.1vw, 1.45rem); white-space: nowrap; }
.gst-result-row small { color: var(--fmf-muted); font-size: .78rem; }
.gst-result-row--tax strong { color: #b7563f; }
.gst-result-row--total { margin-top: auto; padding-top: 24px; border-bottom: 0; }
.gst-result-row--total span { color: var(--fmf-navy); font-weight: 700; }
.gst-result-row--total strong { color: #7b3526; font-size: clamp(1.75rem, 4vw, 2.55rem); letter-spacing: -.04em; }
.gst-formula { margin-top: 18px; padding: 12px 13px; border-radius: 12px; background: rgba(255,255,255,.75); border: 1px solid #efe1da; color: var(--fmf-muted); font-size: .82rem; text-align: center; }

.gst-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.gst-help-card { padding: clamp(22px, 4vw, 30px); }
.gst-help-card h2,
.gst-disclaimer h2 { margin: 0 0 8px; color: var(--fmf-navy); font-size: 1.25rem; }
.gst-help-card p,
.gst-disclaimer p { color: var(--fmf-muted); }
.gst-help-card p { margin: 0; }
.gst-example { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--fmf-page); }
.gst-example span { color: var(--fmf-muted); font-size: .84rem; }
.gst-example strong { color: var(--fmf-navy); }

.gst-disclaimer { margin-top: 20px; padding: clamp(22px, 4vw, 30px); }
.gst-disclaimer p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .gst-calculator { grid-template-columns: 1fr; }
  .gst-results { min-height: 310px; }
}

@media (max-width: 620px) {
  .gst-calculator__heading { align-items: center; }
  .gst-mode, .gst-form-grid, .gst-help-grid { grid-template-columns: 1fr; }
  .gst-mode__button { min-height: 70px; }
  .gst-preset-note { grid-template-columns: 1fr; }
  .gst-preset-note a { justify-self: start; }
  .gst-result-row--total strong { font-size: 2rem; }
}
