/* GST Calculator — Razorpay-inspired layout */
.gst-page { padding-top: 28px; padding-bottom: 40px; }

.gst-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.gst-calc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

.gst-form__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.gst-form__hint {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: #64748b;
}

.gst-field { margin-bottom: 20px; }

.gst-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.gst-rate-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gst-rate-pill {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gst-rate-pill:hover { border-color: #2563eb; color: #2563eb; }

.gst-rate-pill.is-active {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.gst-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.gst-input-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.gst-input-prefix,
.gst-input-suffix {
  padding: 0 12px;
  color: #64748b;
  font-weight: 600;
  background: #f8fafc;
}

.gst-input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.gst-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
}

.gst-link-btn {
  border: none;
  background: none;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

.gst-profit-wrap { margin-top: 12px; }

.gst-toggle-group { display: grid; gap: 8px; }

.gst-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #334155;
}

.gst-toggle:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.gst-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.gst-summary__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
}

.gst-summary__item span {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0;
}

.gst-summary__item strong {
  font-size: 1rem;
  color: #0f172a;
}

.gst-summary__item--total {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.gst-summary__item--total strong {
  color: #1e40af;
  font-size: 1.1rem;
}

.gst-breakup {
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.gst-breakup h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #0f172a;
}

.gst-breakup__note {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #64748b;
}

.gst-breakup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.gst-breakup-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.gst-breakup-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.gst-breakup-table__total td {
  border-bottom: none;
  font-weight: 800;
  color: #1e40af;
}

.gst-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.gst-aside-card--results h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: #0f172a;
}

.gst-results-empty {
  margin: 0 0 12px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
}

.gst-aside-card.is-empty .gst-summary,
.gst-aside-card.is-empty .gst-breakup {
  opacity: 0.35;
  pointer-events: none;
}

.gst-aside-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

.gst-aside-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.gst-aside-card p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}

.gst-aside-card--cta .btn { width: 100%; text-align: center; }

.gst-extras {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.gst-extra-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.gst-extra-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #0f172a;
}

.gst-extra-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.gst-formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.gst-formula-label {
  margin: 0 0 6px !important;
  font-weight: 700;
  color: #1e40af !important;
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gst-extra-card--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-color: #bfdbfe;
}

.gst-extra-card--cta .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.gst-info {
  background: #f8fafc;
  padding-top: 40px;
  padding-bottom: 48px;
}

.gst-info h2, .gst-info h3, .gst-info h4 {
  color: #0f172a;
}

.gst-info p {
  color: #475569;
  line-height: 1.65;
}

.gst-slabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.gst-slab {
  background: #1e40af;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.gst-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.gst-info-grid article {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e2e8f0;
}

.gst-faq {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.gst-faq summary {
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
}

.gst-faq p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .gst-layout { grid-template-columns: 1fr; }
  .gst-aside { position: static; }
  .gst-extras { grid-template-columns: 1fr; }
  .gst-formula-grid { grid-template-columns: 1fr; }
  .gst-extra-card--cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .gst-extra-card--cta .btn { width: 100%; text-align: center; }
  .gst-info-grid { grid-template-columns: 1fr; }
}
