/* ===== B2B PAGE STYLES ===== */

/* Hero */
.b2b-hero {
  min-height: 90vh;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.b2b-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.b2b-hero-bg .shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
  top: -120px; right: -80px;
}
.b2b-hero-bg .shape-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(249,168,37,0.12), transparent);
  bottom: 80px; left: -60px;
}
.b2b-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.b2b-badge { background: rgba(255,255,255,0.15) !important; border-color: rgba(255,255,255,0.3) !important; color: #fff !important; }
.b2b-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}
.b2b-hero-content .hero-sub { color: rgba(255,255,255,0.85); }
.b2b-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}
.b2b-stat { display: flex; flex-direction: column; }
.b2b-stat strong { font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1; }
.b2b-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.b2b-stat-div { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }
.b2b-hero-content .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.b2b-hero-content .btn-outline:hover { background: rgba(255,255,255,0.15); }

.b2b-badges-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.b2b-cert-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.b2b-cert-badge:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Partners */
.partners-section { padding: 90px 0; background: #fff; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.partner-card:hover {
  border-color: var(--green-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.partner-icon { font-size: 2.2rem; margin-bottom: 14px; }
.partner-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.partner-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; margin-bottom: 14px; }
.partner-margin {
  font-size: 0.88rem;
  color: var(--green-dark);
  font-weight: 600;
  background: #fff;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(46,125,50,0.2);
}
.partner-margin strong { font-weight: 900; font-size: 1rem; }

/* Pricing Section */
.pricing-section { padding: 90px 0; background: var(--green-pale); }
.pricing-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: #fff;
  padding: 6px;
  border-radius: 50px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow);
}
.ptab {
  background: none;
  border: none;
  padding: 10px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.3s ease;
}
.ptab.active, .ptab:hover {
  background: var(--green);
  color: #fff;
}
.pricing-panel { display: none; }
.pricing-panel.active { display: block; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pricing-tier {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  border: 2px solid rgba(46,125,50,0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-tier:hover { border-color: var(--green-light); box-shadow: var(--shadow); }
.pricing-tier.featured-tier {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-color: transparent;
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.pricing-tier.featured-tier .tier-qty,
.pricing-tier.featured-tier .tier-row span { color: rgba(255,255,255,0.8); }
.pricing-tier.featured-tier .tier-mrp { color: rgba(255,255,255,0.6); }
.pricing-tier.featured-tier .tier-price { color: #fff; }
.pricing-tier.featured-tier .tier-margin { background: rgba(255,255,255,0.2); color: #fff; }
.pricing-tier.enterprise-tier { border-style: dashed; border-color: var(--gold); }
.tier-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.tier-label { font-size: 1.1rem; font-weight: 900; }
.tier-qty { font-size: 0.82rem; color: var(--text-light); font-weight: 600; }
.tier-products { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tier-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 6px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.82rem;
}
.tier-mrp { text-decoration: line-through; color: #aaa; font-size: 0.75rem; }
.tier-price { font-weight: 800; color: var(--green-dark); }
.tier-margin {
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.pricing-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  background: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(46,125,50,0.1);
}
.pricing-note a { color: var(--green); text-decoration: underline; }

/* Partner Perks */
.partner-benefits-section { padding: 90px 0; background: #fff; }
.partner-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.perk-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 28px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.perk-card:hover {
  border-color: var(--green-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.perk-icon { font-size: 2rem; margin-bottom: 12px; }
.perk-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.perk-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; }

/* B2B Form */
.b2b-form-section {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--green-pale), #e8f5e9);
}
.b2b-form-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 52px;
  box-shadow: var(--shadow-lg);
}
.b2b-form-header { text-align: center; margin-bottom: 40px; }
.b2b-form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 10px;
}
.b2b-form-header p { color: var(--text-light); font-size: 1rem; }
.form-section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--green);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-pale);
}
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.field-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; display: block; }
.product-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.check-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--green-pale);
  border: 1.5px solid rgba(46,125,50,0.2);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.check-opt:hover, .check-opt:has(input:checked) {
  border-color: var(--green);
  background: #fff;
}
.check-opt input { accent-color: var(--green); }
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(46,125,50,0.15);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  color: var(--text);
  transition: border-color 0.3s ease;
}
textarea:focus { outline: none; border-color: var(--green); }
.b2b-pay-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-light);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 20px 0;
  cursor: pointer;
}
.b2b-pay-option input { margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.b2b-pay-option label { cursor: pointer; font-size: 0.9rem; }
.b2b-pay-option label strong { display: block; margin-bottom: 4px; }
.b2b-pay-option label span { font-size: 0.82rem; color: var(--text-light); }

/* GST Invoice Preview */
.gst-section { padding: 90px 0; background: #fff; }
.invoice-preview { max-width: 700px; margin: 0 auto; }
.invoice-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
}
.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px;
  background: var(--green-pale);
  border-bottom: 2px solid #e0e0e0;
}
.inv-brand { font-size: 1.2rem; font-weight: 900; color: var(--green-dark); margin-bottom: 6px; }
.inv-address { font-size: 0.78rem; color: var(--text-light); line-height: 1.6; }
.inv-title { text-align: right; }
.inv-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); }
.inv-num { font-size: 1rem; font-weight: 800; color: var(--text); }
.inv-date { font-size: 0.78rem; color: var(--text-light); }
.inv-bill { padding: 16px 28px; background: #fafafa; border-bottom: 1px solid #eee; }
.inv-bill-to { font-size: 0.82rem; line-height: 1.7; }
.inv-bill-to strong { display: block; margin-bottom: 4px; font-size: 0.78rem; text-transform: uppercase; color: var(--text-light); }
.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th {
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
}
.inv-table td { padding: 10px 16px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.inv-table small { color: var(--text-light); }
.inv-table tfoot td { padding: 8px 16px; font-size: 0.85rem; }
.inv-table tfoot tr:first-child td { border-top: 2px solid #e0e0e0; }
.inv-table tfoot .inv-total td { background: var(--green-dark); color: #fff; font-size: 0.95rem; }
.inv-footer { padding: 12px 28px; font-size: 0.75rem; color: var(--text-light); background: #fafafa; border-top: 1px solid #eee; text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid, .partner-perks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .b2b-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .b2b-badges-wrap { grid-template-columns: repeat(3, 1fr); }
  .b2b-stats { justify-content: center; }
  .partners-grid, .partner-perks-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-tier.featured-tier { transform: none; }
  .b2b-form-wrap { padding: 28px 20px; }
  .form-row.three-col { grid-template-columns: 1fr; }
  .product-checkboxes { grid-template-columns: repeat(2, 1fr); }
  .inv-header { flex-direction: column; gap: 12px; }
  .inv-title { text-align: left; }
}
@media (max-width: 480px) {
  .b2b-badges-wrap { grid-template-columns: repeat(2, 1fr); }
  .product-checkboxes { grid-template-columns: 1fr 1fr; }
}
