/* Service Pages Styles - HydroLux Water Systems */
/* Version: 1.0.0 */

/* Service Hero Section */
.service-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.service-hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.service-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-hero-text .lead {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.service-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.service-hero-image {
    position: relative;
}

.service-hero-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    background: transparent;
}

.service-hero-image:hover img {
    transform: scale(1.02);
}

/* Hero Button Overrides */
.service-hero .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
    backdrop-filter: blur(10px);
}

.service-hero .btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

/* Ensure hero clears fixed header on mobile (with or without breadcrumbs) */
@media (max-width: 768px) {
  /* Reduce overall hero top padding on mobile */
  .service-hero { padding-top: 1.5rem !important; }

  /* Case 1: Hero is the first section after header */
  body.service-page header + .service-hero { margin-top: 0; }
  /* Case 2: Breadcrumbs exist between header and hero; avoid double-spacing */
  body.service-page header ~ .service-hero { margin-top: 0; }
  body.service-page header ~ .breadcrumbs-wrapper + .service-hero { margin-top: 0; }

  /* Clear the fixed 100px header for all main content on service pages */
  body.service-page .main-content { padding-top: 100px !important; }

  /* Remove previous H1 padding hack to avoid double spacing */
  body.service-page .main-content > .service-hero .service-hero-text h1 { padding-top: 0 !important; }
}

/* Water Quality Alert */
.water-quality-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-text h3 {
    color: #92400e;
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.alert-text p {
    color: #92400e;
    margin: 0;
    font-size: 1.125rem;
}

/* Mobile: tighten water quality alert side padding */
@media (max-width: 768px) {
  .water-quality-alert { padding: var(--spacing-lg) var(--spacing-sm) !important; }
  .alert-content { gap: var(--spacing-md); }
}

/* Contaminants Grid */
.contaminants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.contaminant-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contaminant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Modern top accent bar instead of left accent */
.contaminant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
}

.contaminant-card.danger::before { background: #dc2626; }
.contaminant-card.warning::before { background: #f59e0b; }

.contaminant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.contaminant-header h4 {
    color: var(--dark-gray);
    margin: 0;
    font-size: 1.25rem;
    flex: 1 1 auto;
    min-width: 0;
}

.contaminant-header .status-badge {
    flex: 0 0 auto;
}

/* Mobile: tighten contaminants grid and card padding */
@media (max-width: 768px) {
  .contaminants-grid { gap: var(--spacing-md) !important; grid-template-columns: 1fr !important; }
  .contaminant-card { padding: var(--spacing-md) var(--spacing-sm) !important; }
}

/* Refined status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(220, 38, 38, 0.07);
    color: #b91c1c;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(220, 38, 38, 0.22);
    box-shadow: 0 1px 1px rgba(0,0,0,0.03);
}

.contaminant-card.warning .status-badge {
    background: rgba(245, 158, 11, 0.09);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.3);
}

.contaminant-description {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.health-effects {
    padding: var(--spacing-md);
    background: #fef2f2;
    border-radius: var(--radius-md);
    color: #991b1b;
    font-size: 0.875rem;
}

.contaminant-card.warning .health-effects {
    background: #fffbeb;
    color: #92400e;
}

/* Problem Solution Grid */
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
    margin-bottom: var(--spacing-2xl);
}

.problem-content,
.solution-content {
    padding: var(--spacing-xl);
}

.problem-content h2,
.solution-content h2 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
    font-weight: 700;
}

.problem-content p,
.solution-content p {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Enhanced Problem List Styling */
.problem-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #fff 0%, #fef7f7 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(220, 38, 127, 0.1), 0 2px 4px -1px rgba(220, 38, 127, 0.06);
    border: 1px solid rgba(220, 38, 127, 0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.problem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--danger-red) 0%, #ff6b9d 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(220, 38, 127, 0.25), 0 8px 10px -6px rgba(220, 38, 127, 0.1);
    border-color: rgba(220, 38, 127, 0.2);
}

.problem-item:hover::before {
    transform: scaleX(1);
}

.problem-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 127, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(220, 38, 127, 0.2);
}

.problem-item .problem-content {
    padding: 0;
    flex: 1;
}

.problem-item .problem-content h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

.problem-item .problem-content p {
    color: var(--dark-gray);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Enhanced Solution Features Styling */
.solution-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.1), 0 2px 4px -1px rgba(30, 58, 138, 0.06);
    border: 1px solid rgba(30, 58, 138, 0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(20px, 20px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.25), 0 8px 10px -6px rgba(30, 58, 138, 0.1);
    border-color: rgba(30, 58, 138, 0.2);
}

.feature-item:hover::after {
    transform: translate(10px, 10px) scale(1.2);
    background: radial-gradient(circle, rgba(30, 58, 138, 0.08) 0%, transparent 70%);
}

/* =============================== */
/* Whole House Page CTA Overrides  */
/* Remove constrained widths only for this service page */
.whole-house-filter-page .cta-content {
    max-width: none !important;
    padding-left: var(--spacing-2xl);
    padding-right: var(--spacing-2xl);
}

.whole-house-filter-page .cta-section .lead {
    max-width: none !important;
}

/* Ensure buttons wrap nicely across full width */
.whole-house-filter-page .cta-buttons {
    flex-wrap: wrap;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    color: var(--primary-blue);
    border: 2px solid rgba(30, 58, 138, 0.2);
    font-weight: 700;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-content p {
    color: var(--dark-gray);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Legacy list styling for backward compatibility */
.problem-list li,
.solution-list li {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.problem-list li {
    background: #fef2f2;
    color: #991b1b;
}

.solution-list li {
    background: #f0f9ff;
    color: var(--primary-blue);
}

.problem-list li::before {
    content: '❌';
    flex-shrink: 0;
}

.solution-list li::before {
    content: '✅';
    flex-shrink: 0;
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.system-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.system-card.featured {
    border-color: var(--primary-blue);
}

.system-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.system-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.system-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.system-card:hover .system-image img {
    transform: scale(1.05);
}

.system-content {
    padding: var(--spacing-xl);
}

/* Mobile: tighten system cards padding and grid spacing */
@media (max-width: 768px) {
  /* Reduce outer container gutters for this section */
  .section.section-alt > .container { padding-left: var(--spacing-sm) !important; padding-right: var(--spacing-sm) !important; }

  /* Reduce grid gap and force single column for tighter layout */
  .systems-grid { gap: var(--spacing-md) !important; grid-template-columns: 1fr !important; }

  /* Reduce card and inner content padding */
  .systems-grid .system-card { padding: var(--spacing-md) !important; border-radius: var(--radius-lg) !important; }
  .systems-grid .system-card .system-content { padding: var(--spacing-sm) !important; }

  /* Prevent badge label from overlapping the title on mobile */
  .systems-grid .system-card .system-badge {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 0 0 var(--spacing-sm) 0 !important;
    display: inline-block !important;
  }
}

.system-content h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.system-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.system-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.system-features li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Removed duplicate checkmarks - HTML already contains checkmark emojis */

/* Enhanced Savings Calculator */
.savings-calculator {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.savings-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, #3b82f6 50%, #60a5fa 100%);
}

.savings-calculator h3 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xl);
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
}

.savings-calculator h3::after {
    content: '💰';
    margin-left: var(--spacing-sm);
    font-size: 1.5rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.calculator-grid.results-active {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.calculator-inputs {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.calculator-inputs h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.inputs-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.input-group label {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.input-group label::before {
    content: '▶';
    color: var(--secondary-blue);
    font-size: 0.75rem;
}

.input-group input,
.input-group select {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.input-group input:hover,
.input-group select:hover {
    border-color: rgba(30, 58, 138, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculate-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-lg);
    width: 100%;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(30, 58, 138, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

.savings-results {
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(30, 58, 138, 0.1);
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    overflow: hidden;
}

.calculator-grid.results-active .savings-results {
    opacity: 1;
    transform: translateX(0);
}

.savings-results::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.savings-results h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.savings-results h4::before {
    content: '📊';
    font-size: 1.25rem;
}

.savings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: 0.25rem;
    background: rgba(30, 58, 138, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(30, 58, 138, 0.05);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.savings-item:hover {
    background: rgba(30, 58, 138, 0.05);
    transform: translateX(4px);
}

.savings-item:last-child {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
}

.savings-item:last-child:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.15) 100%);
    transform: translateX(6px);
}

.savings-value {
    font-weight: 600;
    color: #059669;
}

.savings-item:last-child .savings-value {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* Special emphasis for 10-year inflation savings */
.savings-highlight {
    background: var(--white) !important;
    border: 3px solid #10b981 !important;
    margin: var(--spacing-lg) 0 !important;
    padding: var(--spacing-xl) !important;
    border-radius: var(--radius-xl) !important;
    position: relative;
    overflow: visible;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.02);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--white);
    z-index: 11;
}

.savings-highlight::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border: 2px solid #10b981;
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.savings-highlight:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.savings-mega {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #059669 !important;
    text-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
    letter-spacing: -0.5px;
}

.savings-highlight span:first-child {
    font-size: 1.1rem !important;
    color: #047857 !important;
    font-weight: 700 !important;
}

/* Subtle disclosure styling */
.savings-disclosure {
    text-align: center;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    color: #6b7280;
    font-style: italic;
    opacity: 0.8;
}

.savings-disclosure small {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Process Steps Styling */
.process-steps {
    display: grid;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 58, 138, 0.2);
}

.step-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover::before {
    opacity: 1;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.2);
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(30, 58, 138, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.step-content p {
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Process Steps Responsive Design */
@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl) var(--spacing-2xl);
    }
    
    .step-item:nth-child(odd) {
        margin-right: var(--spacing-md);
    }
    
    .step-item:nth-child(even) {
        margin-left: var(--spacing-md);
    }
}

@media (min-width: 1200px) {
    .process-steps {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: var(--spacing-2xl);
    }
    
    .step-item:nth-child(odd),
    .step-item:nth-child(even) {
        margin: 0;
    }
    
    /* First row: 3 items spanning 2 columns each */
    .step-item:nth-child(1) {
        grid-column: 1 / 3;
    }
    
    .step-item:nth-child(2) {
        grid-column: 3 / 5;
    }
    
    .step-item:nth-child(3) {
        grid-column: 5 / 7;
    }
    
    /* Second row: 2 items centered, spanning 2 columns each with 1 column gap on each side */
    .step-item:nth-child(4) {
        grid-column: 2 / 4;
    }
    
    .step-item:nth-child(5) {
        grid-column: 4 / 6;
    }
}

@media (max-width: 767px) {
    .step-item {
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
}

/* Bacteria Treatment Page Styling */

/* Danger Alert Section */
.danger-alert {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.danger-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
    animation: pulse 2s ease-in-out infinite;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.alert-icon {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

.alert-text h3 {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-text p {
    color: #7f1d1d;
    font-size: 1.1rem;
    margin: 0;
}

/* Bacteria Dangers Grid */
.bacteria-dangers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.danger-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.danger-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    opacity: 0.08;
    border-radius: 50%;
    transform: rotate(45deg);
}

.danger-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0.8;
}

.danger-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Danger Card Types - Creative Visual Styling */
.danger-card.critical {
    background: linear-gradient(135deg, #fef2f2 0%, var(--white) 30%, var(--white) 100%);
}

.danger-card.critical::before {
    background: radial-gradient(circle, #dc2626 0%, #ef4444 50%, transparent 70%);
}

.danger-card.critical::after {
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
}

.danger-card.critical .danger-level {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.danger-card.high {
    background: linear-gradient(135deg, #fff7ed 0%, var(--white) 30%, var(--white) 100%);
}

.danger-card.high::before {
    background: radial-gradient(circle, #ea580c 0%, #f97316 50%, transparent 70%);
}

.danger-card.high::after {
    background: linear-gradient(90deg, #ea580c, #f97316, #fb923c);
}

.danger-card.high .danger-level {
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.danger-card.moderate {
    background: linear-gradient(135deg, #fffbeb 0%, var(--white) 30%, var(--white) 100%);
}

.danger-card.moderate::before {
    background: radial-gradient(circle, #d97706 0%, #f59e0b 50%, transparent 70%);
}

.danger-card.moderate::after {
    background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
}

.danger-card.moderate .danger-level {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.danger-card.warning {
    background: linear-gradient(135deg, #fefce8 0%, var(--white) 30%, var(--white) 100%);
}

.danger-card.warning::before {
    background: radial-gradient(circle, #ca8a04 0%, #eab308 50%, transparent 70%);
}

.danger-card.warning::after {
    background: linear-gradient(90deg, #ca8a04, #eab308, #facc15);
}

.danger-card.warning .danger-level {
    background: linear-gradient(135deg, #ca8a04, #eab308);
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.3);
}

.danger-card.info {
    background: linear-gradient(135deg, #f0f9ff 0%, var(--white) 30%, var(--white) 100%);
}

.danger-card.info::before {
    background: radial-gradient(circle, var(--primary-blue) 0%, var(--secondary-blue) 50%, transparent 70%);
}

.danger-card.info::after {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), #60a5fa);
}

.danger-card.info .danger-level {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Danger Card Content */
.danger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.danger-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}

.danger-level {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.danger-content p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.symptoms, .at-risk {
    background: rgba(0, 0, 0, 0.02);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-gray);
}

.symptoms strong, .at-risk strong {
    color: var(--dark-gray);
    font-weight: 600;
}

/* Tennessee Issues Section */
.tennessee-issues {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.issue-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.issue-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.issue-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.issue-card h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.issue-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Treatment Systems Grid */
.treatment-systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
}

.treatment-system {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.treatment-system::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.treatment-system:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.treatment-system:hover::before {
    transform: scaleX(1);
}

.system-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.system-header h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.system-price {
    color: var(--dark-gray);
    font-size: 1.25rem;
    font-weight: 700;
}

.system-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.system-features li {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.system-features li:last-child {
    border-bottom: none;
}

.system-features li::before {
    content: '✓';
    color: var(--primary-blue);
    font-weight: bold;
    margin-right: var(--spacing-md);
    font-size: 1.1rem;
}

/* How UV Works Section */
.uv-process {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.process-step {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.process-step h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.process-step p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Contamination Sources Section */
.contamination-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.source-item {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.source-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.source-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.source-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.source-content h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.source-content p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Testing Importance Section */
.testing-importance {
    background: linear-gradient(135deg, #fef3c7 0%, var(--white) 50%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
    border: 2px solid #fbbf24;
}

.testing-importance h3 {
    color: #d97706;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.testing-importance > p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.testing-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.test-frequency {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid #fbbf24;
}

.test-frequency .frequency {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: var(--spacing-sm);
}

.test-frequency .description {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
}

.system-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.system-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.system-card:hover::before {
    transform: scaleX(1);
}

.system-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.02);
}

.system-card.featured::before {
    transform: scaleX(1);
}

.system-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.system-card.featured .system-badge {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* Only apply to bacteria treatment page system-content */
.bacteria-treatment-page .system-content {
    display: block !important;
    width: 100% !important;
    position: relative;
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Only apply to bacteria treatment page system-content elements */
.bacteria-treatment-page .system-content h3 {
    color: var(--primary-blue) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: var(--spacing-sm) !important;
    display: block !important;
    visibility: visible !important;
}

.bacteria-treatment-page .system-price {
    color: var(--dark-gray) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: var(--spacing-md) !important;
    display: block !important;
    visibility: visible !important;
}

.bacteria-treatment-page .system-content > p {
    color: var(--dark-gray) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: var(--spacing-lg) !important;
    display: block !important;
    visibility: visible !important;
}

.system-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.system-features li {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.system-features li:last-child {
    border-bottom: none;
}

.system-features li::before {
    content: '✓';
    color: var(--primary-blue);
    font-weight: bold;
    margin-right: var(--spacing-md);
    font-size: 1.1rem;
}

.system-features span {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: var(--spacing-sm) 0;
    display: inline-block;
}

/* Force system content visibility - ONLY for bacteria treatment page */
.bacteria-treatment-page .systems-grid .system-card .system-content,
.bacteria-treatment-page .systems-grid .system-card .system-content * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
}

.bacteria-treatment-page .systems-grid .system-card .system-features {
    display: block !important;
    visibility: visible !important;
    list-style: none !important;
}

.bacteria-treatment-page .systems-grid .system-card .system-features li {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
}

.bacteria-treatment-page .systems-grid .system-card .system-specs {
    display: block !important;
    visibility: visible !important;
}

.bacteria-treatment-page .systems-grid .system-card .spec-item {
    display: flex !important;
    visibility: visible !important;
}

.system-specs {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    font-size: 0.9rem;
}

.spec-item:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.spec-label {
    color: var(--dark-gray);
    font-weight: 500;
}

.spec-value {
    color: var(--dark-gray);
    font-weight: 600;
}

/* Process Steps - Professional Installation Process */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Ensure first step item has consistent styling */
.step-item:first-child {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Reset any potential inherited styles */
.step-item * {
    box-sizing: border-box;
}

/* Reset any pseudo-elements that might affect layout */
.step-item::before,
.step-item::after,
.step-item *::before,
.step-item *::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Specifically reset first child pseudo-elements */
.step-item:first-child::before,
.step-item:first-child::after {
    content: none !important;
    display: none !important;
}

/* Bacteria Treatment Page - Get Quote Button Fixes */
.bacteria-treatment-page .btn.btn-primary {
    color: var(--white) !important;
}

/* More specific override for buttons inside system cards */
.bacteria-treatment-page .system-card .system-content .btn.btn-primary,
.bacteria-treatment-page .systems-grid .system-card .system-content .btn.btn-primary {
    color: var(--white) !important;
    background-color: var(--primary-blue) !important;
}

/* Emergency Section Styling Fixes */
.bacteria-treatment-page .emergency-section {
    padding-top: var(--spacing-2xl) !important;
    padding-bottom: var(--spacing-2xl) !important;
}

.bacteria-treatment-page .emergency-section .lead {
    color: #fef2f2 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Override conflicting grid and margin rules for consistent layout */
.step-item:nth-child(1),
.step-item:nth-child(2),
.step-item:nth-child(3),
.step-item:nth-child(4),
.step-item:nth-child(5) {
    grid-column: unset !important;
    margin: 0 !important;
    margin-bottom: var(--spacing-lg) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure no odd/even margin differences */
.step-item:nth-child(odd),
.step-item:nth-child(even) {
    margin: 0 !important;
    margin-bottom: var(--spacing-lg) !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.step-content p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive design for process steps */
@media (max-width: 768px) {
    .process-steps {
        gap: var(--spacing-md);
    }
    
    .step-item {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
}

/* Process Diagram */
.process-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.process-diagram .process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-diagram .step-content {
    margin-top: var(--spacing-md);
}

.process-diagram .step-content h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.process-diagram .step-content p {
    font-size: 0.9rem;
}

/* UV Advantages */
.uv-advantages {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid #e2e8f0;
}

.uv-advantages h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.advantage-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.advantage-title {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.advantage-description {
    color: var(--dark-gray);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Emergency Section */
.emergency-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: var(--white) !important;
    padding: var(--spacing-3xl) 0;
}

.emergency-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.emergency-icon {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.emergency-text h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.emergency-text .lead {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.emergency-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-2xl);
    align-items: start;
}

.immediate-action h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.immediate-action ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.immediate-action li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.immediate-action li::before {
    content: '⚠️';
    margin-right: var(--spacing-sm);
    font-size: 1rem;
}

.emergency-contact {
    text-align: center;
}

.emergency-contact p {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bacteria-dangers-grid {
        grid-template-columns: 1fr;
    }
    
    .treatment-systems-grid {
        grid-template-columns: 1fr;
    }
    
    .contamination-sources {
        grid-template-columns: 1fr;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
    }
    
    .process-diagram {
        grid-template-columns: 1fr;
    }
    
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-content {
        flex-direction: column;
        text-align: center;
    }
    
    .danger-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .source-item {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-actions {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .testing-schedule {
        grid-template-columns: 1fr;
    }
}

/* Systems Selector Styling */
.systems-selector-container {
    margin: var(--spacing-2xl) 0;
}

.system-selector {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.system-selector label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
}

.system-dropdown {
    width: 100%;
    max-width: 500px;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    background-size: 20px;
    padding-right: calc(var(--spacing-lg) + 30px);
}

.system-dropdown:hover {
    border-color: var(--secondary-blue);
    box-shadow: var(--shadow-md);
}

.system-dropdown:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.systems-content {
    position: relative;
}

.system-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.system-content.active {
    display: block;
    opacity: 1;
}

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

.system-display {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
    background: var(--white);
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-blue);
    position: relative;
    z-index: 1;
}

/* Water Softener page: image column removed, make details span full width */
.water-softener-page .system-display {
    grid-template-columns: 1fr;
}

.system-image-large {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #f8fafc;
}

.system-image-large img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.system-image-large:hover img {
    transform: scale(1.05);
}

.system-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.system-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: var(--spacing-lg);
}

.system-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.system-price-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

.system-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0;
}

.system-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.features-column h4,
.specs-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: var(--spacing-xs);
    display: inline-block;
}

.system-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.system-features li {
    padding: var(--spacing-xs) 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.system-specs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(30, 58, 138, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-blue);
}

.spec-label {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.system-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid #e5e7eb;
}

.system-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* Responsive Design for Tabs */
@media (max-width: 1024px) {
    .system-display {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .system-features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .systems-tabs-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .tab-button {
        min-width: auto;
        padding: var(--spacing-md);
    }
    
    .system-display {
        padding: var(--spacing-lg);
    }
    
    .system-header h3 {
        font-size: 1.5rem;
    }
    
    .system-price-large {
        font-size: 1.25rem;
    }
    
    .system-actions {
        flex-direction: column;
    }
}

/* Responsive Design for Calculator */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .savings-calculator {
        padding: var(--spacing-xl);
    }
    
    .calculator-inputs,
    .savings-results {
        padding: var(--spacing-lg);
    }
}

/* Before/After Gallery */
.before-after-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.before-after-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.before-after-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.before-after-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 200px;
}

.before-image,
.after-image {
    position: relative;
    overflow: hidden;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-label {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.before-after-content {
    padding: var(--spacing-lg);
}

.before-after-content h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

/* Service Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.5rem;
    color: var(--white);
}

.benefit-card h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Benefit Items (title beside icon, description below) */
.benefit-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-item-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.benefit-item .benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(30, 58, 138, 0.1);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin: 0;
}

.benefit-item h4 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin: 0;
    flex: 1;
}

.benefit-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
    padding-left: 0;
}

/* Mobile: tighten benefits grid and card padding */
@media (max-width: 768px) {
  .benefits-grid { gap: var(--spacing-md) !important; grid-template-columns: 1fr !important; }
  .benefit-item { padding: var(--spacing-md) !important; }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--spacing-lg);
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-text {
    color: var(--dark-gray);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-info h4 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1rem;
}

.author-info p {
    color: var(--dark-gray);
    margin: 0;
    font-size: 0.875rem;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero {
        padding: 4rem 0 2rem;
    }
    
    .service-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .service-hero-text h1 {
        font-size: 2.5rem;
    }
    
    .service-hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-hero-cta {
        justify-content: center;
    }
    
    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .before-after-images {
        grid-template-columns: 1fr;
        height: 300px;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-hero-text h1 {
        font-size: 2rem;
    }
    
    .service-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contaminants-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-content {
        flex-direction: column;
        text-align: center;
    }
}
