@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
/* Tailwind is included via CDN in the HTML */

/* Custom overrides */
/* Animation for flip steps */
.flip-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.flip-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom accordion styles */
.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  background-color: #fff;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
}

.accordion-button:not(.collapsed) {
  color: #0c63e4;
  background-color: #e7f1ff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.accordion-collapse {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.accordion-collapse.show {
  height: auto;
}

/* Custom tooltip styles */
.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  margin: 0;
  font-family: var(--bs-font-sans-serif);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-align: start;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  font-size: 0.875rem;
  word-wrap: break-word;
  opacity: 0;
  transition: opacity 0.15s linear;
}

.tooltip.show {
  opacity: 0.9;
}

.tooltip-inner {
  max-width: 200px;
  padding: 0.25rem 0.5rem;
  color: #fff;
  text-align: center;
  background-color: #000;
  border-radius: 0.25rem;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
}

.hero {
  background: #0d6efd;
  background-image: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
}

/* Custom emerald green for primary buttons */
.btn-success {
  background-color: #014826;
  border-color: #014826;
}

.btn-success:hover {
  background-color: #013a1f;
  border-color: #013a1f;
}

/* Sticky navigation */
.sticky-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Sticky CTA footer */
#sticky-cta {
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary, .btn-success {
  background: #198754;
  border-color: #198754;
}

.btn-primary:hover, .btn-success:hover {
  background: #146c43;
  border-color: #146c43;
}

.error-msg {
  color: #dc3545;
  display: none;
}

/* Accessibility improvements */
.form-control:focus,
.btn:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: 0;
}

/* High contrast text for better readability */
.text-white {
  color: #ffffff !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Circular progress */
.circular-chart {
  width: 100%;
  height: auto;
}

.circle-bg {
  stroke-width: 3;
  fill: none;
}

.circle {
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  transition: stroke-dasharray 0.5s ease;
}

/* Testimonial carousel styling */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.7;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 10px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }
  
  .py-12 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  #sticky-cta {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
  
  #testimonialCarousel .card {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  /* Ensure flip steps stack properly on mobile */
  .row-cols-md-4 > .col {
    margin-bottom: 1.5rem;
  }
  
  /* Improve form spacing on mobile */
  .form-control, .form-select, .input-group {
    margin-bottom: 0.75rem;
  }
  
  /* Ensure carousel content is readable on mobile */
  .carousel-item .lead {
    font-size: 1.1rem;
  }
  
  /* Add more space above sticky footer to prevent overlap */
  .card-body {
    padding-bottom: 1.5rem;
  }
}

/* Add space at bottom to account for sticky CTA */
body {
  padding-bottom: 80px;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 70px;
  }
  
  /* Improve spacing for mobile forms */
  .form-label {
    margin-top: 0.5rem;
  }
  
  /* Ensure calculator is fully visible */
  #calculator .card {
    margin-bottom: 1rem;
  }
  
  /* Improve readability of testimonials on mobile */
  #testimonials .card-body {
    padding: 1.25rem;
  }
}
