html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  background: #f6f8fb;
  color: #111;
}

/* Header – match other pages (dark bar, nav, hamburger on mobile) */
.top-header.charges-header {
  background-color: #0d1117;
  border-bottom: 1px solid #30363d;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.charges-header .header-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
}

.charges-header .cxhacks-logo {
  display: flex;
  align-items: center;
}

.charges-header .cxhacks-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.charges-header .blog-logo {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  object-fit: contain;
}

.charges-header .text-logo {
  color: #c9d1d9;
  font-size: 1.25rem;
  font-weight: 600;
}

.charges-header .main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.charges-header .main-nav a {
  color: #c9d1d9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.charges-header .main-nav a:hover,
.charges-header .main-nav a.active {
  color: #58a6ff;
  border-bottom-color: #58a6ff;
}

.charges-header .mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}

.charges-header .mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #c9d1d9;
  margin: 4px 0;
  transition: transform 0.3s ease;
}

.charges-header .mobile-nav-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: #161b22;
  padding: 1rem;
  border-bottom: 1px solid #30363d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.charges-header .mobile-nav-menu.active {
  display: block;
}

.charges-header .mobile-nav-menu a {
  display: block;
  color: #c9d1d9;
  text-decoration: none;
  padding: 12px 20px;
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid #30363d;
}

.charges-header .mobile-nav-menu a:last-child {
  border-bottom: none;
}

.charges-header .mobile-nav-menu a:hover {
  background-color: #1f242c;
  color: #58a6ff;
}

.charges-header .mobile-nav-menu a.active {
  background-color: #212830;
  border-left: 4px solid #58a6ff;
  color: #58a6ff;
  padding-left: 16px;
}

main {
  padding-bottom: 48px;
}

.hero-section {
  background: linear-gradient(135deg, #f7fbff 0%, #eef4ff 52%, #ffffff 100%);
  border-bottom: 1px solid #e3e8ef;
}

.hero-panel,
.calculator-section,
.notes-section {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: stretch;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 760px;
}

.hero-copy p,
.section-header p,
.calc-description,
.summary-note,
.notes-card li {
  color: #52606d;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0057b8;
}

.summary-card,
.calc-card,
.notes-card {
  background: #ffffff;
  border: 1px solid #dce3eb;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.summary-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7682;
}

.summary-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 10px 0 12px;
  color: #0b1f33;
}

.calculator-section {
  padding-top: 40px;
}

.section-header h2,
.notes-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.section-header {
  margin-bottom: 24px;
}

.section-header-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.75rem;
}

.section-heading p {
  margin: 4px 0 0;
  color: #52606d;
}

.baseline-panel {
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.baseline-panel h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.baseline-note {
  margin: 0 0 14px;
  color: #52606d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.baseline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.baseline-panels {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.baseline-panels .baseline-panel {
  flex: 1 1 280px;
}

.baseline-grid label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #253443;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.baseline-grid input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cfd8e3;
  font-size: 0.95rem;
  background: #f7fafc;
}

.service-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.service-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6dfe8;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: #253443;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.service-option input {
  margin: 0;
}

.free-tier-toggle {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: #253443;
}

.free-tier-toggle label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.free-tier-toggle input {
  width: 18px;
  height: 18px;
}

.free-tier-status {
  margin: 0;
  font-size: 0.85rem;
  color: #0b1f33;
  font-weight: 600;
}

.result-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #0057b8;
  font-weight: 600;
}

.empty-state {
  margin: 20px 0 0;
  color: #6a7682;
  font-size: 0.95rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.calc-card {
  padding: 24px;
}

.calc-card.is-hidden {
  display: none;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.calc-header h3 {
  margin: 6px 0 0;
  font-size: 1.15rem;
}

.calc-header i {
  color: #0057b8;
  font-size: 1.2rem;
  margin-top: 4px;
}

.calc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0057b8;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.field-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #253443;
}

.field-label-text {
  min-height: 2.8em;
  display: flex;
  align-items: flex-end;
  line-height: 1.4;
}

.field-grid input {
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #111;
  background: #ffffff;
}

.field-grid input:focus {
  outline: none;
  border-color: #0057b8;
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.12);
}

.result-row {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e4eaf1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.result-row span {
  color: #52606d;
}

.result-row strong {
  font-size: 1.2rem;
  color: #0b1f33;
}

.sub-result {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #52606d;
}

.sub-result strong {
  color: #0b1f33;
}

.calc-footnote {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: #6a7682;
}

.calc-notes {
  margin-top: 14px;
}

.calc-notes a {
  color: #0057b8;
  text-decoration: none;
}

.calc-notes a:hover {
  text-decoration: underline;
}

.notes-section {
  padding-top: 28px;
}

.notes-card {
  padding: 24px;
}

.notes-card ul {
  margin: 0;
  padding-left: 20px;
}

.notes-card li + li {
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .section-header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile header – hamburger + dropdown like other pages */
@media (max-width: 768px) {
  .charges-header .main-nav {
    display: none;
  }

  .charges-header .mobile-nav-toggle {
    display: block;
  }

  .charges-header .text-logo {
    display: none;
  }

  .charges-header .blog-logo {
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  .charges-header .header-inner,
  .hero-panel,
  .calculator-section,
  .notes-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .summary-card,
  .calc-card,
  .notes-card {
    border-radius: 14px;
  }
}
