/* -------------------------------------------------------------------------- */
/* === Hero Section (Modified for HTML Background Layer) === */
/* -------------------------------------------------------------------------- */
section.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 60px 0;

  /* CRITICAL: Set position relative for absolute children */
  position: relative;
  /* Original background property removed */
}

/* NEW: Background Layer for Hero */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Puts the layer behind the content */

  /* Apply specific background properties that were previously on section.hero */
  background-position: right; /* Based on the original CSS location */
  background-repeat: no-repeat;
  background-size: cover;
}

/* Ensure the container content is visible above the background layer */
.hero-container {
  position: relative; /* Necessary for z-index context */
  z-index: 1; /* Place content above the z-index -1 layer */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* === Stats Section (Modified for HTML Background Layer) === */
/* -------------------------------------------------------------------------- */
section.stats {
  /* CRITICAL: Set position relative for absolute children */
  position: relative;
  padding: 80px 0;
  text-align: center;
  /* Original background property removed */
}

/* NEW: Background Layer for Stats */
.stats-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  /* Apply specific background properties that were previously on section.stats */
  background-position: left;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Ensure the container content is visible above the background layer */
.container {
  position: relative; /* Necessary for z-index context */
  z-index: 1; /* Place content above the z-index -1 layer */
  /* Assuming .container has global max-width/margin set */
}

/* === Remaining General Styles (Left as is) === */

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  color: #546375;
  font-size: 1.1rem;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-form input {
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #ff4b2b;
  border-radius: 5px;
  outline: none;
  width: 100%;
}

.hero-form input::placeholder {
  color: #aaa;
}

.error-text {
  color: #fff;
  background: #ff4b2b;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 3px;
  width: fit-content;
  margin-top: 10px;
}

.btn {
  background-color: #ff4b2b;
  color: #fff;
  border: none;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #ff6a4b;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 500px; /* Reduced max-width for better fit with content area */
  width: 100%;
  height: auto;
  border-radius: 3rem;
}

/* Stats related styles */

section.stats {
  text-align: center;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #0b1220;
}

.lead {
  color: #6b7785;
  margin-bottom: 44px;
  font-size: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 42px;
  padding: 20px 10px;
}

.stat-item {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
}

.stat-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.stat-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0b1220;
  margin-bottom: 8px;
}

.stat-caption {
  color: #6b7785;
  font-size: 0.95rem;
}

.cta-btn {
  display: inline-block;
  background: #0b0b0b;
  color: #fff;
  padding: 14px 34px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .features-grid {
    width: 100% !important;
  }

  .stats-bg-layer {
    display: none;
  }

  section.stats {
    background-color: #f9fafb;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    margin-top: 40px;
    border-radius: 10px;
  }

  .hero-form input {
    width: 100%;
  }

  .stats-grid {
    flex-direction: column;
    gap: 28px;
  }

  .stat-item {
    max-width: 100%;
  }

  .image-grid {
    flex-direction: column;
  }

  .image-grid img {
    width: 100% !important;
    max-height: none !important;
  }
}

section.fitness-software {
  padding: 80px 0;
}

.image-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.image-grid img {
  width: 100%;
  max-height: 500px;
  border-radius: 10px;
}

section.features {
  background: #ffff;
  padding: 80px 0;
  text-align: center;
}

.features-grid {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px 40px;
  justify-items: center;
}

.feature-item {
  max-width: 300px;
  border: 2px dotted #e5e7eb;
  border-radius: 15px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #ff4b2b;
}

.feature-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-item p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.favorite-apps-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  text-align: left;
}

.favorite-apps-grid img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .favorite-apps-grid {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
}

.favorite-apps {
  background: #ffff;
  padding: 80px 0;
  text-align: center;
}

.pricing {
  background: #e2e8f0;
  padding: 80px 0 0 0;
  overflow: hidden;
}

.pricing-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.pricing-grid img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
}

.pricing-content {
  text-align: left;
}

@media (max-width: 900px) {
  .pricing-grid {
    flex-direction: column;
    gap: 40px;
  }

  .pricing-content,
  .fitness-journey-heading {
    text-align: center;
  }
}

.coach {
  background: #ffff;
  padding: 80px 0;
}

.cta-section {
  background: #f7f59a;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: #0b1220;
  margin-bottom: 16px;
}

.cta-section .lead {
  color: #6b7785;
  margin-bottom: 40px;
}

.cta-section .cta-btn {
  margin-bottom: 20px;
}

.cta-disclaimer {
  color: #6b7785;
  font-size: 0.9rem;
}

.gym-app-features {
  background: #f9fafb;
  padding: 80px 0;
  text-align: center;
}

.gym-app-grid {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

.gym-app-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gym-app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.studio-owners-section {
  background: #f9fafb;
  padding: 80px 0;
  text-align: center;
}

.studio-owners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.studio-owner-card {
  overflow: hidden;
  background: white;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px dotted #e5e7eb;
}

.studio-owner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 2px dotted #ff4b2b;
}

.studio-owner-card img {
  width: 100%;

  /* border-radius: 15px; */
  margin-bottom: 30px;
}

.studio-owner-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0b1220;
}

.studio-owner-card ul {
  list-style: none;
  text-align: left;
  padding: 0 30px 30px 30px;
}

.studio-owner-card li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #374151;
}

.studio-owner-card li::before {
  content: "✓";
  color: #ff4b2b;
  margin-right: 12px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .studio-owners-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.payment-section {
  background: #fff;
  padding: 80px 0;
}

.payment-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}

.payment-left {
  flex: 1;
}

.payment-left h2 {
  margin-bottom: 20px;
}

.payment-left p {
  color: #6b7280;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.payment-right {
  flex: 1;
}

.payment-features {
  list-style: none;
  margin-bottom: 40px;
}

.payment-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #374151;
}

.payment-features li::before {
  content: "✓";
  color: #ff4b2b;
  margin-right: 12px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.payment-image {
  margin-top: 20px;
}

.payment-image img {
  width: 100%;
  max-width: 400px;
}

@media (max-width: 900px) {
  .payment-layout {
    flex-direction: column;
    gap: 40px;
  }
}

.feature-section {
  padding: 80px 0;
  background: #fff;
}

.feature-section:nth-child(even) {
  background: #f9fafb;
}

.feature-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-layout.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
  text-align: left;
}

.feature-content h2 {
  margin-bottom: 30px;
}

.feature-list {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1rem;
}

.feature-list li::before {
  content: "✓";
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.feature-list h4 {
  font-weight: 600;
  margin-bottom: 5px;
  color: #0b1220;
}

.feature-list p {
  color: #6b7280;
  font-size: 0.9rem;
}

.feature-image {
  flex: 1;
}

.feature-image img {
  width: 100%;
  border-radius: 15px;
}

@media (max-width: 900px) {
  .feature-layout,
  .feature-layout.reverse {
    flex-direction: column;
    gap: 40px;
  }

  .feature-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.management-section {
  background: #f9fafb;
  padding: 80px 0;
  text-align: center;
}

.management-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
}

.management-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.management-item img {
  width: 100%;
  max-width: 300px;
  margin-bottom: 30px;
  border-radius: 15px;
}

.management-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0b1220;
}

.management-item ul {
  list-style: none;
  text-align: left;
}

.management-item li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #6b7280;
}

.management-item li::before {
  content: "✓";
  color: #ff4b2b;
  margin-right: 12px;
  font-weight: bold;
}

.coaching-experience {
  background: #1a1a1a;
  color: white;
  padding: 80px 0 0 0;
  text-align: center;
  overflow: hidden;
}

.coaching-experience h2 {
  color: white;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.coaching-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 60px;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.coaching-feature {
  display: flex;
  align-items: center;
  text-align: left;
}

.coaching-feature::before {
  content: "✓";
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.coaching-mockup {
  margin-top: 40px;
}

.coaching-mockup img {
  width: 100%;
  max-width: 1000px;
  border-radius: 15px;
  position: relative;
  bottom: -10px;
}

@media (max-width: 900px) {
  .coaching-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .management-grid {
    flex-direction: column;
    gap: 40px;
  }
}

.gym-app-card img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.gym-app-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #0b1220;
}

.gym-app-card p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.fitness-journey-heading {
  text-align: left;
  max-width: 500px;
}

/* Trust Section */
.trust-section {
  background: #f8f9fa;
  padding: 80px 0;
  text-align: center;
}

.trust-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0b1220;
  margin-bottom: 20px;
}

.trust-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.ratings-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 50px 0;
}

.rating-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.rating-item img {
  width: 100%;
  max-width: 200px;
}

.rating-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.stars {
  font-size: 1.5rem;
  color: #fbbf24;
}

.rating-item p {
  color: #374151;
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .ratings-grid {
    flex-direction: column;
    gap: 40px;
  }

  .trust-section h2 {
    font-size: 2rem;
  }
}

.wpcf7-response-output {
    color: white;
}
.hero-form {
  margin: 0 auto;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-form input {
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #ff4b2b;
  border-radius: 5px;
  outline: none;
  width: 100%;
}

.hero-form input::placeholder {
  color: #aaa;
}

.feature-section .container {
    padding: 0px;
}