/* MEPCO Bill Check - Exact Competitor Design Theme (#2E3E76) */
:root {
  --primary: #2E3E76;
  --primary-dark: #1C274E;
  --primary-light: #3D5199;
  --primary-subtle: #EEF2FF;
  --accent-green: #10B981;
  --accent-green-hover: #059669;
  --accent-yellow: #FFB800;
  --text-dark: #0F172A;
  --text-main: #334155;
  --text-muted: #64748B;
  --bg-body: #F1F5F9;
  --bg-card: #FFFFFF;
  --border-color: #CBD5E1;
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 15px;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header Navbar */
.site-header {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.header-brand .brand-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.header-brand .brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-nav .nav-link {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  text-decoration: none;
}

/* Mobile Menu Toggle Button (hidden by default on desktop) */
.mobile-menu-toggle {
  display: none;
  background: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  align-items: center;
  justify-content: center;
  outline: none;
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.hamburger-icon {
  font-size: 1.45rem;
  line-height: 1;
  color: #0F172A;
  font-weight: 900;
  display: block;
}

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

/* Main Card Wrapper */
.content-wrapper {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #CBD5E1;
  padding: 28px;
}

/* Top H1 Title */
.main-title {
  text-align: center;
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.sub-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Exact Search Tool Design matching User Screenshot */
.search-tool-card {
  max-width: 650px;
  margin: 0 auto 30px auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tool-card-header {
  background: #F8FAFC;
  padding: 16px 24px;
  border-bottom: 1px solid #E2E8F0;
}

.tool-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
}

.tool-card-body {
  padding: 24px;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.radio-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  cursor: pointer;
}

.tool-radio-label input[type="radio"] {
  accent-color: #2563EB;
  width: 18px;
  height: 18px;
}

.input-with-select {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.tool-input-field {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.98rem;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  outline: none;
  background: #FFFFFF;
  box-sizing: border-box;
}

.tool-input-field::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.tool-input-field:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tool-select-field {
  padding: 10px 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #475569;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  flex-shrink: 0;
}

.action-row {
  margin-top: 10px;
}

.tool-search-btn {
  background-color: #475569;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tool-search-btn:hover {
  background-color: #334155;
}

/* History Chips */
.history-section {
  max-width: 560px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.history-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-item {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(46, 62, 118, 0.2);
}

.chip-item:hover {
  background: var(--primary);
  color: white;
}

/* Competitor Signature Blue Banner Section Headers with Black Bottom Line & Rounded Corners */
.section-banner-title {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 6px 16px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 6px;
  border-bottom: 4px solid #000000;
  margin: 28px 0 16px 0;
  letter-spacing: 0.3px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.section-banner-title:first-of-type {
  margin-top: 16px;
}

/* Standard Paragraphs & Typography */
p {
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.7;
}

h3 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

/* Bullet Lists with Custom Styling */
.styled-list {
  list-style: none;
  margin: 16px 0 20px 0;
  padding-left: 0;
}

.styled-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.96rem;
}

.styled-list li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
}

/* Info Callout Box (Light Blue Box) */
.info-callout-box {
  background-color: #EFF6FF;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
}

.info-callout-box p {
  margin-bottom: 0;
  color: #1E3A8A;
  font-size: 0.95rem;
}

/* Two-column card container */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 640px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

.col-card {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
}

.col-card h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Image Showcase Boxes */
.image-showcase {
  text-align: center;
  margin: 24px auto;
  max-width: 720px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.image-showcase img {
  border-radius: 8px;
  margin: 0 auto;
  max-width: 680px;
  width: 100%;
  border: 1px solid #CBD5E1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
}

.image-caption {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Calculator Widget */
.calculator-box {
  background: #F8FAFC;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.calc-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.calc-flex {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .calc-flex {
    flex-direction: column;
  }
}

.calc-flex > div {
  flex: 1;
}

.calc-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
}

.calc-output-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}

.calc-amount-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-green-hover);
  margin: 4px 0;
}

/* Styled Tables */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.custom-table th {
  background-color: var(--primary);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.custom-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.custom-table tr:nth-child(even) {
  background-color: #F8FAFC;
}

/* FAQ Items */
.faq-box {
  margin: 20px 0;
}

.faq-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 10px;
  background: white;
  overflow: hidden;
}

.faq-q {
  background: #F8FAFC;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q:hover {
  background: var(--primary-subtle);
}

.faq-a {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  font-size: 0.94rem;
  display: none;
  background: white;
}

.faq-card.open .faq-a {
  display: block;
}

.faq-card.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.88rem;
}

.site-footer p {
  color: #FFFFFF;
  margin-bottom: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

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

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #E2E8F0;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness Media Queries
   ========================================================================== */

@media (max-width: 992px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
  }

  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 16px !important;
    width: 100% !important;
    position: relative !important;
  }

  .header-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
  }

  .header-brand .brand-logo {
    height: 48px !important;
    width: 48px !important;
  }

  .header-brand .brand-name {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.3px !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .header-nav {
    display: none !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: var(--primary-dark) !important;
    padding: 14px 20px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    gap: 10px !important;
    width: 100% !important;
    z-index: 999 !important;
  }

  .header-nav.active {
    display: flex !important;
  }

  .header-nav .nav-link {
    font-size: 1.05rem !important;
    padding: 10px 16px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
  }

  .header-nav .nav-link:hover,
  .header-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.22) !important;
  }

  .main-container {
    padding: 0 8px !important;
    margin: 12px auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .content-wrapper {
    padding: 16px 10px !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  h1, .main-title {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    margin: 12px 0 !important;
    word-wrap: break-word !important;
  }

  .section-banner-title {
    font-size: 1.05rem !important;
    padding: 8px 10px !important;
    margin: 18px 0 12px 0 !important;
    border-bottom-width: 3px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .search-tool-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    border-radius: 8px !important;
  }

  .tool-card-header {
    padding: 12px 14px !important;
  }

  .tool-card-header h3 {
    font-size: 1.05rem !important;
  }

  .tool-card-body {
    padding: 14px 10px !important;
  }

  .tool-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .radio-col {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }

  .tool-radio-label {
    font-size: 0.9rem !important;
  }

  .input-with-select {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .tool-input-field {
    font-size: 0.88rem !important;
    padding: 10px 8px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .tool-select-field {
    font-size: 0.88rem !important;
    padding: 10px 8px !important;
    flex-shrink: 0 !important;
  }

  .tool-search-btn {
    width: 100% !important;
    padding: 12px !important;
    font-size: 1rem !important;
  }

  .image-showcase {
    max-width: 100% !important;
    width: 100% !important;
    padding: 6px !important;
    margin: 16px auto !important;
    box-sizing: border-box !important;
  }

  .image-showcase img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
  }

  .custom-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .site-footer {
    padding: 24px 10px !important;
    width: 100% !important;
  }

  .footer-inner {
    padding: 0 8px !important;
    width: 100% !important;
  }

  .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 12px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
  }

  .footer-links a {
    font-size: 0.85rem !important;
    color: #FFFFFF !important;
  }

  .footer-sep {
    display: none !important;
  }

  .site-footer p {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
    color: #FFFFFF !important;
  }

  .modal-box {
    padding: 16px !important;
    max-width: 95% !important;
  }
}

@media (max-width: 480px) {
  .header-brand .brand-logo {
    height: 38px !important;
    width: 38px !important;
  }

  .header-brand .brand-name {
    font-size: 1.2rem !important;
  }

  .radio-col {
    flex-direction: row !important;
    gap: 12px !important;
  }

  h1, .main-title {
    font-size: 1.15rem !important;
  }

  .section-banner-title {
    font-size: 0.95rem !important;
  }
}
