/* TLC Business Solutions Website Styles
   Colors: Modern green and grey tones
*/

:root {
  --primary-color: #1e9c9c; /* Modern teal/green */
  --primary-light: #6ecaca;
  --primary-dark: #0d7373;
  --secondary-color: #444444; /* Modern grey */
  --secondary-light: #666666;
  --secondary-dark: #333333;
  --accent-color: #00bcd4; /* Bright blue accent (similar to TLC logo) */
  --background-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --border-radius: 8px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --section-padding: 80px 20px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary-dark);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

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

/* V1: commented by zeeshan
a:hover {
  color: var(--primary-dark);
}
*/

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: var(--section-padding);
}

/* Header & Navbar Styles */
header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Specific navbar styles */
/* Navbar basic styling */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: #fff; /* adjust if you have a colored background */
  margin: 0 auto;
  width: 100%;
}

/* Logo styling */
.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  max-width: 250px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 10px 0;
  background: transparent;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .navbar-logo img {
    max-width: 180px;
  }
}

/* Regular header container (keeping for compatibility) */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: auto;
  width: 220px;
  max-height: 50px;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  font-weight: 600;
  color: var(--secondary-color);
  transition: var(--transition);
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--secondary-color);
  z-index: 1100;
  position: absolute;
  right: 20px;
  top: 32px;
}

.close-icon {
  display: none;
}

/* Desktop nav visible on large screens */
@media (min-width: 769px) {
  nav {
    display: block !important;
  }

  .hamburger,
  .close-icon {
    display: none !important;
  }
}

/* Mobile Nav 
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
  }

  nav.active {
    height: auto;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 1rem 0;
  }

  .hamburger {
    display: block;
  }
}
*/

#navbarMenu {
  display: flex;
}

/* Mobile menu hidden by default */
@media (max-width: 768px) {
  #navbarMenu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
  }

  #navbarMenu.active {
    display: flex;
  }

  #navbarMenu ul {
    flex-direction: column;
    gap: 1rem;
  }

  #navbarMenu ul li {
    margin: 0.5rem 0;
  }

  /* nav ul {
    display: flex; 
    flex-direction: column;
    gap: 1rem;
  }

  nav ul li {
    margin: 0.5rem 0;
  } */

  .hamburger,
  .close-icon {
    display: block;
    position: absolute;
    right: 20px;
    top: 32px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 12rem 1rem 8rem;
  margin-top: 0;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Features Section */
.features {
  background-color: #f9f9f9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Imagine This Section */
.imagine {
  background-color: white;
  text-align: center;
}

.imagine-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Who We Help Section */
.who-we-help {
  background-color: #f9f9f9;
}

.client-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.client-type {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--box-shadow);
}

.client-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Promise Section */
.promise {
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
}

.promise h2 {
  color: white;
}

.promise p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.promise-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.promise-item {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
}

.promise-item h3 {
  color: white;
}

.promise-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* AI Automation Section */
.ai-automation {
  background-color: #f9f9f9;
  text-align: center;
}

.ai-automation h2 {
  margin-bottom: 1rem;
}

.ai-automation > .container > p {
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-light);
}

.ai-automation .feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.ai-automation .feature-card:hover .feature-icon {
  transform: scale(1.15);
}

.ai-automation .text-center {
  margin-top: 3rem;
}

/* CTA Section */
.cta {
  text-align: center;
  background: white;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

/* About Page */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image img {
  width: 100%;
  display: block;
}

/* Founder section specific styling */
.founder-section .about-image {
  text-align: center;
}

.founder-section .about-image img {
  max-width: 90%;
  margin: 0 auto;
  display: block;
  border-radius: 5px;
  background-color: #f5f5f5;
}

@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
  }
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 156, 156, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--secondary-dark);
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
  background-color: transparent;
  border-radius: 3px;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.2rem;
}

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

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 3rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1001;
}

.flash-message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 600;
  box-shadow: var(--box-shadow);
  animation: slideIn 0.3s ease-out;
}

.flash-success {
  background-color: var(--primary-color);
}

.flash-error {
  background-color: #e74c3c;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Financial Snapshot Page */
.financial-snapshot {
  padding: var(--section-padding);
  background-color: white;
}

.snapshot-intro {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}

.snapshot-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.snapshot-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.snapshot-form-container h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.snapshot-form-container p {
  margin-bottom: 2rem;
  text-align: center;
}

.snapshot-form .form-group {
  margin-bottom: 1.5rem;
}

.snapshot-form .form-group label {
  font-weight: 600;
  font-size: 1.1rem;
}

.snapshot-form .form-text {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Snapshot Results Styling */
.snapshot-results {
  max-width: 1000px;
  margin: 0 auto;
}

.snapshot-results h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.overall-score {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem;
  background: linear-gradient(to right, #f9f9f9, #ffffff);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.score-gauge {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #eee;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.score-value {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--score);
  background: linear-gradient(to top, var(--primary-dark), var(--primary-color));
  transition: height 1s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-value span {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.metric-card {
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.metric-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.metric-value.healthy {
  color: #27ae60;
}

.metric-value.caution {
  color: #f39c12;
}

.metric-value.attention {
  color: #e74c3c;
}

.metric-status {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  display: inline-block;
  border-radius: 20px;
}

.healthy + .metric-status {
  background-color: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}

.caution + .metric-status {
  background-color: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}

.attention + .metric-status {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.action-recommendations {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
}

.action-recommendations h3 {
  margin-bottom: 1.5rem;
}

.action-recommendations ul {
  padding-left: 1.5rem;
}

.action-recommendations li {
  margin-bottom: 0.8rem;
}

.results-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.results-disclaimer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .results-cta {
    flex-direction: column;
  }

  .score-gauge {
    width: 150px;
    height: 150px;
  }

  .score-value span {
    font-size: 1.5rem;
  }

  .metric-value {
    font-size: 2rem;
  }
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 8rem 1rem;
}

.thank-you h1 {
  margin-bottom: 2rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ServiceM8 Section */
.servicem8-section {
  padding-bottom: 3rem;
}

.servicem8-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.servicem8-logo {
  margin-top: 1rem;
}

.servicem8-main-logo {
  max-width: 200px;
  height: auto;
}

.servicem8-intro {
  margin-bottom: 2.5rem;
}

.servicem8-intro h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.servicem8-benefits {
  margin-bottom: 3rem;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: var(--border-radius);
}

.servicem8-benefits h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.benefits-list li strong {
  margin-right: 0.5rem;
}

.servicem8-showcase {
  margin-bottom: 3rem;
  text-align: center;
}

.servicem8-image-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.servicem8-showcase h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.servicem8-product-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicem8-product-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.servicem8-product-screenshot {
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #eaeaea;
}

.image-caption {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.servicem8-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.servicem8-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.servicem8-vertical-logo {
  max-width: 100px;
  height: auto;
}

.servicem8-partner-logo {
  max-width: 180px;
  height: auto;
}

.servicem8-services {
  margin-bottom: 3rem;
}

.servicem8-services h3 {
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
}

.servicem8-services .feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.price {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.servicem8-cta {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
}

.servicem8-cta h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

.steps-list {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.steps-list li {
  margin-bottom: 0.8rem;
}

.servicem8-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.servicem8-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero {
    padding: 10rem 1rem 6rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .feature-grid, 
  .client-types,
  .promise-items {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 20px;
  }

  .servicem8-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .servicem8-logo {
    margin-top: 1.5rem;
  }

  .servicem8-buttons {
    flex-direction: column;
  }

  .servicem8-buttons a {
    width: 100%;
    text-align: center;
  }
  .servicem8-benefits ul.benefits-list li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .servicem8-benefits ul.benefits-list li strong {
    display: block;
    margin-bottom: 0.25rem;
  }
}

/* Features Showcase Images */
.servicem8-top-banner {
  background-color: #f5f5f5;
  padding: 2rem 0;
  border-bottom: 1px solid #e0e0e0;
  width: 100%;
  overflow: hidden;
}

.servicem8-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.servicem8-grid-item {
  flex: 1;
  min-width300px;
  max-width: 500px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicem8-grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.servicem8-grid-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .servicem8-grid {
    flex-direction: column;
    align-items: center;
  }

  .servicem8-grid-item {
    margin-bottom: 1rem;
    min-width: 280px;
    max-width: 100%;
  }
}

/* Charge Calculator Styles */
.calculator-section {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.calculator-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.form-section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.form-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.section-desc {
  margin-bottom: 1.5rem;
  color: #6c757d;
}

.subsection-title {
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.results-highlight {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  text-align: center;
}

.charge-rate {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0;
}

.disclaimer {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
}

.detailed-results {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.results-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.results-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.result-label {
  font-weight: 500;
}

.result-value {
  font-weight: 700;
}

.results-note {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
}

.calculator-info {
  padding: 3rem 0;
  background-color: white;
}

.info-box {
  background-color: #f8f9fa;
  border-left: 5px solid var(--primary-color);
  padding: 2rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.info-box ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.info-box li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .form-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .form-navigation button {
    width: 100%;
  }

  .charge-rate {
    font-size: 2rem;
  }

  .result-item {
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .result-value {
    margin-top: 0.25rem;
  }
}

/* Fix for error message display */
.alert-danger {
  list-style-type: none !important;
}
.alert-danger::before {
  display: none !important;
}
.alert-danger li, 
.alert-danger ul, 
.alert-danger ol {
  list-style-type: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.page-header {
    background-color: #f5f5f5;
    padding: 11rem 0 2.5rem;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    position: relative;
}

.page-header h1 {
    margin-top: 2rem;
    padding: 0 1rem;
}

.page-header .container {
    padding: 0 1.5rem;
}

/* Mobile responsiveness for page header */
@media (max-width: 768px) {
    .page-header {
        padding: 9rem 0 2rem;
        margin-top: 0;
        position: relative;
        top: 0;
    }
    .page-header h1 {
        font-size: 1.5rem;
        word-wrap: break-word;
        padding: 0 15px;
        margin-bottom: 1rem;
    }
    .page-header p.lead {
        font-size: 0.9rem;
        padding: 0 20px;
        margin-bottom: 1rem;
    }
}
@media (max-width: 768px) {
  .servicem8-benefits ul.benefits-list li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .servicem8-benefits ul.benefits-list li strong {
    display: block;
    margin-bottom: 0.25rem;
  }
}

/* CSS By Zeeshan */
.text-white {
  color: #FFFFFF !important;
}

.results-actions {
  margin-top: 2rem;
  text-align: center;
}

.results-actions form,
.results-actions a {
  display: inline-block;
  margin: 0.5rem 1rem;
}

.results-button {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  background-color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.results-button:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cursor-pointer {
  cursor: pointer;
}