/* ==========================================================================
   IESCO Online Bill Check 2026 - Modern Stylesheet (iescobill.net.pk)
   ========================================================================== */

:root {
  --primary: #006039;
  --primary-hover: #004d2b;
  --primary-light: #e8f5e9;
  --primary-gradient: linear-gradient(135deg, #007e48 0%, #004d2b 100%);
  --accent-gold: #e5a93c;
  --accent-gold-light: #fff8e7;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --bg-page: #f8faf9;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-active: #006039;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 96, 57, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Header & Top Bar */
.top-bar {
  background: #004d2b;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-badge {
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(0, 96, 57, 0.2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-btn::after {
  display: none !important;
}

.header-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 96, 57, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 50px 0 40px;
  background: linear-gradient(180deg, #eaf6f0 0%, var(--bg-page) 100%);
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  max-width: 900px;
  margin: 0 auto 16px;
  color: #043922;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 500;
}

/* ==========================================================================
   Interactive Tool Card (Matched to User Screenshot)
   ========================================================================== */

.tool-card-wrapper {
  max-width: 820px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 10;
}

.tool-card {
  background: var(--bg-card);
  border: 2px solid #006039;
  border-radius: 24px;
  padding: 36px 32px 32px;
  box-shadow: 0 20px 50px rgba(0, 96, 57, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f5e9;
  color: #006039;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(0, 96, 57, 0.15);
}

.tool-card h2 {
  font-size: 1.85rem;
  color: #064026;
  margin-bottom: 8px;
}

.tool-card p.tool-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.tool-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 6px;
  border-radius: var(--radius-md);
  gap: 6px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 12px 18px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background: #006039;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 96, 57, 0.25);
}

.input-group-container {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.input-box {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #006039;
  border-radius: var(--radius-md);
  padding: 0 16px;
  transition: var(--transition);
}

.input-box:focus-within {
  border-color: #007e48;
  box-shadow: 0 0 0 4px rgba(0, 96, 57, 0.15);
}

.input-icon {
  font-size: 1.3rem;
  color: #006039;
  margin-right: 12px;
}

.input-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 14px 0;
  background: transparent;
}

.input-box input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.95rem;
}

.digit-counter {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 8px;
  white-space: nowrap;
}

.btn-check-bill {
  background: #006039;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 28px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  box-shadow: 0 6px 18px rgba(0, 96, 57, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-check-bill:hover {
  background: #004d2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 96, 57, 0.4);
}

.sample-ref-wrapper {
  margin-top: 16px;
}

.btn-sample-ref {
  background: #fff8e7;
  border: 1px solid #f5d061;
  color: #855300;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-sample-ref:hover {
  background: #fef0c7;
  transform: scale(1.02);
}

/* Bill Modal Result Box */
.bill-result-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bill-result-modal.active {
  display: flex;
}

.result-card-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

.result-header {
  text-align: center;
  margin-bottom: 24px;
}

.result-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #006039;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.result-details-grid {
  background: #f8faf9;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-item label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.detail-item span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-modal-action {
  flex: 1;
  min-width: 140px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary-action {
  background: #006039;
  color: #fff;
}

.btn-primary-action:hover {
  background: #004d2b;
}

.btn-secondary-action {
  background: #f1f5f9;
  color: var(--text-dark);
}

.btn-secondary-action:hover {
  background: #e2e8f0;
}

/* Quick Features Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: #006039;
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: #e8f5e9;
  color: #006039;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}

.stat-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.stat-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Content Sections Styling */
.content-section {
  padding: 50px 0;
}

.bg-white {
  background: #ffffff;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #043922;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
  margin-top: 8px;
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.step-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: #006039;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: #006039;
  color: #ffffff;
  font-weight: 800;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 96, 57, 0.2);
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Image Cards Showcase */
.image-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.image-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #006039;
}

.image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.image-card-body {
  padding: 20px;
}

.image-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #006039;
}

.image-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Table Breakdown */
.info-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
}

.info-table th {
  background: #006039;
  color: #ffffff;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

.info-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.info-table tr:hover td {
  background: #f8faf9;
}

/* Payment Methods List Grid */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.payment-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.payment-card i {
  font-size: 1.5rem;
  color: #006039;
}

/* FAQ Accordion Section */
.faq-section {
  background: #f8faf9;
  padding: 60px 0;
}

.faq-search-box {
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}

.faq-search-box input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.faq-search-box input:focus {
  border-color: #006039;
  box-shadow: 0 0 0 4px rgba(0, 96, 57, 0.1);
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: #006039;
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  user-select: none;
}

.faq-header:hover {
  color: #006039;
}

.faq-icon {
  font-size: 1.2rem;
  color: #006039;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 24px;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-body {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* Regional Grid */
.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.city-badge {
  background: #ffffff;
  border: 1px solid #006039;
  color: #006039;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Footer */
.main-footer {
  background: #00331c;
  color: #e2e8f0;
  padding: 60px 0 20px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-gold);
  margin-top: 6px;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #006039;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-4px);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .tool-card {
    padding: 24px 16px;
  }
  
  .tool-card h2 {
    font-size: 1.4rem;
  }
  
  .tool-tabs {
    flex-direction: column;
  }
  
  .input-group-container {
    flex-direction: column;
  }
  
  .btn-check-bill {
    width: 100%;
  }

  .result-details-grid {
    grid-template-columns: 1fr;
  }
}
