/* ── HERO SEARCH ── */
.hero-search {
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  /* Much lighter overlay than Energy Deals */
  filter: brightness(0.72) saturate(1.05);
}
/* Lighter gradient overlay — let the photo breathe */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 30, 60, 0.28) 0%,
    rgba(10, 30, 60, 0.52) 60%,
    rgba(10, 30, 60, 0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 64px 5% 52px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-content h1 span { color: #6DF59A; }
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  font-weight: 300;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Search widget */
.search-widget {
  background: white;
  border-radius: var(--r-md);
  padding: 10px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  display: flex;
  gap: 0;
  align-items: stretch;
}
.sw-tabs {
  display: flex;
  gap: 6px;
  max-width: 860px;
  margin: 0 auto 12px;
}
.sw-tab {
  padding: 8px 22px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
}
.sw-tab.active { background: white; color: var(--ink); }
.sw-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--gray-200);
  padding: 10px 18px;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background 0.14s;
}
.sw-field:hover { background: var(--gray-50); }
.sw-field:last-of-type { border-right: none; }
.sw-field label {
  font-size: 11px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
  display: block;
}
.sw-field input,
.sw-field select {
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 500;
  background: transparent;
  width: 100%;
  cursor: pointer;
  padding: 0;
}
.sw-field input::placeholder { color: var(--gray-400); font-weight: 400; }
.sw-search-btn {
  background: var(--grad-btn);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 0 32px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.18s;
  box-shadow: var(--shadow-blue);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 150px;
}
.sw-search-btn:hover { opacity: 0.9; }
.hero-trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.ht-pill {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.ht-pill::before { content: '✓'; color: #6DF59A; font-weight: 700; }

/* ── POPULAR STATES BAR ── */
.popular-states {
  background: var(--navy);
  border-bottom: 1px solid var(--blue-dark);
  padding: 14px 5%;
}
.ps-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ps-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-200);
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
}
.ps-links { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  background: white;
  border: 1px solid var(--gray-200);
  transition: border-color 0.14s, color 0.14s, background 0.14s;
  white-space: nowrap;
}
.ps-link:hover { border-color: var(--blue); background: var(--blue-xlight); }

/* ── HOW IT WORKS STRIP ── */
.hiw-strip { background: white; padding: 52px 5%; border-bottom: 1px solid var(--gray-100); }
.hiw-inner { max-width: 1160px; margin: 0 auto; }
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  position: relative;
}
.hiw-grid::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--gray-200);
}
.hiw-step { text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.hiw-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 17px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  background: white;
  border: 2px solid var(--gray-200);
}
.hiw-step:nth-child(1) .hiw-dot { border-color: var(--blue); background: var(--blue-light); }
.hiw-step:nth-child(2) .hiw-dot { border-color: #1A8BAE; background: #E1F5FA; }
.hiw-step:nth-child(3) .hiw-dot { border-color: #22A06B; background: #E2F5EC; }
.hiw-step:nth-child(4) .hiw-dot { border-color: var(--green); background: var(--green); }
.hiw-step:nth-child(4) .hiw-dot span { filter: brightness(10); }
.hiw-step h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.hiw-step p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; }

/* ── FEATURED DEALS ── */
.featured-deals { background: var(--gray-50); padding: 56px 5%; }
.fd-inner { max-width: 1220px; margin: 0 auto; }
.fd-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.fd-header h2 { font-size: 1.4rem; font-weight: 800; }
.fd-header a { font-size: 13.5px; color: var(--blue); font-weight: 600; text-decoration: none; }
.fd-header a:hover { text-decoration: underline; }
.fd-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.deal-card {
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  padding: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.deal-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue); }
.deal-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.deal-supplier { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.deal-badge {
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-best  { background: var(--blue-light); color: var(--blue-dark); }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-flex  { background: #E8F4FD; color: #1A6EA8; }
.deal-rate { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.deal-rate span { font-size: 1rem; color: var(--gray-500); font-weight: 400; }
.deal-savings { font-size: 12.5px; color: var(--green-dark); font-weight: 600; margin-bottom: 14px; }
.deal-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.deal-tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--gray-100); color: var(--gray-600); }
.deal-cta {
  margin-top: 16px;
  display: block;
  text-align: center;
  background: var(--grad-btn);
  color: white;
  padding: 10px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  transition: opacity 0.18s;
}
.deal-card:hover .deal-cta { opacity: 0.9; }

/* ── EDUCATION ── */
.edu-section { background: white; padding: 72px 5%; }
.edu-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.edu-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.edu-photo img { width: 100%; height: 420px; object-fit: cover; object-position: center top; }
.edu-points { display: flex; flex-direction: column; gap: 18px; margin: 24px 0 32px; }
.edu-point { display: flex; gap: 14px; align-items: flex-start; }
.edu-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.edu-point h4 { font-size: 0.93rem; font-weight: 700; margin-bottom: 3px; }
.edu-point p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.65; }

/* ── SOCIAL PROOF ── */
.proof-section { background: var(--gray-50); padding: 64px 5%; }
.proof-inner { max-width: 1160px; margin: 0 auto; }
.proof-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.proof-header h2 { font-size: 1.4rem; font-weight: 800; }
.proof-rating { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray-600); font-weight: 500; }
.proof-rating .stars { color: #F59E0B; font-size: 15px; letter-spacing: 1px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.review-card {
  background: white;
  border-radius: var(--r-md);
  padding: 24px;
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 12px;
}
.review-stars { color: #F59E0B; font-size: 14px; letter-spacing: 1px; }
.review-text { font-size: 0.9rem; color: var(--gray-700); line-height: 1.7; flex: 1; }
.reviewer { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--gray-100); padding-top: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 12px; color: white; flex-shrink: 0; }
.reviewer-name { font-weight: 600; font-size: 0.85rem; }
.reviewer-loc { font-size: 0.76rem; color: var(--gray-400); margin-top: 1px; }

/* ── BOTTOM CTA ── */
.bottom-cta {
  background: var(--grad-135);
  color: white;
  padding: 72px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bottom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.bottom-cta h2 { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; margin-bottom: 10px; position: relative; }
.bottom-cta p { opacity: 0.85; font-size: 1rem; margin-bottom: 28px; font-weight: 300; position: relative; }
.bc-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .search-widget { flex-direction: column; gap: 4px; }
  .sw-field { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .sw-search-btn { padding: 14px; width: 100%; }
  .hiw-grid { grid-template-columns: 1fr 1fr; }
  .hiw-grid::before { display: none; }
  .fd-grid { grid-template-columns: 1fr 1fr; }
  .edu-inner { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .fd-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
}

/* Fix: fields + button live inside <form>, so the form must be the flex row */
.search-widget form { display: flex; flex: 1; align-items: stretch; gap: 0; width: 100%; margin: 0; }
@media (max-width: 900px) { .search-widget form { flex-direction: column; gap: 4px; } }