:root {
  --primary-color: #fcd34d;
  --secondary-color: #4b5563;
  --accent-color: #f59e0b;
  --text-color: #374151;
  --background-color: #f3f4f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.3rem;
}

.logo-text {
  line-height: 1;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.contact-btn,
.provider-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn {
  background-color: #25d366;
  color: white;
}

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

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../assets/ironyback.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(252, 211, 77, 0.1); /* Very subtle yellow tint using primary color */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.hero:hover::before {
  opacity: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.hero p {
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.hero:hover h1 {
  transform: translateY(-5px);
}

.hero:hover p {
  transform: translateY(-3px);
}

.cta-btn {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services,
.categories {
  padding: 4rem 5%;
  background-color: var(--background-color);
}

.service-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card,
.category-card {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 4px solid transparent;
}

.service-card::after,
.category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(252, 211, 77, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.service-card:hover,
.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover::after,
.category-card:hover::after {
  opacity: 1;
}

.service-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.1);
}

.service-card h3,
.category-card h3 {
  transition: transform 0.3s ease;
}

.service-card:hover h3,
.category-card:hover h3 {
  transform: translateY(-2px);
  color: var(--accent-color);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 2rem 5%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.area-tag {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.area-tag:hover {
  background-color: var(--primary-color);
  color: var(--text-color);
}

.mt-2 {
  margin-top: 1rem;
}

/* Updated Cart Styles - Even wider and taller rectangle at bottom */
.cart-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: all 0.3s ease;
  width: 500px; /* Increased width */
  display: flex;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.cart-action {
  flex: 1;
  height: 70px; /* Increased height */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  color: var(--text-color);
  font-size: 1.1rem; /* Larger text */
}

.cart-action i {
  font-size: 1.3rem; /* Larger icons */
  margin-right: 8px;
}

.edit-order-btn {
  background-color: var(--primary-color);
  border-radius: 10px 0 0 10px;
}

.cart-icon {
  background-color: var(--accent-color);
  color: white;
  border-radius: 0 10px 10px 0;
  position: relative;
}

.cart-icon:hover, .edit-order-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.cart-icon.attention {
  animation: pulse 1.5s infinite;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Cart Item Selection Styles */
.service-card.selected,
.category-card.selected {
  border-bottom: 4px solid var(--accent-color);
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.2);
}

.service-card.selected {
  border: none;
  border-bottom: 4px solid var(--accent-color);
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
  background-color: rgba(252, 211, 77, 0.15);
  position: relative;
}

.service-card.selected::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* Vertical range slider */
.count-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  align-items: center;
}

.range-container {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Improved Number Picker UI */
.number-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--background-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.number-picker-value {
  font-size: 3.5rem; /* Larger font */
  font-weight: bold;
  color: var(--accent-color);
  width: 120px;
  text-align: center;
}

.number-picker-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 15px 0;
}

.number-picker-btn {
  width: 64px; /* Bigger buttons */
  height: 64px; /* Bigger buttons */
  border-radius: 50%;
  border: none;
  background-color: var(--accent-color);
  color: white;
  font-size: 1.8rem; /* Larger font */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.number-picker-btn:hover {
  transform: scale(1.1);
}

.number-picker-btn:active {
  transform: scale(0.95);
}

.number-pieces {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-top: 5px;
}

/* Range display text */
.range-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-top: 1rem;
}

/* Selected services summary */
.selected-services-summary {
  background-color: var(--background-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.selected-services-summary h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.selected-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selected-service-tag {
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Previous selections summary */
.previous-selections {
  background-color: var(--background-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.previous-selections h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.selection-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.selection-item:last-child {
  border-bottom: none;
}

.selection-label {
  font-weight: bold;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.time-slot {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot:hover {
  background-color: var(--primary-color);
}

.time-slot.selected {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.time-slot.disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
  border-color: #d1d5db;
  position: relative;
}

.time-slot.disabled::before {
  content: "\f023"; /* Lock icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: #9ca3af;
  opacity: 0.7;
}

.time-slot.disabled:hover {
  background-color: #e5e7eb;
  transform: none;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: #e8900a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
  background-color: #404852;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* User guidance message */
.selection-guide {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 0.5rem 0.75rem;
  border-radius: 12px 12px 0 0;
  margin: 0 auto;
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.15);
  max-width: 500px; /* Match cart width */
  position: fixed;
  bottom: 90px; /* Position right above the cart bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: 100%;
}

.selection-guide h3 {
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.selection-guide-step {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem 0;
  font-weight: bold;
  font-size: 0.8rem;
}

.selection-guide-step i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.selection-guide-step.completed i {
  color: #22c55e;
}

/* Add ripple animation */
@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Add fadeIn animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: scale(1);}
  40% {transform: scale(1.2);}
  60% {transform: scale(0.9);}
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ef4444;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 120;
  max-width: 90%;
  width: 500px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
}

.toast-notification i {
  font-size: 1.2rem;
}

@keyframes slideUp {
  0% {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Error state highlights */
.error-highlight {
  animation: errorPulse 1.5s ease;
}

@keyframes errorPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.7); }
}

/* Day selection styles */
.day-selection {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.day-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.day-option input[type="radio"] {
  margin-right: 0.5rem;
}

.day-option:hover {
  background-color: var(--primary-color);
}

.day-option input[type="radio"]:checked + .day-label {
  font-weight: bold;
}

.day-option input[type="radio"]:checked ~ .day-option {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Day selection styles - with disabled state */
.day-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #e5e7eb;
}

.day-option.disabled:hover {
  background-color: #e5e7eb;
  transform: none;
}

.day-option input[type="radio"]:disabled + .day-label {
  color: #9ca3af;
}

/* Location options */
.location-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.get-location-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.location-status {
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
  min-height: 24px;
}

.location-found {
  color: green;
  font-weight: bold;
}

.location-error {
  color: red;
}

.contact-btn, .cta-btn {
  background-color: #25d366;
  color: white;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-btn:hover, .cta-btn:hover {
  background-color: #21bd5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Category Card Clothes Count Badge */
.category-card {
  position: relative;
  overflow: visible; /* Allow badge to be visible outside card */
}

.clothes-count-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--accent-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 5;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: bounce 1s ease-out;
}

.category-card.selected .clothes-count-badge {
  opacity: 1;
  transform: scale(1);
}

.clothes-count-badge::after {
  content: "pcs";
  font-size: 0.6rem;
  position: absolute;
  bottom: 5px;
  opacity: 0.8;
}

/* Previous selections in time modal */
.previous-selections.time-selections {
  background-color: rgba(252, 211, 77, 0.15);
  border-left: 4px solid var(--accent-color);
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .service-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .footer-section {
    text-align: center;
  }

  .areas-grid {
    justify-content: center;
  }
}
