﻿.wk-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 50; }
    .wk-modal.is-open { display: flex; }
    .wk-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); }
    .wk-card { border-radius: 1rem; box-shadow: 0 10px 20px rgba(2,6,23,0.06), 0 2px 6px rgba(2,6,23,0.06); border: 1px solid #e2e8f0; background: #fff; text-align: center; }
    .wk-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.25rem; border-radius: 0.75rem; font-weight: 600; transition: all .15s ease; width: 100%; }
    .wk-btn--primary { background: #4f46e5; color: #fff; border: none; }
    .wk-btn--primary:hover { background: #4338ca; }
    .wk-btn--primary:focus { outline: 2px solid #6366f1; outline-offset: 2px; }
    .wk-btn--outline { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; text-decoration: none; display: inline-block; }
    .wk-btn--outline:hover { background: #f8fafc; }

    /* ===== WattKarma Enrollment Support â€“ Scoped Styles (wk-) ===== */
    .wk-card { border-radius: 1rem; box-shadow: 0 10px 20px rgba(2,6,23,0.06), 0 2px 6px rgba(2,6,23,0.06); border: 1px solid #e2e8f0; background: #fff; }
    .wk-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.25rem; border-radius: 0.75rem; font-weight: 600; transition: all .15s ease; }
    .wk-btn--primary { background: #4f46e5; color: #fff; }
    .wk-btn--primary:hover { background: #4338ca; }
    .wk-btn--primary:focus { outline: 2px solid #6366f1; outline-offset: 2px; }
    .wk-btn--outline { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
    .wk-btn--outline:hover { background: #f8fafc; }
    .wk-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; background: #f1f5f9; color: #334155; }
    .wk-field { width: 100%; border: 1px solid #cbd5e1; border-radius: 0.75rem; padding: 0.75rem; }
    .wk-field:focus { outline: 2px solid #6366f1; outline-offset: 2px; }
    .wk-label { display: block; font-size: 0.875rem; font-weight: 600; color: #334155; margin-bottom: 0.25rem; }
    .wk-error { color: #dc2626; font-size: 0.875rem; margin-top: 0.25rem; }

    /* Mobile sticky CTA */
    .wk-mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid #e2e8f0; padding: 0.75rem; }
    @media (min-width: 768px) { .wk-mobile-cta { display: none; } }

    /* Modal */
    .wk-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); }
    .wk-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 50; }
    .wk-modal.is-open { display: flex; }

    /* Section headers */
    .wk-section { margin-bottom: 1.5rem; }
    .wk-section__eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #4f46e5; background: #eef2ff; border: 1px solid #c7d2fe; padding: 0.25rem 0.5rem; border-radius: 999px; }
    .wk-section__title { font-size: 1.5rem; line-height: 1.25; font-weight: 700; color: #0f172a; margin-top: 0; }
    @media (min-width: 768px) { .wk-section__title { font-size: 30px; } }
    .wk-section__sub {
      color: #475569;
      margin-top: 0.5rem;
      max-width: 100%; /* âœ… changed from 600px to 100% */
      width: 100%;
      text-align: left;
      font-size: 16px;
    }

   /* Default: Mobile layout (stacked, full-width header and footer) */
body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem; /* Remove padding to allow header/footer to span full width */
  margin: 0; /* Ensure no margins interfere */
  min-height: 100vh; /* Ensure body covers full viewport height */
}

header {
  width: 100%; /* Full width */
  padding: 0.75rem 2.3rem; /* Match existing body padding for content alignment */
  background: #fff; /* Consistent with wk-card background */
  border-bottom: 1px solid #e2e8f0; /* Match wk-card border */
  position: auto;
  top: 0;
  z-index: 40;
  box-sizing: border-box; /* Ensure padding doesn't affect width */
}

footer {
  width: 100%; /* Full width */
  padding: 0.75rem 2.3rem; /* Match existing body padding for content alignment */
  background: #fff; /* Consistent with wk-card background */
  border-top: 1px solid #e2e8f0; /* Match wk-card border */
  margin-top: auto; /* Push footer to bottom in flex layout */
  box-sizing: border-box; /* Ensure padding doesn't affect width */
}

/* Mobile sticky CTA */
.wk-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%; /* Ensure full width */
  z-index: 40;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 2.3rem; /* Match body padding */
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .wk-mobile-cta {
    display: none; /* Hide mobile CTA on desktop */
  }
}

/* Desktop view: Grid layout with full-width header and footer */
@media (min-width: 768px) {
  body {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-rows: auto auto auto auto auto; /* Five rows: header, help card, cards, form, footer */
    gap: 1.5rem;
    max-width: 900rem;
    margin: 0 auto; /* Center the grid */
    padding: 16px ; /* Remove padding to allow header/footer to span full width */
  }

  header {
    
    width: 100%; /* Full width */
    padding: 0 ; /* Match original desktop padding-left */
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 40;
    box-sizing: border-box;
  }

  #wk-forHelpCard {
    grid-column: 1 / -1; /* Span all columns */
    grid-row: 2 / 3; /* Second row */
  }

  #wk-liveChatCard {
    grid-column: 1 / 2; /* First column */
    grid-row: 3 / 4; /* Third row */
  }

  #wk-callUsCard {
    grid-column: 2 / 3; /* Second column */
    grid-row: 3 / 4; /* Third row */
  }

  #wk-formSection {
    grid-column: 1 / -1; /* Span all columns */
    grid-row: 4 / 5; /* Fourth row */
  }

  footer {
    grid-column: 1 / -1; /* Span all columns */
    grid-row: 5 / 6; /* Fifth row */
    width: 100%; /* Full width */
    padding: 0.75rem 4rem; /* Match original desktop padding-left */
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
  }
}

/* Larger screens: Adjust grid and centering */
@media (min-width: 1024px) {
  body {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 2rem;
    max-width: 100%;   /* was 1200px */
    margin: 0;         /* remove centering */
    padding: 0;
  }




  #wk-forHelpCard {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    padding: 32px;
  }

  #wk-liveChatCard {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    padding: 32px;
  }

  #wk-callUsCard {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    padding: 32px;
  }

  #wk-formSection {
    grid-column: 1 / -1;
    grid-row: 4 / 5;
    padding: 32px;
  }

  footer {
    padding: 0.75rem 2rem; /* more balanced left/right padding */
  }
}
/* Ensure modal and backdrop span full width */
.wk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.wk-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.wk-modal.is-open {
  display: flex;
}

/* Form Section Internal Grid */
@media (min-width: 768px) {
  #wk-formSection {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 columns */
    grid-template-rows: auto auto; /* 2 rows */
    gap: 1.5rem;
    padding: 1.5rem;
  }

  #wk-formSection .form-content {
    grid-column: 1 / 3; /* Span columns 1 and 2 */
    grid-row: 1 / 3; /* Span rows 1 and 2 */
  }

  #wk-formSection .form-image {
    grid-column: 3 / 4; /* Column 3 */
    grid-row: 1 / 3; /* Span rows 1 and 2 */
    align-self: center;
    background: linear-gradient(to bottom, #1e3a8a, #10b981);
    background-size: 100% 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Smaller mobile adjustments */
@media (max-width: 600px) {
  header {
    padding: 0.5rem 1.5rem; /* Reduced padding for smaller screens */
  }

  footer {
    padding: 0.5rem 1.5rem;
  }

  .wk-mobile-cta {
    padding: 0.5rem 1.5rem;
  }

  .wk-card {
    padding: 1rem;
  }

  .wk-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .wk-section__title {
    font-size: 1.25rem;
  }

  .wk-section__sub {
    font-size: 0.875rem;
  }
}

/* Existing styles retained for consistency */
.wk-card {
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.06), 0 2px 6px rgba(2, 6, 23, 0.06);
  border: 1px solid #e2e8f0;
  background: #fff;
  text-align: center;
}

.wk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
  width: 100%;
}

.wk-btn--primary {
  background: #4f46e5;
  color: #fff;
  border: none;
}

.wk-btn--primary:hover {
  background: #4338ca;
}

.wk-btn--primary:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.wk-btn--outline {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  display: inline-block;
}

.wk-btn--outline:hover {
  background: #f8fafc;
}

.wk-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
}

.wk-field {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.wk-field:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.wk-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.25rem;
}

.wk-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.wk-section {
  margin-bottom: 1.5rem;
}

.wk-section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.wk-section__title {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
}

@media (min-width: 768px) {
  .wk-section__title {
    font-size: 30px;
  }
}

.wk-section__sub {
  color: #475569;
  margin-top: 0.5rem;
  max-width: 100%;
  width: 100%;
  text-align: left;
  font-size: 16px;
}

/* ===== Layout reset & safety ===== */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove any site-level max-width/margins on common wrappers (override) */
