/* ══════════════════════════════════════════════════════════
   GSTBill.app — Page-Specific Styles
   Styles for elements unique to specific content pages
   ══════════════════════════════════════════════════════════ */

/* ── HERO SECTION (old pages) ── */
.hero{padding:0;text-align:center;background:transparent;}
.hero .container{padding:0;}

/* ── CONTENT BOX ── */
.content-box{
  background:var(--gray-bg);
  border-radius:var(--radius);
  padding:20px;margin-bottom:20px;
}
.content-box h2{margin-top:0;}
.content-box h3{margin-top:0;}

/* ── COMPARISON BOX ── */
.comparison-box{
  background:var(--green-pale);
  border-left:4px solid var(--green);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  padding:16px 20px;margin:20px 0;
  font-size:14px;line-height:1.7;
}
.comparison-box h3{color:var(--green-dark);margin-top:0;}
.comparison-box p{color:#374151;}

/* ── INFO BOX ── */
.info-box{
  background:var(--sky);
  border-left:4px solid var(--sky-mid);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  padding:16px 20px;margin:20px 0;
  font-size:14px;line-height:1.7;
}

/* ── FEATURES GRID ── */
.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px;margin:16px 0;
}
.feature{
  background:var(--gray-bg);
  border-radius:var(--radius);
  padding:16px;
  transition:transform .2s;
}
.feature:hover{transform:translateY(-2px);}
.feature h3{font-size:14px;color:var(--dark);margin:0 0 6px;}
.feature p{font-size:12px;color:var(--mid);margin:0;line-height:1.6;}

/* ── DOWNLOADS GRID ── */
.downloads-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;margin:16px 0;
}
.download-card{
  background:var(--white);
  border:1px solid #e5e7eb;
  border-radius:var(--radius);
  padding:16px;text-align:center;
  transition:transform .2s, border-color .2s;
}
.download-card:hover{transform:translateY(-2px);border-color:var(--green);}
.download-card h3{font-size:14px;color:var(--dark);margin:0 0 6px;}
.download-card p{font-size:11px;color:var(--mid);margin:4px 0;line-height:1.5;}
.download-filename{
  display:inline-block;
  font-size:10px;font-weight:600;
  color:var(--green-dark);
  background:var(--green-light);
  padding:2px 8px;border-radius:6px;
  margin-bottom:6px;
}

/* ── BTN STYLES (old pages) ── */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 20px;border-radius:10px;
  font-size:13px;font-weight:600;
  text-decoration:none;transition:all .2s;
  border:none;cursor:pointer;
  font-family:'DM Sans',system-ui,sans-serif;
}
.btn-primary{
  background:var(--green);color:var(--white);
}
.btn-primary:hover{background:var(--green-mid);transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,211,102,.3);}
.btn-secondary{
  background:var(--gray-bg);color:var(--dark);
  border:1px solid #e5e7eb;
}
.btn-secondary:hover{border-color:var(--green);transform:translateY(-1px);}

/* ── CALCULATOR (gst-bill-calculator) ── */
.calculator-box{
  background:var(--white);
  border:2px solid var(--green);
  border-radius:var(--radius);
  padding:24px;margin:20px 0;
}
.form-group{margin-bottom:14px;}
.form-group label{
  display:block;font-size:12px;font-weight:600;
  color:var(--dark);margin-bottom:4px;
}
.form-group input,
.form-group select{
  width:100%;padding:10px 14px;
  border:1px solid #e5e7eb;border-radius:var(--radius-sm);
  font-size:14px;font-family:'DM Sans',system-ui,sans-serif;
  background:var(--white);color:var(--dark);
  transition:border-color .2s;
}
.form-group input:focus,
.form-group select:focus{
  outline:none;border-color:var(--green);
  box-shadow:0 0 0 3px rgba(37,211,102,.15);
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.result-box{
  background:var(--green-pale);
  border-radius:var(--radius);
  padding:16px;margin-top:16px;
}
.result-item{
  display:flex;justify-content:space-between;
  font-size:13px;padding:4px 0;color:#374151;
}
.result-item.total{
  font-weight:700;font-size:15px;color:var(--dark);
  border-top:2px solid var(--green);padding-top:8px;margin-top:4px;
}
.result-note{
  font-size:11px;color:var(--mid);
  margin-top:8px;padding:8px;
  background:var(--white);border-radius:var(--radius-sm);
}

/* ── STEPS LIST ── */
.steps-list{
  list-style:none;counter-reset:step;
  margin:0;padding:0;
}
.steps-list li{
  counter-increment:step;
  position:relative;
  padding:12px 0 12px 40px;
  border-bottom:1px solid #f0f0f0;
  font-size:13px;color:#374151;line-height:1.7;
}
.steps-list li:last-child{border-bottom:none;}
.steps-list li::before{
  content:counter(step);
  position:absolute;left:0;top:12px;
  width:26px;height:26px;border-radius:50%;
  background:var(--green);color:var(--white);
  font-size:12px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
.steps-list li strong{display:block;color:var(--dark);font-size:14px;margin-bottom:2px;}

/* ── HIGHLIGHT / ACCENT SPANS ── */
.highlight{
  background:var(--green-light);
  padding:2px 6px;border-radius:4px;
  font-weight:600;color:var(--green-dark);
}
span.highlight{font-size:inherit;}

/* ── TABLE WRAPPER (overflow scroll) ── */
.table-wrapper{overflow-x:auto;margin:16px 0;}

/* ── INTERNAL LINKS SECTION ── */
.internal-links{
  background:var(--gray-bg);border-radius:var(--radius);
  padding:16px;margin:20px 0;
}
.internal-links h3{font-size:14px;color:var(--dark);margin:0 0 8px;}
.internal-links a{
  display:inline-block;
  font-size:12px;padding:4px 12px;
  background:var(--white);border:1px solid #e5e7eb;
  border-radius:8px;margin:3px;
  color:var(--green-dark);text-decoration:none;
  transition:all .2s;
}
.internal-links a:hover{border-color:var(--green);background:var(--green-pale);}

/* ── WHATSAPP ICON ── */
.whatsapp-icon{width:18px;height:18px;fill:currentColor;}

/* ── OLD ACCENT GREEN VARIABLE COMPAT ── */
:root{--accent-green:#25D366;}

/* ── OLD SPACING VARIABLE COMPAT ── */
:root{
  --spacing-xs:0.5rem;--spacing-sm:1rem;--spacing-md:2rem;
  --spacing-lg:3rem;--spacing-xl:4rem;--spacing-2xl:6rem;
  --radius-md:10px;--radius-lg:16px;
}

/* ── OLD MARGINS ── */
.mt-lg{margin-top:2rem;}
.mb-lg{margin-bottom:2rem;}
.mb-0{margin-bottom:0!important;}

/* ── FAQ TOGGLE (old + style compat) ── */
.faq-toggle{
  font-size:18px;color:var(--mid);font-weight:300;
  flex-shrink:0;transition:transform .2s;
}
.faq-item.active .faq-toggle{transform:rotate(45deg);}

/* ── BLOG POST META ── */
.post-header{margin-bottom:24px;}
.post-content{line-height:1.8;color:#374151;}
.post-content p{margin-bottom:14px;font-size:14px;}
.post-content h2{margin:28px 0 12px;}
.post-content h3{margin:20px 0 8px;}
.post-content ul,.post-content ol{margin:0 0 16px 20px;}
.post-content li{margin-bottom:6px;font-size:14px;}
.post-content strong{color:var(--dark);}
.post-content a{color:var(--green-dark);text-decoration:underline;text-decoration-color:rgba(37,211,102,.3);}

/* ── EXAMPLE BOX ── */
.example-box{
  background:var(--amber);
  border-radius:var(--radius);
  padding:16px;margin:16px 0;
  font-size:13px;line-height:1.7;
}

/* ── MONOSPACE / CODE ── */
pre,code,.code-block{
  font-family:'DM Mono',ui-monospace,monospace;
  font-size:12px;
  background:var(--gray-bg);
  border-radius:var(--radius-sm);
  padding:2px 6px;
}
pre{padding:14px;overflow-x:auto;margin:16px 0;line-height:1.6;}

/* ── FAQ CONTAINER & ITEMS ── */
.faq-container{
  margin:28px 0;
  background:var(--white);
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid #e5e7eb;
}

.faq-item{
  border-bottom:1px solid #f0f0f0;
  transition:background-color .2s;
}

.faq-item:last-child{
  border-bottom:none;
}

.faq-item.active{
  background:var(--gray-bg);
}

.faq-question{
  cursor:pointer;
  padding:18px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  user-select:none;
  transition:background-color .2s;
}

.faq-question:hover{
  background:rgba(37,211,102,.05);
}

.faq-question h4{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:var(--dark);
  flex:1;
}

.faq-toggle{
  font-size:24px;
  color:var(--green);
  font-weight:300;
  flex-shrink:0;
  margin-left:12px;
  transition:transform .3s ease;
}

.faq-item.active .faq-toggle{
  transform:rotate(45deg);
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
}

.faq-item.active .faq-answer{
  max-height:500px;
}

.faq-answer p{
  margin:0;
  padding:0 20px 18px 20px;
  font-size:13px;
  line-height:1.7;
  color:#374151;
}

.faq-answer p:first-child{
  padding-top:0;
}

/* ── STICKY BOTTOM CTA (mobile) ── */
.sticky-cta{
  display:none;
  position:fixed;bottom:0;left:0;right:0;
  background:var(--white);
  border-top:1px solid #e5e7eb;
  padding:10px 16px;
  z-index:99;
  text-align:center;
  box-shadow:0 -2px 10px rgba(0,0,0,.08);
}
.sticky-cta a{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:12px;border-radius:10px;
  background:var(--green);color:var(--white);
  font-size:14px;font-weight:600;text-decoration:none;
  transition:background .2s;
}
.sticky-cta a:hover{background:var(--green-mid);}

/* ── RESPONSIVE OVERRIDES ── */
@media(max-width:600px){
  .features-grid{grid-template-columns:1fr;}
  .downloads-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}

  .sticky-cta{display:block;}
  .page-wrapper{padding-bottom:64px;}

  .faq-question{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .faq-question h4{
    font-size:13px;
  }

  .faq-toggle{
    align-self:flex-end;
    margin-left:0;
    margin-top:-8px;
  }

  .faq-answer p{
    padding:0 16px 16px 16px;
  }
}
