/* 
   LESCO Bill Online Check - Style Sheet
   Inspired by https://billonlinecheck.com.pk/
*/

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --accent-green: #198754;
  --brand-color: #2b6cb0;
  --brand-hover: #1a4971;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --placeholder-bg: #111827;
  --placeholder-border: #374151;
  --placeholder-text: #9ca3af;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--brand-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

/* Site Logo Image */
.site-logo {
  height: 54px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Black Logo Placeholder */
.logo-placeholder {
  width: 220px;
  height: 52px;
  background-color: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  user-select: none;
}

.logo-placeholder span {
  color: #60a5fa;
  margin-right: 4px;
}

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

.nav-menu li a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-menu li a:hover,
.nav-menu li.active a {
  color: var(--brand-color);
  background-color: #edf2f7;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
}

/* Featured Image Element */
.featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  display: block;
  object-fit: cover;
}

/* Inline Content Image */
.inline-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 24px 0;
  display: block;
  object-fit: contain;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
}

/* Black General Image Placeholders */
.black-image-placeholder {
  width: 100%;
  background-color: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--placeholder-text);
  padding: 40px 20px;
  text-align: center;
  margin: 24px 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.black-image-placeholder::before {
  content: '📷';
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.black-image-placeholder .placeholder-title {
  color: #f3f4f6;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.black-image-placeholder .placeholder-sub {
  font-size: 13px;
  color: #9ca3af;
}

.featured-image-box {
  min-height: 280px;
}

.inline-image-box {
  min-height: 200px;
}

/* Hero & Bill Checker Tool Box */
.hero-section {
  padding: 40px 0 20px;
}

.checker-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.checker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #2b6cb0, #198754);
}

.checker-title {
  font-size: 26px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.checker-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.search-type-group {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  background: #f1f5f9;
  padding: 10px;
  border-radius: var(--radius-md);
  display: inline-flex;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  user-select: none;
}

.radio-label input[type="radio"] {
  accent-color: var(--brand-color);
  width: 18px;
  height: 18px;
}

.input-group {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
}

.bill-input {
  flex: 1;
  min-width: 260px;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.bill-input:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.btn-submit {
  background-color: var(--brand-color);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background-color: var(--brand-hover);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: #e2e8f0;
  color: var(--text-dark);
  border: none;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}

.input-help {
  font-size: 13px;
  color: var(--text-muted);
}

/* Simulated Bill Result Container */
.bill-result-box {
  display: none;
  background: #ffffff;
  border: 2px solid #2b6cb0;
  border-radius: var(--radius-md);
  margin-top: 24px;
  padding: 24px;
  text-align: left;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bill-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.bill-result-header h3 {
  color: #2b6cb0;
  font-size: 20px;
}

.bill-status-badge {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.bill-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.detail-item {
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.detail-item label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.bill-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Main Content Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 20px 0 60px;
}

.article-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.article-title {
  font-size: 32px;
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 24px;
  color: var(--text-dark);
  font-weight: 700;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #edf2f7;
}

.article-content h3 {
  font-size: 19px;
  color: var(--brand-color);
  font-weight: 600;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  color: var(--text-body);
}

.article-content ul, 
.article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  margin-bottom: 10px;
}

/* FAQ Accordion Styling */
.faq-section {
  margin-top: 30px;
}

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

.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: #ffffff;
  border: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-question::after {
  content: '➕';
  font-size: 14px;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  content: '➖';
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-body);
  border-top: 1px solid #f1f5f9;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Inner Page Hero (About, Contact, Terms, etc.) */
.page-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 50px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p {
  color: #94a3b8;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Form Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  margin-bottom: 24px;
}

.contact-info-item h4 {
  font-size: 16px;
  color: var(--brand-color);
  margin-bottom: 6px;
}

.contact-form-card {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.form-control:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Footer (exact structure matching billonlinecheck.com.pk) */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-left a {
  color: var(--text-dark);
  font-weight: 700;
}

.footer-right ul {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-right a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-right a:hover {
  color: var(--brand-color);
}

/* Mobile Responsive */
@media (max-width: 868px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-right ul {
    justify-content: center;
  }

  .article-content {
    padding: 24px;
  }
}
