/* ========================================
   PRODUCT SELECTION WIZARD - STYLES
   Step-by-step product selection flow
   ======================================== */

/* Wizard Container */
.wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wizard-overlay.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.wizard-container {
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Wizard Header */
.wizard-header {
  padding: 30px 40px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wizard-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.wizard-close {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wizard-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Progress Bar */
.wizard-progress {
  padding: 25px 40px;
  background: rgba(255, 255, 255, 0.02);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.progress-line-fill {
  height: 100%;
  background: linear-gradient(90deg, #2d8f5f 0%, #4ade80 100%);
  transition: width 0.5s ease;
  width: 0%;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  position: relative;
}

.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: 600;
  transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
  background: linear-gradient(135deg, #2d8f5f 0%, #4ade80 100%);
  border-color: #2d8f5f;
  color: #fff;
  box-shadow: 0 0 20px rgba(45, 143, 95, 0.5);
}

.progress-step.completed .progress-circle {
  background: #0c4326;
  border-color: #0c4326;
  color: #fff;
}

.progress-label {
  color: #999;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.progress-step.active .progress-label {
  color: #4ade80;
}

.progress-step.completed .progress-label {
  color: #2d8f5f;
}

/* Wizard Body */
.wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
}

.wizard-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.step-description {
  color: #999;
  font-size: 16px;
  text-align: center;
  margin-bottom: 40px;
}

/* Design Selection Cards */
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.design-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.design-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 143, 95, 0.1) 0%, rgba(74, 222, 128, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.design-card:hover {
  border-color: rgba(45, 143, 95, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.design-card:hover::before {
  opacity: 1;
}

.design-card.selected {
  border-color: #2d8f5f;
  background: rgba(45, 143, 95, 0.1);
}

.design-card.selected::after {
  content: '✓';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: #2d8f5f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.design-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(45, 143, 95, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d8f5f;
}

.design-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.design-description {
  color: #999;
  font-size: 14px;
  line-height: 1.6;
}

/* Finish Type Selection */
.finish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.finish-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.finish-card:hover {
  border-color: rgba(45, 143, 95, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.finish-card.selected {
  border-color: #2d8f5f;
  background: rgba(45, 143, 95, 0.1);
}

.finish-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.finish-info {
  padding: 25px;
  text-align: center;
}

.finish-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.finish-description {
  color: #999;
  font-size: 14px;
}

/* Product Gallery in Wizard */
.wizard-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.wizard-product-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.wizard-product-card:hover {
  border-color: rgba(45, 143, 95, 0.5);
  transform: translateY(-3px);
}

.wizard-product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.02);
}

.wizard-product-info {
  padding: 15px;
}

.wizard-product-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.wizard-product-code {
  color: #999;
  font-size: 13px;
  margin-bottom: 15px;
}

.add-to-cart-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #2d8f5f 0%, #4ade80 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(45, 143, 95, 0.4);
}

.add-to-cart-btn.added {
  background: #0c4326;
  color: #fff;
}

/* Cart View */
.cart-container {
  max-width: 900px;
  margin: 0 auto;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.cart-item-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 15px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: rgba(45, 143, 95, 0.3);
}

.quantity-value {
  color: #fff;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.cart-item-remove {
  align-self: flex-start;
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  transition: transform 0.3s ease;
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.cart-empty-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

/* Appointment Form */
.appointment-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section-title {
  color: #4ade80;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.selected-items-summary {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.summary-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.summary-item-info {
  flex: 1;
}

.summary-item-name {
  color: #fff;
  font-weight: 600;
  margin-bottom: 3px;
}

.summary-item-meta {
  color: #999;
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  color: #4ade80;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #2d8f5f;
  box-shadow: 0 0 0 3px rgba(45, 143, 95, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input.error {
  border-color: #ff4444;
}

.error-message {
  color: #ff4444;
  font-size: 13px;
  margin-top: 5px;
}

/* Wizard Footer */
.wizard-footer {
  padding: 25px 40px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wizard-nav-buttons {
  display: flex;
  gap: 15px;
}

.wizard-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.wizard-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.wizard-btn-primary {
  background: linear-gradient(135deg, #2d8f5f 0%, #4ade80 100%);
  color: #fff;
}

.wizard-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(45, 143, 95, 0.4);
}

.wizard-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4ade80;
  font-weight: 600;
}

.cart-badge {
  background: #2d8f5f;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #2d8f5f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 40px;
  color: #fff;
}

.success-title {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.success-text {
  color: #999;
  font-size: 16px;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .design-grid,
  .finish-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wizard-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
  
  .wizard-header,
  .wizard-body,
  .wizard-footer {
    padding: 20px;
  }
  
  .design-grid,
  .finish-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .wizard-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .progress-steps {
    overflow-x: auto;
  }
  
  .progress-step {
    min-width: 80px;
  }
  
  .progress-label {
    font-size: 11px;
  }
  
  .cart-item {
    flex-direction: column;
  }
  
  .cart-item-image {
    width: 100%;
    height: 150px;
  }
}
