/* HAZECO Bill Online - Clean White Theme with Navy Header & Centered Search Button */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-navy: #0b1f3a;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-green: #059669;
  --btn-red: #dc2626;
  --btn-red-hover: #b91c1c;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: all 0.2s ease-in-out;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.75;
  font-size: 1rem;
}

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

a:hover {
  color: var(--accent-gold);
}

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

/* Header Navigation Bar (Matches User Screenshot: Dark Navy + Gold) */
.header-nav-bar {
  background-color: var(--primary-navy);
  border-bottom: 3px solid var(--accent-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Logo Far Left - Vertically Centered */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  height: 100%;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #f59e0b 0%, #d97706 70%);
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.brand-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Right Navigation Menu - Perfectly Centered Vertically */
.right-nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.right-nav-menu li {
  display: flex;
  align-items: center;
  height: 100%;
}

.right-nav-menu li a {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 6px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.right-nav-menu li a.active, .right-nav-menu li a.pill-active {
  background-color: #1a365d;
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.right-nav-menu li a:hover {
  color: var(--accent-gold);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
}

/* Main White Article Wrapper */
.main-content {
  padding: 35px 0 60px 0;
}

.article-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

/* Hero / Checker Tool Card with Middle-Aligned Centered Button */
.checker-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 35px 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.checker-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.checker-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.search-form-center {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.input-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.input-field-box {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1.05rem;
  outline: none;
  transition: var(--transition);
  text-align: center;
}

.input-field-box:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Middle-Aligned Centered Red CTA Button */
.btn-check-red-center {
  background-color: var(--btn-red);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 42px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-check-red-center:hover {
  background-color: var(--btn-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.input-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Article Styling */
.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-intro {
  font-size: 1.08rem;
  color: var(--text-body);
  margin-bottom: 25px;
}

h2.section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 38px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-gold);
}

h3.sub-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 25px 0 12px 0;
}

p {
  margin-bottom: 16px;
}

ul, ol {
  margin: 0 0 20px 25px;
}

li {
  margin-bottom: 8px;
}

/* Separated Image Block */
.image-container-block {
  margin: 35px 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.image-container-block img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption-text {
  padding: 16px 20px;
  background-color: #f8fafc;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  border-top: 1px solid var(--border-color);
}

/* Table Styling */
.table-responsive {
  overflow-x: auto;
  margin: 25px 0;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 1px solid var(--border-color);
}

.custom-table th, .custom-table td {
  padding: 14px;
  border: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.95rem;
}

.custom-table th {
  background-color: var(--primary-navy);
  color: white;
  font-weight: 700;
}

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

/* FAQ Accordion Light Mode */
.faq-block {
  margin-top: 35px;
}

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

.faq-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
}

.faq-header:hover {
  color: var(--accent-gold);
}

.faq-body {
  padding: 16px 20px;
  color: var(--text-body);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  display: none;
}

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

/* Modal View */
.bill-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 31, 58, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.bill-modal {
  background-color: white;
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.bill-modal-header {
  background-color: var(--primary-navy);
  color: white;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-gold);
}

.bill-modal-body {
  padding: 24px;
}

.btn-print {
  background-color: var(--accent-green);
  color: white;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-close {
  background-color: #cbd5e1;
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.alert-box {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  display: none;
  text-align: center;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Footer */
.footer {
  background-color: var(--primary-navy);
  color: #cbd5e1;
  padding: 45px 0 20px 0;
  margin-top: 50px;
  border-top: 4px solid var(--accent-gold);
}

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

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #cbd5e1;
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1e3a5f;
  padding-top: 20px;
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 768px) {
  .article-wrapper {
    padding: 20px;
  }
  .right-nav-menu {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: var(--primary-navy);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-bottom: 3px solid var(--accent-gold);
    height: auto;
  }
  .right-nav-menu.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
