/* Pricing Section Styles */
main {
  background-color: #fff;
  color: #333;
  height: 100%;
  min-height: 90vh;
  padding-top: 80px;
}

.pricing-section {
  padding: 2rem;
  /* background: linear-gradient(to bottom, #111 0%, #1a1a1a 100%); */
  color: var(--gray);
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

.drone-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  color: var(--brown);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.pricing-header h1 {
  font-size: 2.8rem;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 1rem;
  font-weight: 700;
  /* background: linear-gradient(90deg, var(--brown), var(--beige)); */
  /* color: transparent; */
}

.pricing-header .subtitle {
  font-size: 1.3rem;
  /* color: rgba(255,255,255,0.7); */
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

/* Pricing Tabs */
.pricing-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pricing-tab {
  padding: 0.8rem 2rem;
  /* background: rgba(255,255,255,0.1); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: white rgba(255, 255, 255, 0.2);
  border: 1px solid ;
  color: var(--gray);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 50px;
  backdrop-filter: blur(5px);
}

.pricing-tab:hover {
  background: rgba(255,255,255,0.2);
}

.pricing-tab.active {
  background: var(--brown);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(116, 81, 60, 0.5);
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr); /* default: 4 item per row */
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #eaeaea;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  /* position: relative; */
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

.pricing-card.popular {
  border: 2px solid var(--brown);
  box-shadow: 0 10px 25px rgba(116, 81, 60, 0.1);
  transform: translateY(-10px);
}

.popular-tag {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--brown);
  color: white;
  padding: 0.3rem 2rem;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(116, 81, 60, 0.5);
}

.card-header {
  margin-bottom: 1.5rem;
  position: relative;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brown), var(--beige));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.card-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: var(--brown);
  position: relative;
  display: inline-block;
}

.price small {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.price::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--brown);
  border-radius: 3px;
}

.features {
  margin: 2rem 0;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.8rem;
  color: #555;
}

.feature::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--beige);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  /* background: linear-gradient(90deg, var(--brown), var(--beige)); */
  /* color: var(--dark); */
  background: var(--brown);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(116, 81, 60, 0.5);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: #8a5a44;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(116, 81, 60, 0.7);
}

.btn.popular-btn {
  background: linear-gradient(90deg, var(--brown), #a37a5a);
  color: white;
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.pricing-card {
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.3s; }
.pricing-card:nth-child(3) { animation-delay: 0.5s; }

@media (max-width: 480px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .price {
    font-size: 2rem;
  }

  .feature {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 767px) {
  .pricing-cards {
    grid-template-columns: 1fr; /* mobile: 1 item per row */
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .pricing-section {
      padding: 0 1rem 3rem;
  }
  
  .pricing-header h1 {
      font-size: 2rem;
  }
  
  .pricing-header .subtitle {
    font-size: 1rem;
  }
  
  .pricing-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .pricing-tab {
      padding: 0.6rem 1.2rem;
      font-size: 0.9rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 1.5rem;
  }
  .price {
    font-size: 2.2rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  .pricing-tabs {
    flex-direction: column;
    align-items: center;
  }

  .pricing-tab {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 1199px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr); /* tablet: 2 item per row */
  }
}

@media (max-width: 1200px) {
  .pricing-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* main {
            box-sizing: border-box;

            background: #f8f1e9;
            color: #333;
            margin: 0;
            padding: 20px;
            min-height: 100vh;
        } */

        .configurator-container {
          max-width: 800px;
          margin: 0 auto;
          position: relative;
      }

      .config-header {
          text-align: center;
          margin-bottom: 2rem;
      }

      .config-header h1 {
          color: var(--brown);
          margin-bottom: 0.5rem;
      }

      .config-header p {
          color: #666;
          margin-top: 0;
      }

      .config-steps {
          display: flex;
          overflow-x: auto;
          scroll-snap-type: x mandatory;
          gap: 20px;
          padding-bottom: 20px;
          margin-bottom: 30px;
          -webkit-overflow-scrolling: touch;
      }

      .config-step {
          scroll-snap-align: start;
          flex: 0 0 85%;
          background: rgba(255, 255, 255, 0.95);
          border-radius: 16px;
          padding: 25px;
          box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
          backdrop-filter: blur(10px);
          border: 1px solid rgba(0, 0, 0, 0.05);
          transition: transform 0.3s, box-shadow 0.3s;
      }

      .config-step.active {
          transform: translateY(-5px);
          box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
      }

      .step-title {
          display: flex;
          align-items: center;
          margin-bottom: 1.5rem;
      }

      .step-icon {
          width: 40px;
          height: 40px;
          background: var(--brown);
          color: white;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: 15px;
          font-size: 1.2rem;
      }

      .step-options {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
          gap: 15px;
          margin-bottom: 20px;
      }

      .option-card {
          background: white;
          border-radius: 12px;
          padding: 15px;
          text-align: center;
          cursor: pointer;
          transition: all 0.3s;
          border: 2px solid #eee;
          position: relative;
          overflow: hidden;
      }

      .option-card:hover {
          transform: translateY(-3px);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      }

      .option-card.selected {
          border-color: #d4a373;
          background: linear-gradient(135deg, rgba(212, 163, 115, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
      }

      .option-card.selected::after {
          content: '✓';
          position: absolute;
          top: 5px;
          right: 5px;
          width: 20px;
          height: 20px;
          background: #d4a373;
          color: white;
          border-radius: 50%;
          font-size: 12px;
          display: flex;
          align-items: center;
          justify-content: center;
      }

      .option-price {
          color: var(--brown);
          font-weight: bold;
          margin-top: 8px;
          font-size: 0.9rem;
      }

      /* Custom Input Section */
      .custom-input-section {
          margin-top: 20px;
          padding-top: 20px;
          border-top: 1px dashed #ddd;
      }

      .custom-input-group {
          display: flex;
          align-items: center;
          margin-bottom: 15px;
      }

      .custom-input-group label {
          flex: 1;
          margin-right: 10px;
          font-weight: 500;
      }

      .custom-input {
          flex: 2;
          display: flex;
          align-items: center;
      }

      .custom-input input {
          width: 80px;
          padding: 10px;
          border: 1px solid #ddd;
          border-radius: 8px;
          text-align: center;
          font-weight: bold;
          color: var(--brown);
      }

      .custom-input .stepper-btn {
          background: #8a6d5b;
          color: white;
          border: none;
          width: 36px;
          height: 36px;
          border-radius: 8px;
          font-size: 1rem;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: all 0.2s;
          margin: 0 5px;
      }

      .custom-input .stepper-btn:hover {
          background: #5a3e2e;
      }

      .checkbox-option {
          display: flex;
          align-items: center;
          background: white;
          padding: 15px;
          border-radius: 12px;
          margin-top: 15px;
          cursor: pointer;
      }

      .checkbox-option input {
          margin-right: 10px;
          accent-color: #d4a373;
      }

      /* Live Preview */
      .live-preview {
          position: sticky;
          bottom: 20px;
          background: var(--brown);
          color: white;
          padding: 20px;
          border-radius: 12px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          box-shadow: 0 10px 30px rgba(116, 81, 60, 0.3);
          z-index: 10;
          transform: translateY(20px);
          opacity: 0;
          animation: floatUp 0.5s forwards 0.3s;
      }

      .preview-price {
          font-size: 1.5rem;
          font-weight: bold;
      }

      .order-btn {
          background: white;
          color: var(--brown);
          border: none;
          padding: 10px 20px;
          border-radius: 8px;
          font-weight: bold;
          cursor: pointer;
          transition: all 0.3s;
      }

      .order-btn:hover {
          transform: translateY(-2px);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      }

      /* Step Indicators */
      .step-indicators {
          display: flex;
          justify-content: center;
          gap: 10px;
          margin-bottom: 20px;
      }

      .step-indicator {
          width: 10px;
          height: 10px;
          background: #ddd;
          border-radius: 50%;
          transition: all 0.3s;
      }

      .step-indicator.active {
          background: var(--brown);
          width: 25px;
          border-radius: 5px;
      }

      @keyframes floatUp {
          to {
              transform: translateY(0);
              opacity: 1;
          }
      }

      /* Battery Animation */
      .battery-option .battery-level {
          height: 20px;
          width: 40px;
          background: #e0e0e0;
          border-radius: 3px;
          margin: 0 auto 10px;
          position: relative;
          overflow: hidden;
      }

      .battery-option .battery-level::after {
          content: '';
          position: absolute;
          top: 2px;
          left: 2px;
          right: 2px;
          bottom: 2px;
          background: var(--brown);
          border-radius: 2px;
          transform: scaleY(0);
          transform-origin: bottom;
          transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
      }

      .battery-option.selected .battery-level::after {
          transform: scaleY(1);
      }

      /* Responsive Adjustments */
      @media (max-width: 600px) {
          .config-step {
              flex: 0 0 90%;
          }
          
          .step-options {
              grid-template-columns: 1fr 1fr;
          }
          
          .live-preview {
              flex-direction: column;
              text-align: center;
              gap: 15px;
          }
          
          .custom-input-group {
              flex-direction: column;
              align-items: flex-start;
          }
          
          .custom-input {
              width: 100%;
              margin-top: 10px;
          }
      }

      .summary-section {
          width: 100%;
          margin-bottom: 1rem;
      }

      .summary-section h3 {
          margin-top: 0;
          color: white;
          border-bottom: 1px solid rgba(255,255,255,0.1);
          padding-bottom: 0.5rem;
      }

      .summary-items {
          margin: 1rem 0;
      }

      .summary-item {
          display: flex;
          justify-content: space-between;
          margin: 0.5rem 0;
          font-size: 0.9rem;
      }

      .total-price {
          font-weight: bold;
          border-top: 1px solid rgba(255, 255, 255, 0.05);
          padding-top: 0.5rem;
          margin-top: 0.5rem;
          display: flex;
          justify-content: space-between;
      }

    /* Hide scrollbar but keep functionality */
    .config-steps {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .config-steps::-webkit-scrollbar {
      display: none;
    }

    .config-step-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      background: var(--primary);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 2;
      opacity: 0.7;
      transition: opacity 0.3s;
    }

    .config-step-nav:hover {
      opacity: 1;
    }

    .config-step-nav.prev {
      left: 10px;
    }

    .config-step-nav.next {
      right: 10px;
    }