/* B2B Page Styles */

/* Hero Section */
.b2b-hero {
  height: 70vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: linear-gradient(135deg, #000000 0%, #555 50%, #f7be16 100%);
  overflow: hidden;
}

.b2b-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  opacity: 0.1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(33, 33, 33, 0.8) 0%, rgba(41, 41, 41, 0.6) 100%);
  z-index: 2;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.hero-content {
  color: white;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.b2b-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #f7be16;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* B2B Container - Specific to avoid conflicts */
.b2b-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* B2B Section Title */
.b2b-section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
  position: relative;
}

.b2b-section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #333, #f7be16);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Problem Section */
.b2b-problem-section {
  padding: 5rem 0;
  background-color: #f8fafc;
}

.b2b-problem-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.b2b-problem-text h2 {
  font-size: 2.25rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.b2b-problem-text p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.b2b-problem-list {
  list-style: none;
  padding: 0;
}

.b2b-problem-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #555;
}

.b2b-problem-list i {
  color: #f7be16;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.b2b-problem-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.b2b-benefits-section {
  padding: 5rem 0;
  background: white;
}

.b2b-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.b2b-benefit-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.b2b-benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: #f7be16;
}

.b2b-benefit-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #333, #555);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.b2b-benefit-icon i {
  font-size: 2rem;
  color: white;
}

.b2b-benefit-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.b2b-benefit-card p {
  color: #666;
  line-height: 1.6;
}

/* Comparison Section */
.b2b-comparison-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.b2b-comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.b2b-comparison-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
}

.b2b-comparison-table th,
.b2b-comparison-table td {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.b2b-comparison-table th {
  background: #333;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.b2b-spalathor-column {
  background: #fff8e1 !important;
  color: #333 !important;
  font-weight: 600;
}

.b2b-comparison-table .fas.fa-check {
  color: #10b981;
  font-size: 1.2rem;
}

.b2b-comparison-table .fas.fa-times {
  color: #ef4444;
  font-size: 1.2rem;
}

.b2b-comparison-table .fas.fa-exclamation-triangle {
  color: #f59e0b;
  font-size: 1.2rem;
}

/* Testimonial Section */
.b2b-testimonial-section {
  padding: 5rem 0;
  background: white;
}

.b2b-testimonial-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, #333, #555);
  border-radius: 20px;
  padding: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.b2b-testimonial-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.05;
  animation: float 20s linear infinite;
}

.b2b-quote-icon {
  font-size: 3rem;
  color: #f7be16;
  margin-bottom: 1.5rem;
}

.b2b-testimonial-content blockquote {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.b2b-testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.b2b-author-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.b2b-author-info p {
  opacity: 0.8;
}

.b2b-company-logo img {
  height: 50px;
  opacity: 0.8;
}

/* CTA Section */
.b2b-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f7be16, #fbbf24);
  text-align: center;
}

.b2b-cta-content h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.b2b-cta-content p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.b2b-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.b2b-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.b2b-cta-btn.primary {
  background: #333;
  color: white;
}

.b2b-cta-btn.primary:hover {
  background: #444;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(51, 51, 51, 0.3);
}

.b2b-cta-btn.secondary {
  background: white;
  color: #333;
  border: 2px solid #333;
}

.b2b-cta-btn.secondary:hover {
  background: #333;
  color: white;
  transform: translateY(-2px);
}

/* Quote Form Section */
.b2b-quote-form-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.b2b-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.b2b-form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.b2b-form-header h2 {
  font-size: 2.25rem;
  color: #333;
  margin-bottom: 1rem;
}

.b2b-form-header p {
  color: #666;
  font-size: 1.1rem;
}

.b2b-quote-form {
  display: grid;
  gap: 1.5rem;
}

.b2b-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.b2b-form-group {
  display: flex;
  flex-direction: column;
}

.b2b-form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.b2b-form-group input,
.b2b-form-group select,
.b2b-form-group textarea {
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.b2b-form-group input:focus,
.b2b-form-group select:focus,
.b2b-form-group textarea:focus {
  outline: none;
  border-color: #f7be16;
  box-shadow: 0 0 0 3px rgba(247, 190, 22, 0.1);
}

.b2b-checkbox-group {
  flex-direction: row;
  align-items: center;
}

.b2b-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.b2b-checkbox-label input[type="checkbox"] {
  margin-right: 0.75rem;
  transform: scale(1.2);
}

.b2b-submit-btn {
  background: linear-gradient(135deg, #333, #555);
  color: white;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.b2b-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(51, 51, 51, 0.3);
}

/* Enhanced Mobile Responsiveness Fixes */
/* Prevent horizontal scrolling on the entire page */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Improved Media Queries for Mobile */
@media (max-width: 768px) {
  /* Fix for hero text being hidden under header */
  .b2b-hero {
    padding-top: 120px; /* Increase top padding to push content below header */
    height: auto; /* Allow height to adjust based on content */
    min-height: 500px;
  }

  .hero-container {
    padding: 20px 15px;
  }

  .hero-content {
    padding: 0 10px;
  }

  .b2b-hero h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    width: 100%;
    word-wrap: break-word; /* Ensure text wraps properly */
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    width: 100%;
    word-wrap: break-word;
    margin-bottom: 2rem;
  }

  /* Fix for problem section image */
  .b2b-problem-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .b2b-problem-image {
    width: 100%;
    height: auto;
  }

  .b2b-problem-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-width: 250px;
  }

  /* Fix for comparison table overflow */
  .b2b-comparison-table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling only within the table wrapper */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    max-width: 100%;
    margin-bottom: 20px;
  }

  .b2b-comparison-table {
    min-width: 100%; /* Ensure table takes at least full width */
    width: auto; /* Allow table to be wider if needed */
  }

  .b2b-comparison-table th,
  .b2b-comparison-table td {
    padding: 10px; /* Reduce padding */
    font-size: 0.85rem; /* Smaller font size */
    white-space: normal; /* Allow text to wrap */
    word-break: break-word; /* Break long words */
  }

  /* Add visual indicator that table is scrollable */
  .b2b-comparison-section::after {
    content: "← Swipe →";
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
  }

  /* Fix for form inputs and button overflow */
  .b2b-form-wrapper {
    padding: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .b2b-quote-form {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .b2b-form-row {
    display: flex;
    flex-direction: column; /* Stack form fields vertically */
    gap: 1rem;
    margin-bottom: 0;
  }

  .b2b-form-group {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0; /* Remove padding that was causing too much space */
  }

  .b2b-form-group input,
  .b2b-form-group select,
  .b2b-form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .b2b-submit-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Fix for checkbox alignment */
  .b2b-checkbox-group {
    padding-left: 0;
  }

  .b2b-checkbox-label {
    display: flex;
    align-items: flex-start;
  }

  .b2b-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
  }

  /* Additional fixes for other sections */
  .b2b-container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .b2b-benefits-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .b2b-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .b2b-cta-btn {
    width: 100%;
    margin: 5px 0;
    box-sizing: border-box;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .b2b-hero h1 {
    font-size: 1.75rem;
  }

  .b2b-form-header h2 {
    font-size: 1.75rem;
  }

  .b2b-section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .b2b-problem-text h2 {
    font-size: 1.75rem;
  }

  .b2b-cta-content h2 {
    font-size: 1.75rem;
  }

  .b2b-cta-content p {
    font-size: 1rem;
  }

  .b2b-benefit-card {
    padding: 1.5rem;
  }
}
