/* GST Calculator — hero & tool widget (shared hero pattern with other toolkit pages) */
.gst-calc-page {
  --gst-navy: #061a31;
  --gst-navy-2: #0b2947;
  --gst-coral: #f45f58;
  --gst-coral-dark: #d94a44;
  --gst-coral-soft: #fff2f1;
  --gst-ink: #10243a;
  --gst-muted: #5c6f82;
  --gst-line: #d9e2ea;
  --gst-green: #16825c;
  --gst-green-soft: #eaf7f1;
  --gst-amber: #9e650f;
  --gst-amber-soft: #fff7e8;
  --gst-shadow: 0 24px 70px rgba(4, 24, 46, 0.18);
}

.gst-calc-page .hero-tool {
  position: relative;
  min-height: calc(100svh - 58px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(54, 107, 155, 0.36), transparent 32%),
    linear-gradient(135deg, var(--gst-navy) 0%, #081f39 58%, #0b2d50 100%);
  color: #fff;
}

.gst-calc-page .grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  color: #fff;
}

.gst-calc-page .page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1850px;
  margin-inline: auto;
  padding-block: 24px 26px;
  padding-inline: clamp(24px, 5vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(0, 1.36fr);
  gap: clamp(32px, 4vw, 62px);
  align-items: center;
}

.gst-calc-page .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffaaa6;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gst-calc-page .kicker:before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gst-coral);
}

.gst-calc-page .intro h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(2.45rem, 4.25vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
  font-weight: 800;
  text-align: left;
  word-spacing: normal;
}

.gst-calc-page .intro h1 span {
  color: #ff817a;
}

.gst-calc-page .intro-copy {
  max-width: 555px;
  margin: 18px 0 0;
  color: #c8d6e4;
  font-size: 0.94rem;
  line-height: 1.68;
}

.gst-calc-page .proof {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 18px;
  margin-top: 20px;
  color: #c6d5e3;
  font-size: 0.73rem;
  font-weight: 650;
}

.gst-calc-page .proof span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gst-calc-page .proof svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #57dda1;
  stroke-width: 2.4;
}

.gst-calc-page .scope-note {
  margin-top: 22px;
  padding: 13px 15px;
  max-width: 560px;
  border-left: 3px solid var(--gst-coral);
  background: rgba(255, 255, 255, 0.07);
  color: #bdccda;
  font-size: 0.69rem;
  line-height: 1.55;
}

.gst-calc-page .tool {
  min-width: 0;
  max-width: 100%;
  min-height: 625px;
  background: #fff;
  color: var(--gst-ink);
  box-shadow: var(--gst-shadow);
  border-top: 4px solid var(--gst-coral);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.gst-calc-page .tool-head {
  padding: 16px 19px 14px;
  border-bottom: 1px solid var(--gst-line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.gst-calc-page .tool-head small {
  display: block;
  color: var(--gst-coral-dark);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gst-calc-page .tool-head h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  color: var(--gst-ink);
  text-align: left;
}

.gst-calc-page .live-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gst-green);
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
  background: var(--gst-green-soft);
  padding: 7px 9px;
}

.gst-calc-page .live-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.gst-calc-page .mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 11px 19px;
  gap: 7px;
  border-bottom: 1px solid var(--gst-line);
  background: #fbfcfd;
}

.gst-calc-page .mode-tab {
  min-height: 42px;
  border: 1px solid var(--gst-line);
  background: #fff;
  color: var(--gst-muted);
  font-size: 0.67rem;
  font-weight: 800;
  cursor: pointer;
}

.gst-calc-page .mode-tab.active {
  border-color: var(--gst-navy-2);
  background: var(--gst-navy-2);
  color: #fff;
}

.gst-calc-page .workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.78fr);
}

.gst-calc-page .input-pane {
  padding: 18px 19px;
  border-right: 1px solid var(--gst-line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gst-calc-page .pane-kicker {
  color: var(--gst-coral-dark);
  font-size: 0.58rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gst-calc-page .input-pane h3 {
  margin: 5px 0;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--gst-ink);
  text-align: left;
}

.gst-calc-page .input-pane > p {
  margin: 0 0 15px;
  color: var(--gst-muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

.gst-calc-page .amount-field {
  position: relative;
}

.gst-calc-page .amount-field span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gst-muted);
  font-weight: 800;
  font-size: 0.9rem;
  pointer-events: none;
}

.gst-calc-page .amount-input {
  width: 100%;
  height: 54px;
  padding: 0 14px 0 32px;
  border: 1px solid #cfd8e1;
  outline: none;
  color: var(--gst-ink);
  font-size: 1rem;
  font-weight: 800;
  background: #fff;
  border-radius: 0;
}

.gst-calc-page .amount-input:focus {
  border-color: var(--gst-coral);
  box-shadow: 0 0 0 3px rgba(244, 95, 88, 0.12);
}

.gst-calc-page .rate-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 7px;
}

.gst-calc-page .rate-label strong {
  font-size: 0.67rem;
  color: var(--gst-ink);
}

.gst-calc-page .rate-label span {
  font-size: 0.56rem;
  color: var(--gst-muted);
}

.gst-calc-page .rates {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.gst-calc-page .rate-btn {
  min-height: 36px;
  border: 1px solid var(--gst-line);
  background: #fff;
  color: var(--gst-muted);
  font-size: 0.62rem;
  font-weight: 850;
  cursor: pointer;
}

.gst-calc-page .rate-btn.active {
  border-color: var(--gst-coral);
  background: var(--gst-coral-soft);
  color: var(--gst-coral-dark);
  box-shadow: inset 0 0 0 1px var(--gst-coral);
}

.gst-calc-page .custom-rate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.gst-calc-page .field label {
  display: block;
  margin-bottom: 4px;
  color: var(--gst-muted);
  font-size: 0.51rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gst-calc-page .field input,
.gst-calc-page .field select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--gst-line);
  background: #fff;
  color: var(--gst-ink);
  padding: 0 9px;
  outline: none;
  font-size: 0.61rem;
  border-radius: 0;
}

.gst-calc-page .field input:focus,
.gst-calc-page .field select:focus {
  border-color: var(--gst-coral);
}

.gst-calc-page .quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.gst-calc-page .quick-amounts button {
  padding: 6px 8px;
  border: 1px solid var(--gst-line);
  background: #fff;
  color: var(--gst-muted);
  font-size: 0.54rem;
  font-weight: 800;
  cursor: pointer;
}

.gst-calc-page .formula {
  margin-top: auto;
  padding-top: 13px;
}

.gst-calc-page .formula-box {
  padding: 11px;
  border: 1px solid var(--gst-line);
  background: #f7f9fb;
  font-size: 0.57rem;
  line-height: 1.5;
  color: var(--gst-muted);
}

.gst-calc-page .formula-box strong {
  color: var(--gst-ink);
}

.gst-calc-page .result-pane {
  padding: 18px;
  background: #f7f9fb;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gst-calc-page .result-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.gst-calc-page .result-title h3 {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gst-ink);
}

.gst-calc-page .result-title span {
  color: var(--gst-muted);
  font-size: 0.54rem;
}

.gst-calc-page .total-card {
  margin-top: 10px;
  padding: 17px;
  background: var(--gst-navy-2);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.gst-calc-page .total-card small {
  display: block;
  color: #b9c9d7;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.gst-calc-page .total-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
  letter-spacing: -0.045em;
  line-height: 1;
}

.gst-calc-page .total-card p {
  margin: 7px 0 0;
  color: #c8d5e1;
  font-size: 0.56rem;
  line-height: 1.4;
}

.gst-calc-page .breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.gst-calc-page .result-box {
  padding: 11px;
  border: 1px solid var(--gst-line);
  background: #fff;
}

.gst-calc-page .result-box small {
  display: block;
  color: var(--gst-muted);
  font-size: 0.49rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.gst-calc-page .result-box strong {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--gst-ink);
}

.gst-calc-page .tax-split {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--gst-line);
  background: #fff;
}

.gst-calc-page .split-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.gst-calc-page .split-head strong {
  font-size: 0.63rem;
  color: var(--gst-ink);
}

.gst-calc-page .split-head span {
  font-size: 0.5rem;
  color: var(--gst-muted);
}

.gst-calc-page .split-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-block: 7px 7px;
  padding-inline: clamp(24px, 5vw, 96px);
  border-top: 1px solid #edf0f3;
  font-size: 0.58rem;
}

.gst-calc-page .split-row:first-of-type {
  border-top: 0;
}

.gst-calc-page .split-row span {
  color: var(--gst-muted);
}

.gst-calc-page .split-row strong {
  font-size: 0.6rem;
  color: var(--gst-ink);
}

.gst-calc-page .result-note {
  margin-top: 10px;
  padding: 9px;
  border: 1px solid #eed5a8;
  background: var(--gst-amber-soft);
  color: #76500f;
  font-size: 0.54rem;
  line-height: 1.42;
}

.gst-calc-page .result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: auto;
  padding-top: 11px;
}

.gst-calc-page .result-actions button,
.gst-calc-page .result-actions a {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gst-line);
  background: #fff;
  color: var(--gst-ink);
  text-decoration: none;
  font-size: 0.59rem;
  font-weight: 800;
  cursor: pointer;
}

.gst-calc-page .result-actions a {
  color: #fff;
  background: var(--gst-coral);
  border-color: var(--gst-coral);
}

.gst-calc-page .result-actions a:hover {
  background: var(--gst-coral-dark);
  color: #fff;
}

.gst-calc-page .tool-foot {
  padding: 10px 19px;
  border-top: 1px solid var(--gst-line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  font-size: 0.54rem;
  color: var(--gst-muted);
}

.gst-calc-page .tool-foot strong {
  color: var(--gst-ink);
}

@media (max-width: 1120px) {
  .gst-calc-page .hero-tool {
    min-height: auto;
  }

  .gst-calc-page .page-shell {
    grid-template-columns: 1fr;
    padding-block: 42px;
    padding-inline: clamp(24px, 5vw, 96px);
  }

  .gst-calc-page .intro h1,
  .gst-calc-page .intro-copy {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .gst-calc-page .page-shell {
    padding-inline: clamp(16px, 4vw, 24px);
    padding-block: 25px;
    gap: 26px;
  }

  .gst-calc-page .intro h1 {
    font-size: 2.35rem;
  }

  .gst-calc-page .intro-copy {
    font-size: 0.86rem;
  }

  .gst-calc-page .scope-note {
    display: none;
  }

  .gst-calc-page .tool {
    min-height: 760px;
  }

  .gst-calc-page .workspace {
    grid-template-columns: 1fr;
  }

  .gst-calc-page .input-pane {
    border-right: 0;
    border-bottom: 1px solid var(--gst-line);
  }

  .gst-calc-page .result-pane {
    min-height: 330px;
  }
}

@media (max-width: 460px) {
  .gst-calc-page .intro h1 {
    font-size: 2.05rem;
  }

  .gst-calc-page .tool-head,
  .gst-calc-page .mode-tabs,
  .gst-calc-page .input-pane {
    padding-left: 14px;
    padding-right: 14px;
  }

  .gst-calc-page .live-badge {
    display: none;
  }

  .gst-calc-page .rates {
    grid-template-columns: repeat(3, 1fr);
  }

  .gst-calc-page .custom-rate {
    grid-template-columns: 1fr;
  }

  .gst-calc-page .result-actions {
    grid-template-columns: 1fr;
  }

  .gst-calc-page .tool-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gst-calc-page * {
    animation: none !important;
    transition: none !important;
  }
}
