﻿/* Checkout Progress Styles */
.checkout-progress-container {
  margin: 20px 0;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.checkout-progress {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Progress Bar */
.progress-bar {
  position: absolute;
  top: 35px;
  left: 60px;
  right: 60px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  z-index: 1;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  border-radius: 2px;
  transition: width 0.6s ease;
  width: 0%;
}

  .progress-fill[data-step="1"] {
    width: 0%;
  }

  .progress-fill[data-step="2"] {
    width: 20%;
  }

  .progress-fill[data-step="3"] {
    width: 40%;
  }

  .progress-fill[data-step="4"] {
    width: 60%;
  }

  .progress-fill[data-step="5"] {
    width: 80%;
  }

  .progress-fill[data-step="6"] {
    width: 100%;
  }

/* Steps Container */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.checkout-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #666;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 8px;
}

  .step-link:hover {
    text-decoration: none;
    color: #333;
    background: rgba(76, 175, 80, 0.1);
  }

/* Step Circle */
.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-icon {
  font-size: 18px;
  color: #999;
  transition: all 0.3s ease;
}

.step-number {
  font-size: 16px;
  font-weight: bold;
  color: #999;
  display: none;
}

.step-label {
  font-size: 14px;
  font-weight: 500;
  margin-top: 5px;
  transition: all 0.3s ease;
}

/* Active Step */
.checkout-step.active .step-circle {
  background: linear-gradient(45deg, #2196F3, #1976D2);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.checkout-step.active .step-icon {
  color: white;
  animation: pulse 2s infinite;
}

.checkout-step.active .step-label {
  color: #2196F3;
  font-weight: 600;
}

.checkout-step.active .step-link {
  color: #2196F3;
}

/* Completed Step */
.checkout-step.completed .step-circle {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
}

.checkout-step.completed .step-icon {
  color: white;
}

.checkout-step.completed .step-label {
  color: #4CAF50;
  font-weight: 600;
}

.checkout-step.completed .step-link {
  color: #4CAF50;
}

/* Completed steps show checkmark */
.checkout-step.completed .step-icon::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.checkout-step.completed .step-icon {
  font-size: 16px;
}

/* Hover Effects */
.checkout-step:not(.active):not(.completed) .step-link:hover .step-circle {
  background: #f0f0f0;
  transform: scale(1.05);
}

.checkout-step:not(.active):not(.completed) .step-link:hover .step-icon {
  color: #666;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .checkout-progress-container {
    padding: 15px;
  }

  .checkout-steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .checkout-step {
    flex: 0 0 calc(50% - 10px);
    margin: 5px;
  }

  .progress-bar {
    display: none;
  }

  .step-circle {
    width: 40px;
    height: 40px;
  }

  .step-icon {
    font-size: 16px;
  }

  .step-label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .checkout-step {
    flex: 0 0 calc(100% - 10px);
  }

  .step-link {
    flex-direction: row;
    text-align: left;
    padding: 15px;
  }

  .step-circle {
    margin-right: 15px;
    margin-bottom: 0;
  }

  .step-label {
    margin-top: 0;
    font-size: 14px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .checkout-progress-container {
    background: #2d2d2d;
    color: #fff;
  }

  .progress-bar {
    background: #444;
  }

  .step-circle {
    background: #444;
  }

  .step-icon {
    color: #bbb;
  }

  .step-label {
    color: #bbb;
  }

  .step-link {
    color: #bbb;
  }

    .step-link:hover {
      background: rgba(76, 175, 80, 0.2);
    }
}

/* Print Styles */
@media print {
  .checkout-progress-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .progress-bar {
    display: none;
  }

  .step-circle {
    background: #f0f0f0 !important;
  }

  .step-icon {
    color: #666 !important;
  }
}
