@import url("variables.css");

body {
  font-family: var(--font-main);
  color: var(--dark-color);
  background-color: var(--white);
  line-height: 1.6;
  /* padding-top: 80px; /* Adjust this value based on actual navbar height */
}

* {
  box-sizing: border-box;
}

/* .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
} */

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

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

#features {
  background-color: #fff;
  padding: 8rem 0;
}

.primary-color {
  color: var(--primary-color);
}

.card {
  border-radius: 1.25rem;
  border: 1px solid #edf0f2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;

  .card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid #ffe1e1;
    background-color: #fff1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }
}

.card-body {
  /* display: flex;
  flex-direction: column; */
  /* gap: 2.75rem; */
  padding: 0;

  h5,
  p {
    font-size: 0.875rem;
    color: #000;
  }

  h5 {
    font-weight: 700;
  }

  p {
    font-weight: 400;
  }
}

.form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

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

.navbar-brand,
.navbar-nav .nav-link {
  color: var(--dark-color) !important;
}

.navbar-collapse {
  flex-grow: unset;
}

.hero {
  background-image: url("../images/hero-bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--dark-color);
  padding: 8rem 0;

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;

    p {
      font-size: 0.875rem;
    }

    img {
      max-width: 100%;
    }
  }
}

.platform-target {
  background-color: #2f3237;
  padding: 8rem 0;

  h2 {
    color: var(--white);
  }

  .list-group {
    gap: 2rem;

    .list-group-item {
      padding: 1.5rem;
      display: flex;
      gap: 1.5rem;
      align-items: center;
      background-color: transparent;
      color: var(--light-color);
      transition: all 0.3s ease-in-out;
      cursor: pointer;
      /* Add cursor pointer for better UX */

      span {
        font-size: 1.75rem;
        font-weight: 600;
      }

      .list-group-item-body {
        h5 {
          font-size: 0.875rem;
          font-weight: 700;
        }

        p {
          margin: 0;
          font-size: 0.875rem;
        }
      }

      &:hover,
      &.active {
        background-color: var(--primary-color);
        color: var(--white);
      }
    }
  }

  /* Image transition effect */
  .platform-image {
    transition: opacity 0.5s ease-in-out;
  }
}

.how-screvia-works {
  /* background: #fff; */
  padding: 8rem 0;
}

.how-screvia-works .how-works-header h2 {
  /* font-weight: 700;
  font-size: 2rem; */
  color: #000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.how-screvia-works .how-works-header p {
  color: #000;
  font-size: 0.875rem;
  /* margin-top: 1.5rem; */
  /* font-weight: 400; */
}

.how-screvia-works .timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-right: 2.5rem;
}

/* .how-screvia-works .timeline::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #e3e6ea;
  z-index: 0;
} */
.how-screvia-works .timeline-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  gap: 1.25rem;
}

.how-screvia-works .timeline-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3e6ea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border: 2px solid #edf0f2;
  background: #f5f7f8;
}

.how-screvia-works .timeline-step:not(:last-child) .timeline-icon::before {
  content: "";
  position: absolute;
  right: 50%;
  top: 100%;
  width: 0.125rem;
  height: calc(100% + 2.5rem);
  background: #e3e6ea;
  z-index: -1;
}

.how-screvia-works .timeline-icon.bg-red {
  background: #fff1f1;
  border: 2px solid #f83b3b;
}

.how-screvia-works .timeline-step h5 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #000;
}

.how-screvia-works .timeline-step p {
  font-size: 0.875rem;
  color: #000;
  margin: 0;
}

@media (max-width: 991.98px) {
  .how-screvia-works .timeline {
    margin: 0 0 2rem 0;
  }
}

/* Pricing Section */
.pricing-section {
  padding: 8rem 0;
  background-color: #edf0f2;
  /* Light gray background */
}

.plan-card {
  /* background-color: #fff; */
  border: 1px solid #dee3e7;
  border-radius: 1.5rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Make cards same height */
}

.plan-card-head {
  height: 10rem;
}

.plan-card .plan-name {
  font-size: 1rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 0;
}

.plan-card .plan-price {
  font-size: 2.125rem;
  font-weight: 700;
  color: #23272a;
  /* margin-bottom: 0.25rem; */
}

.plan-card .plan-enterprise-contact {
  font-size: 1rem;
  /* padding: 1rem 0; */
  /* margin-bottom: 1.5rem; */
  font-weight: 700;
  color: #000;

  p {
    margin: 0;
  }
}

.plan-card .plan-screens {
  font-size: 1rem;
  color: #2f3237;
  font-weight: 400;
  /* margin-bottom: 1.5rem; */
}

.plan-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  /* text-align: right; */
}

.plan-card .plan-features li {
  font-size: 1rem;
  color: #2f3237;
  font-weight: 600;
  padding: 1rem 1.25rem;
  margin: 0 -1rem;
}

.plan-card .plan-features li:nth-child(even) {
  background-color: #fff;
}

.plan-card .plan-features .icon-check,
.plan-card .plan-features .icon-cross {
  margin-left: 0.5rem;
  /* Space between icon and text */
  font-weight: bold;
}

.plan-card .plan-features .icon-check {
  color: #28a745;
  /* Green for check */
}

.plan-card .plan-features .icon-cross {
  color: #dc3545;
  /* Red for cross */
}

.plan-card .btn-select-plan {
  background-color: #2f3237;
  color: #fff;
  border: 2px solid #2f3237;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  width: 100%;
  margin-top: 3rem;
}

.plan-card .btn-select-plan:hover {
  background-color: #44484c;
  border-color: #44484c;
}

/* Selected Plan Card Styles */
.plan-card.selected {
  border-color: var(--primary-color);
  /* Use primary color for border */
}

.plan-card.selected .btn-select-plan {
  background-color: var(--primary-color);
  /* Use primary color for button */
  border-color: var(--primary-color);
  /* Match button background */
}

.plan-card.selected .btn-select-plan:hover {
  background-color: color-mix(in srgb,
      var(--primary-color) 90%,
      black);
  /* Darken primary color on hover */
  border-color: color-mix(in srgb,
      var(--primary-color) 90%,
      black);
  /* Darken primary color on hover */
}

/* Main Features List */
.main-features-list {
  padding: 1.25rem 0;
  height: 100%;
}

.main-features-list .features-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  text-align: right;
  height: 10rem;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 1rem 0;
}

.main-features-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.main-features-list ul li {
  font-size: 1rem;
  color: #2f3237;
  font-weight: 600;
  padding: 1rem 1.25rem;
  margin: 0 -1rem;
}

.main-features-list ul li:nth-child(even) {
  background-color: #fff;
}

/* Mobile Pricing Section */
@media (max-width: 991.98px) {
  .pricing-section {
    padding: 4rem 0;
  }

  .mobile-pricing-view {
    display: block;
  }

  .desktop-pricing-view {
    display: none;
  }

  .mobile-plan-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-plan {
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
  }

  .mobile-plan.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-features-container {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
  }

  .mobile-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-features-list li {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-features-list li:last-child {
    border-bottom: none;
  }

  .feature-name {
    font-weight: 600;
    color: #2f3237;
  }

  .feature-value {
    font-weight: 400;
  }

  .feature-value .icon-check {
    color: #28a745;
  }

  .feature-value .icon-cross {
    color: #dc3545;
  }
}

@media (min-width: 992px) {
  .mobile-pricing-view {
    display: none;
  }

  .desktop-pricing-view {
    display: block;
  }
}

/* Mobile Carousel Styles */
.mobile-plan-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 0 15px;
  /* Add some padding to prevent cards from touching edges */
}

.mobile-plan-carousel {
  display: flex;
  gap: 15px;
  transition: transform 0.3s ease-in-out;
  padding-bottom: 10px;
  /* Space for scrollbar if needed */
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  scrollbar-width: none;
  /* Hide scrollbar for Firefox */
}

.mobile-plan-carousel::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Chrome/Safari */
}

.mobile-plan-card {
  flex: 0 0 calc(100% - 30px);
  /* Full width minus gap */
  scroll-snap-align: start;
  min-width: 0;
  /* Prevent flex item overflow */
}

/* Carousel Navigation Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Adjust plan card width for larger mobile screens */
@media (min-width: 576px) {
  .mobile-plan-card {
    flex: 0 0 calc(50% - 15px);
    /* Show 2 cards at a time on larger phones */
  }
}

/* Hide carousel on desktop */
@media (min-width: 992px) {
  .mobile-plan-carousel-container {
    display: none;
  }
}

/* End Main Features List */

/* FAQ Section */
.faq-section {
  background-color: #fff;
  /* Light gray background, similar to pricing */
  padding: 8rem 0;
}

#faqAccordionScrevia .accordion-item {
  background-color: #f5f7f8;
  border: 1px solid #dee3e7;
  border-radius: 1.5rem;
  /* Rounded corners for items */
  margin-bottom: 1.5rem;
  overflow: hidden;
  /* Ensures border-radius is respected by children */
}

#faqAccordionScrevia .accordion-header .accordion-button {
  background-color: #f5f7f8;
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.125rem;
  text-align: right;
  border-radius: 0;
  /* Remove default radius as item has it */
  box-shadow: none;
  /* Remove default Bootstrap shadow */
  padding: 1.25rem 1.5rem;
}

#faqAccordionScrevia .accordion-header .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  /* Primary color for expanded question */
  box-shadow: none;
}

#faqAccordionScrevia .accordion-header .accordion-button::after {
  /* Custom accordion icon (Bootstrap's default is an SVG) */
  /* Position to the left for RTL */
  margin-right: auto;
  margin-left: 0;
  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");
}

#faqAccordionScrevia .accordion-header .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='var(--primary-color)'%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");
  transform: rotate(-180deg);
}

#faqAccordionScrevia .accordion-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: #2f3237;
  background-color: #f5f7f8;
}

.faq-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.faq-contact .contact-us-btn {
  background-color: #e9ecef;
  /* Light gray button */
  color: var(--dark-color);
  border: 1px solid #dee2e6;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
}

.faq-contact .contact-us-btn:hover {
  background-color: #ced4da;
  border-color: #bdbcbc;
}

/* End FAQ Section */

/* Contact Section */
.contact-section {
  background-color: #f5f7f8;
  /* Light gray background, consistent with FAQ */
  padding: 8rem 0;
}

.contact-intro .lead {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #000;
}

.contact-form .form-label {
  font-weight: 500;
  color: #2f3237;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.contact-form .form-control {
  background-color: #fff;
  /* White background for inputs */
  border: 1px solid #edf0f2;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-form .form-control::placeholder {
  color: #b3bbc6;
  font-size: 0.875rem;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
  background-color: #fff;
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: none;
}

/* End Contact Section */

/* CTA Banner Section */
.cta-banner-section {
  padding: 8rem 0;
}

.cta-banner {
  background-color: var(--primary-color);
  border-radius: 2.75rem;
  /* Rounded corners like the image */
  padding: 0 2rem;
  color: #fff;
  overflow: hidden;
  /* To ensure image doesn't break rounded corners if it's too large */
}

.cta-banner-img {
  width: auto;
  /* Adjust as needed */
  height: 100%;
}

.cta-banner-content {
  padding: min(4rem, 10vw);
  display: flex;
  align-items: center;
}

.cta-title {
  color: #fff;
  font-size: min(2rem, 5vw);
  /* Large, impactful text */
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0;
  /* Remove default margin if any */
}

/* End CTA Banner Section */

/* Footer Section */
.site-footer {
  background-color: #f5f7f8;
  /* White background for the footer */
  color: #2f3237;
  /* Default text color for footer */
  font-size: 1.1rem;
  padding: 4rem 0;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 400;
  /* color: var(--dark-color); */
  margin-bottom: 2.5rem;
  opacity: 0.7;
}

.site-footer ul {
  padding: 0;
}

.footer-links li,
.footer-contact-info li {
  margin-bottom: 1.25rem;
}

.footer-links a,
.footer-contact-info a {
  color: #2f3237;
  /* Default text color for footer */
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact-info a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
  /* Space between icons */
}

.social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: #edf0f2;
  /* Light gray background for icons */
  color: var(--dark-color);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icons .social-icon:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.footer-divider {
  border-top: 1px solid #e0e0e0;
  /* Light gray divider */
}

.copyright-text {
  padding: 1.25rem 0;
  display: flex;
  justify-content: flex-end;
}

.copyright-text p {
  font-size: 0.85rem;
  color: #777;
}

/* End Footer Styles */

/* Custom styles for active navigation link */
#mainNav .navbar-nav .nav-link.active,
#mainNav .navbar-nav .nav-link.show {
  color: var(--primary-color) !important;
  /* Emphasize active link with primary color */
  font-weight: bold;
  /* Make text bolder */
  /* Optional: Add a subtle bottom border for more emphasis */
  /* border-bottom: 2px solid var(--primary-color); */
}

/* Authentication Page Styles (Login/Register) */
body.auth-page {
  background-color: #fff;
  /* Light gray background for the whole page */
  min-height: 100vh;
  display: flex;
  padding-top: 0;
}

.auth-form-container {
  padding: 4rem;
  width: 100%;

  .text-muted {
    font-size: 0.875rem;
    color: #000;
  }
}

/* Make sure the form container in HTML uses this class and not inline styles for background/padding */

.auth-form-container .form-label {
  font-weight: 500;
  /* Slightly bolder labels */
  color: #2f3237;
  /* Darker label color */
  font-size: 0.75rem;
}

.auth-form-container .form-control {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #edf0f2;
  /* Standard Bootstrap border */
  color: #b3bbc6;
  font-size: 0.875rem;
}

/* .auth-form-container .form-control:focus {
  border-color: var(--primary-color);
} */

.auth-form-container .input-group .form-control {
  border-top-right-radius: 1rem !important;
  border-bottom-right-radius: 1rem !important;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.auth-form-container .input-group .btn {
  border-top-left-radius: 1rem !important;
  border-bottom-left-radius: 1rem !important;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #edf0f2;
}

.auth-form-container .form-check {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0;
}

.auth-form-container .form-check-input {
  margin: 0;
}

.auth-form-container .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Illustration column specific styling */
.auth-illustration-column {
  background-color: #fff7f7;
  /* Light pinkish background from design */
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-illustration-column img {
  max-width: 80%;
  max-height: 80vh;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .main-features-list {
    margin-top: 2rem;
    /* Add space above features list on smaller screens */
  }

  .auth-form-container {
    padding: 0rem !important;
    padding-top: 2rem;
  }

  /* .pricing-section .row > .col-lg-3,
  .pricing-section .row > .col-lg-9 {
    order: 0 !important;
  } */
}