/* Subscription Configuration UI Styles - Compiled CSS */

.subscription-config-wrapper {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  min-height: 100vh;
  padding: 3rem 0;
}

.subscription-config-wrapper h1 {
  color: #1f2937;
  font-weight: 700;
  font-size: 2.5rem;
}

.subscription-config-wrapper .text-muted {
  color: #6b7280 !important;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-header .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-header .step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.subscription-step {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
}

.subscription-step:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.plan-card {
  position: relative;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.05),
    rgba(16, 185, 129, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.plan-card:hover {
  border-color: #22c55e;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card .plan-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.plan-card .plan-icon {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.plan-card .plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.plan-card .plan-duration {
  font-size: 2rem;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 1.5rem;
}

.plan-card .plan-check {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card.selected {
  border-color: #22c55e;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.05),
    rgba(16, 185, 129, 0.05)
  );
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.15),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.plan-card.selected .plan-check {
  opacity: 1;
  transform: scale(1);
  animation: checkmark 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.delivery-option-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delivery-option-card:hover {
  border-color: #22c55e;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.delivery-option-card .delivery-icon {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.delivery-option-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.delivery-option-card p {
  color: #6b7280;
  margin: 0;
}

.delivery-option-card.selected {
  border-color: #22c55e;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.05),
    rgba(16, 185, 129, 0.05)
  );
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.15),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.meal-slot-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.meal-slot-card:hover {
  border-color: #22c55e;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.meal-slot-card .slot-icon {
  font-size: 2.5rem;
  color: #22c55e;
  margin-bottom: 0.75rem;
}

.meal-slot-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.meal-slot-card p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.meal-slot-card.selected {
  border-color: #22c55e;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.05),
    rgba(16, 185, 129, 0.05)
  );
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.15),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.thali-card {
  position: relative;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thali-card:hover {
  border-color: #22c55e;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.thali-card:hover .thali-image {
  transform: scale(1.05);
}

.thali-card .thali-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f9fafb;
}

.thali-card .thali-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thali-card .thali-info {
  padding: 1.25rem;
}

.thali-card .thali-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.thali-card .thali-price {
  font-size: 1.25rem;
  color: #22c55e;
  margin-bottom: 0.75rem;
}

.thali-card .thali-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.thali-card .thali-check {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.thali-card.selected {
  border-color: #22c55e;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.15),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.thali-card.selected .thali-check {
  opacity: 1;
  transform: scale(1);
  animation: checkmark 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.delivery-days-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.day-chip {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  color: #1f2937;
}

.day-chip:hover {
  border-color: #22c55e;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.day-chip.selected {
  border-color: #22c55e;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1),
    rgba(16, 185, 129, 0.1)
  );
  color: #22c55e;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.day-chip.selected::after {
  content: "✓";
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: 700;
}

.food-item-card {
  position: relative;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.food-item-card:hover {
  border-color: #22c55e;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.food-item-card:hover .item-image {
  transform: scale(1.05);
}

.food-item-card:hover .btn-favorite {
  opacity: 1;
}

.food-item-card .item-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f9fafb;
}

.food-item-card .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.food-item-card .item-image .btn-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ef4444;
  font-size: 1.25rem;
}

.food-item-card .item-image .btn-favorite:hover {
  opacity: 1;
  transform: scale(1.1);
}

.food-item-card .item-info {
  padding: 1rem;
}

.food-item-card .item-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.food-item-card .veg-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.food-item-card.selected {
  border-color: #22c55e;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.15),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.order-summary-sticky {
  position: sticky;
  top: 20px;
}

.summary-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.summary-card .summary-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.summary-card .summary-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.summary-card .summary-item:last-child {
  border-bottom: none;
}

.summary-card .summary-item .summary-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.summary-card .summary-item .summary-value {
  font-size: 1rem;
  color: #1f2937;
  margin: 0;
  word-break: break-word;
}

.summary-card .summary-divider {
  border-top: 2px solid #e5e7eb;
  margin: 1.5rem 0;
}

.summary-card .btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-card .btn-success {
  background: linear-gradient(135deg, #22c55e, #10b981);
  border: none;
}

.summary-card .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.summary-card .btn-success:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.address-form .form-label {
  color: #1f2937;
  font-weight: 600;
}

.address-form .form-control,
.address-form .form-select {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.address-form .form-control:focus,
.address-form .form-select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.address-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.rounded-lg {
  border-radius: 12px;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes checkmark {
  from {
    transform: scale(0) rotate(-45deg);
  }
  to {
    transform: scale(1) rotate(0deg);
  }
}

.subscription-step {
  animation: slideInUp 0.5s ease-out;
}

.thali-check,
.plan-check {
  animation: checkmark 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 768px) {
  .subscription-config-wrapper h1 {
    font-size: 1.75rem;
  }

  .step-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .step-header .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .step-header .step-title {
    font-size: 1.25rem;
  }

  .plan-card {
    padding: 1.5rem 1rem;
  }

  .delivery-days-container {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
  }

  .day-chip {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .food-item-card .item-image {
    height: 150px;
  }

  .order-summary-sticky {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .subscription-config-wrapper {
    padding: 1rem;
  }

  .subscription-config-wrapper h1 {
    font-size: 1.5rem;
  }

  .subscription-step {
    padding: 1.5rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .subscription-step:first-child {
    border-radius: 8px;
  }

  .subscription-step:last-child {
    border-radius: 8px;
  }

  .step-header .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .plan-card,
  .delivery-option-card,
  .meal-slot-card {
    padding: 1rem;
  }

  .plan-icon,
  .delivery-icon,
  .slot-icon {
    font-size: 2rem !important;
  }

  .plan-name,
  .delivery-option-card h3,
  .meal-slot-card h3 {
    font-size: 1rem;
  }

  .plan-duration {
    font-size: 1.5rem;
  }

  .delivery-days-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-card {
    padding: 1rem;
  }

  .summary-card .btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
}

@media print {
  .subscription-config-wrapper {
    background: white;
  }

  .order-summary-sticky {
    position: static;
  }

  .btn {
    display: none;
  }
}
