/* Global reset & base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f3f4f6;
  color: #111827;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utility */
.small-muted {
  font-size: 0.8rem;
  color: #6b7280;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: #e5f6ff;
  color: #0369a1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-full {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

.btn-full:hover {
  background: #15803d;
  border-color: #15803d;
}

.btn-outline {
  background: transparent;
  color: #16a34a;
  border-color: #16a34a;
}

.btn-outline:hover {
  background: #16a34a;
  color: white;
}

.btn-ghost {
  background: transparent;
  color: #111827;
  border-color: transparent;
}

.btn-ghost:hover {
  background: #e5e7eb;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
  flex: 1;
  justify-content: flex-end;  /* NEW: push nav text toward the right */
}
.nav-links a {
  font-size: 0.9rem;
  color: #374151;
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
}

.nav-links a:hover {
  background: #e5e7eb;
  color: #111827;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* push buttons to the right */
}
@media (max-width: 900px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding-top: 0.4rem;
    border-top: 1px solid #e5e7eb;
  }

  .nav-actions {
    margin-left: auto;
  }
}

/* Main layout */
main {
  min-height: calc(100vh - 160px);
}

/* HERO */
.hero-section {
  background: #047857;
  padding: 3.5rem 1.5rem 4rem;
  color: #f9fafb;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero-text {
  flex: 1 1 320px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #d1fae5;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-cta {
  font-weight: 600;
}

.hero-image {
  flex: 1 1 320px;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
  }

  .hero-image {
    width: 100%;
  }
}

/* Sections shared styles */
.features-section,
.pricing-section,
.about-section,
.contact-section {
  padding: 4rem 1.5rem;
}

/* FEATURES */
.features-section {
  background: #f9fafb;
}

.section-header {
  max-width: 1100px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111827;
}

.section-subtitle {
  font-size: 0.92rem;
  color: #4b5563;
  max-width: 36rem;
  margin: 0.5rem auto 0;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-body {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

/* PRICING */
.pricing-section {
  background: #f9fafb;
}

.pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pricing-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111827;
}

.pricing-subtitle {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.pricing-toggle .toggle-label {
  font-size: 0.85rem;
  color: #6b7280;
}

.pricing-toggle .toggle-label.active {
  font-weight: 600;
  color: #16a34a;
}

.toggle-switch {
  width: 52px;
  height: 26px;
  border-radius: 999px;
  background: #e5e7eb;
  padding: 3px;
  display: flex;
  align-items: center;
}

.toggle-switch .toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #16a34a;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 2rem 1.75rem 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: #facc15;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.pricing-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #4d7c0f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.pricing-plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.pricing-searches {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.2rem;
}

.pricing-extra {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.9rem;
}

.pricing-price {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.pricing-price .amount {
  font-size: 1.8rem;
  margin-right: 0.1rem;
}

.pricing-price .per {
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.pricing-features li::before {
  content: "●";
  font-size: 0.55rem;
  color: #facc15;
}

.pricing-cta {
  margin-top: auto;
}

/* ABOUT */
.about-section {
  background: #ffffff;
}

#about {
  scroll-margin-top: 140px;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.about-highlights h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #15803d;
}

.about-highlights ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.about-highlights li::before {
  content: "✓";
  font-size: 0.85rem;
  color: #16a34a;
  margin-top: 0.1rem;
}

/* CONTACT */
.contact-section {
  background: #f3f4f6;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

.contact-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #111827;
}

.contact-text p {
  font-size: 0.95rem;
  color: #4b5563;
}

.contact-form {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #374151;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #f9fafb;
}

.field input:focus,
.field textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
  background: #ffffff;
}

/* Footer */
.site-footer {
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  background: #111827;
  color: #e5e7eb;
}

/* Auth / Admin shared styles */
.auth-main {
  max-width: 1100px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Admin rich editor */
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #374151;
}

.rich-field {
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f9fafb;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: #e5e7eb;
  border-bottom: 1px solid #d1d5db;
}

.rich-toolbar button {
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  background: #ffffff;
  cursor: pointer;
}

.rich-toolbar button:hover {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

.rich-editor {
  min-height: 90px;
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
  background: #ffffff;
  outline: none;
}

/* Services list on admin/home if used */
#service-list {
  margin-top: 1rem;
}

.service {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}
/* === Auth pages layout (Sign In / Sign Up) === */
.auth-layout {
  max-width: 1100px;
  margin: 2.5rem auto 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: stretch;
  padding: 0 1.5rem;
}

.auth-form-wrapper {
  flex: 1 1 360px;
}

.auth-side-image {
  flex: 1 1 320px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  background: #e5e7eb;
}

.auth-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-side-image {
    min-height: 220px;
  }
}
/* Terms checkbox on signup */
.field-terms {
  margin-bottom: 1rem;
  margin-left: -0.75rem; /* move the whole thing further left */
}

.field-terms label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
}

.field-terms input[type="checkbox"] {
  margin: 0.2rem 0 0 0;
  width: auto;           /* don’t stretch like text inputs */
  flex-shrink: 0;
}

.field-terms span {
  font-size: 0.85rem;
  color: #4b5563;
}
/* Admin top bar with logout button */
.admin-topbar {
  padding: 1.5rem 1.5rem 0;
}

.admin-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-topbar-left {
  font-size: 0.9rem;
  color: #374151;
}

@media (max-width: 700px) {
  .admin-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Small banner on each pricing card */
.pricing-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #166534;        /* dark green text */
  background: #dcfce7;   /* light green background */
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
/* === /* ===== Service Area tab layout ===== */

.service-area-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.service-area-left,
.service-area-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Generic card used on Service Area */
.sa-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.sa-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* Region pill like your WNY example */
.sa-region-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: #f3f4ff;
  margin-bottom: 0.6rem;
}

.sa-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e; /* green dot */
}

.sa-region-name {
  font-weight: 600;
}

.sa-add-region-btn {
  margin-top: 0.35rem;
}

.sa-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Right-hand map card */
.sa-map-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 420px;
}

.sa-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.sa-map-title {
  font-weight: 600;
}

.btn.btn-sm {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.sa-map-placeholder {
  flex: 1;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, #bbf7d0, #15803d);
  padding: 1.25rem;
  color: #052e16;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.sa-map-placeholder p {
  margin: 0;
}

@media (max-width: 900px) {
  .service-area-layout {
    grid-template-columns: 1fr;
  }
}
riber Dashboard Layout === */

.dashboard-body {
  background: #f3f4f6;
}

.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

/* Sidebar */

.dashboard-sidebar {
  background: #0f172a;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  gap: 1.5rem;
}

.dashboard-logo img {
  max-width: 160px;
  height: auto;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-nav-item {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #cbd5f5;
  font-size: 0.9rem;
  cursor: pointer;
}

.dashboard-nav-item:hover {
  background: rgba(148, 163, 184, 0.16);
}

.dashboard-nav-item.active {
  background: #16a34a;
  color: white;
}

.dashboard-sidebar-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: #9ca3af;
}

.dashboard-sidebar-footer a {
  color: #bbf7d0;
  text-decoration: underline;
}

.sidebar-foot-label {
  display: block;
  margin-bottom: 0.25rem;
}

/* Main area */

.dashboard-main {
  padding: 1.75rem 2rem;
  max-width: 1600px;
  width: 100%;
}

.dashboard-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-main-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.dashboard-main-header p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Sections */

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

.dashboard-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.dashboard-stat-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.dashboard-stat-card .big-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dashboard-stat-card .muted {
  font-size: 0.8rem;
  color: #6b7280;
}

.dashboard-list {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.dashboard-list li + li {
  margin-top: 0.25rem;
}

.snippet-box {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  overflow-x: auto;
}

/* Responsive */

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .dashboard-logo img {
    max-width: 130px;
  }

  .dashboard-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 100%;
  }

  .dashboard-nav-item {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }

  .dashboard-main {
    padding: 1.1rem 1.25rem 1.75rem;
  }

  .dashboard-main-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Embedded search in dashboard */
.search-frame-wrapper {
  margin-top: 0.75rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  background: #111827;
}

.search-frame {
  width: 100%;
  height: 1000px; /* make this bigger or smaller as you like */
  border: none;
  display: block;
}
/* Service Area Google Map */
.sa-map-wrapper {
  margin-top: 0.5rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #e5e7eb;
  height: 650px;        /* 👈 give it a real height */
}

#serviceAreaMap {
  width: 100%;
  height: 100%;         /* fills the 450px wrapper */
}
/* Search page map container */
#map {
  width: 100%;
  height: 650px;      /* make taller/shorter as you like */
  border-radius: 12px;
  background: #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Parcel address suggestions list under the Address search input */
#parcel-suggestions {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.85rem;
}

#parcel-suggestions li {
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

#parcel-suggestions li:hover {
  background: #eef2ff;
}
/* Subscriber dashboard: Search iframe size */
.search-frame-wrapper {
  /* give it some vertical room */
  min-height: 800px;
}

.search-frame {
  width: 100%;
  height: 1000px;       /* ⬅️ make this as tall as you like (700, 900, etc.) */
  border: none;
}
.measurements-row {
  display: flex;
  gap: 1rem;
  margin-top: 10px;
}

.measurement-box {
  flex: 1;
}

.measurement-box label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.measurement-box input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 3px solid #22c55e; /* thick green border */
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #f9fff9;
}

/* ============================
   Services main page shell
   ============================ */

.dashboard-section[data-tab="services"] {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 0;
}

.services-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.services-tab {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 999px;
    color: #4b5563;
    margin-bottom: 4px;
}

    .services-tab.services-tab-active {
        background-color: #16a34a;
        color: #ffffff;
    }


.services-page {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 18px 20px;
    border: 1px solid #e5e7eb;
}

/* Top inner tabs row */
.services-top-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: #e5f3ea; /* soft green bar */
    margin-bottom: 12px;
}

.services-top-tab-button {
    border: none;
    padding: 6px 18px;
    border-radius: 999px;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: #166534;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

    .services-top-tab-button.is-active {
        background: #16a34a;
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(22, 101, 52, 0.25);
    }

/* Inner content area */
.services-inner-panels {
    margin-top: 4px;
}

.services-inner-panel {
    padding: 10px 4px;
    font-size: 0.95rem;
    color: #374151;
}

/* Header bar at top of Services page */
.services-header-bar {
  max-width: 1100px;
  margin: 0 auto 10px;
  padding: 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.services-header-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
}

.services-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================
   Services header bar
   ============================ */

.services-header-bar {
    max-width: 1100px;
    margin: 0 auto 10px;
    padding: 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.services-header-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
}

.services-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ============================
   Search box (top-right)
   ============================ */

.services-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 260px;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 4px 8px 4px 14px;
}

.services-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
}

.services-search-button {
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
}

/* ============================
   Buttons (including Add New Service)
   ============================ */

.services-btn {
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none; /* for <a> so it looks like a button */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.services-btn-primary {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

    .services-btn-primary:hover {
        background: #15803d;
        border-color: #15803d;
    }
.upload-image {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
    margin-bottom: 8px
}



/* Upper tabs: Services / Packages / Discounts */
.services-tabs {
    margin-top: 20px;
    margin-bottom: 14px;
    display: inline-flex;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Make the tab buttons BIGGER */
.services-tab {
    border: none;
    background: transparent;
    padding: 20px 35px; /* 🔹 taller & wider */
    font-size: 2rem; /* 🔹 bigger text */
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    border-radius: 999px 999px 0 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

    .services-tab:hover {
        background: #f3f4f6;
        color: #111827;
    }

/* Active tab stands out more */
.services-tab-active {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-bottom-color: #ffffff;
    transform: translateY(1px); /* tiny visual lift */
}

/* 3-wide grid for services list – always 3 on desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns */
    gap: 16px;
    margin-top: 10px;
}

/* Optional: only collapse to 1 column on really tiny screens */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== SERVICE CARD: IMAGE + RANGES + ACTIONS ====== */

/* image on card */
.service-card-image-wrapper {
    margin-bottom: 8px;
    text-align: center;
}

.service-card-image {
    max-width: 100%;
    max-height: 120px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

/* pricing ranges block */
.service-ranges {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-range-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #4b5563;
}

.service-range-limits {
    font-weight: 500;
}

.service-range-price {
    text-align: right;
}

/* footer actions: Edit / Delete / Reorder */
.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #6b7280;
}

.service-card-actions {
    display: inline-flex;
    gap: 6px;
}

.service-action-btn {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 0.7rem;
    padding: 2px 8px;
    cursor: pointer;
}

    .service-action-btn:hover {
        background: #e5e7eb;
    }

/* reorder buttons */
.service-reorder-group {
    display: inline-flex;
    gap: 4px;
}

.service-reorder-btn {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 0.7rem;
    padding: 2px 6px;
    cursor: pointer;
}

    .service-reorder-btn:hover {
        background: #e5e7eb;
    }

/* Dashboard tab panels */
.dashboard-panel {
    display: none;
}

    .dashboard-panel.active {
        display: block;
    }

/* Services grid layout (in case it's not already styled) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* Service cards with faint border */
.service-card {
    border: 1px solid #e5e7eb; /* light gray border */
    border-radius: 8px;
    background-color: #ffffff;
    padding: 16px;
    box-shadow: none; /* keep it flat and clean */
}

/* Secondary button for Services header (Reorder) */
.services-btn-secondary {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 8px;
}

    .services-btn-secondary:hover {
        background-color: #f3f4f6;
    }

/* Reorder controls on cards (hidden by default) */
.service-card-reorder-controls {
    display: none;
    gap: 4px;
    margin-right: 8px;
}

.service-card-reorder-button {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    cursor: pointer;
}

    .service-card-reorder-button:hover {
        background: #e5e7eb;
    }

/* When grid is in reorder mode, show the controls and hint the cards are movable */
.services-grid.reorder-mode .service-card-reorder-controls {
    display: flex;
}

.services-grid.reorder-mode .service-card {
    cursor: move;
}

/* Green pill button for "open discounts" on Add Service */
.btn-open-discounts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-color: #16a34a;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

    .btn-open-discounts:hover {
        background-color: #15803d;
    }

/* TEMP: always show these four pages so they don't look blank */
.dashboard-section[data-tab="service-area"],
.dashboard-section[data-tab="branding"],
.dashboard-section[data-tab="integrations"],
.dashboard-section[data-tab="support"] {
    display: block !important;
}

/* Show only the active dashboard section */
.dashboard-section[data-tab] {
    display: none;
}

    .dashboard-section[data-tab].active {
        display: block;
    }

 
