:root {
  --primary-color: #2A9D8F;
  --primary-color-dark: #238f7f; 
  --secondary-color: #264653;
  --accent-color: #E9C46A;
  --error-color: #E76F51;
  --success-color: #2A9D8F;
  --bg-color: #ffffff;
  --text-color: #333333;
  --input-bg: #f8f9fa;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --input-bg: #2d2d2d;
  --secondary-color: #E9C46A;
}

/* Global Styles */
* {
  box-sizing: border-box;
  transition: var(--transition);
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 20px;
}

/* Progress Bar */
.progress-bar {
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
  display: flex;
  justify-content: space-between;
}
.progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: var(--primary-color);
  transform: translateY(-50%);
  z-index: -1;
  width: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);

}
.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-step-active {
  background: #28a745; /* Green color for active steps */
  color: white;
  transform: scale(1.1);
}

/* Form Container */
.form-container {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  animation: slideUp 0.5s ease;
}

/* Steps */
.step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}
.step.active {
  display: block;
}

/* Headings */
.step h2, .confirmation-section h3 {
  color: var(--secondary-color);
}

/* Service Buttons */
.services {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.service-btn {
  padding: 1.5rem;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  background: var(--bg-color);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.service-btn.active {
  border-color: var(--primary-color);
  background: rgba(42, 157, 143, 0.1);
  transform: translateY(-3px);
}

[data-theme="light"] .service-btn i {
  font-size: 2.5rem;     
  color: #333333;        
  margin-bottom: 0.5rem; 
}

[data-theme="light"] .service-btn h3 {
  color: #333333;        
}

[data-theme="light"] .service-btn p {
  color: #333333;
}

.service-btn i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.service-btn.active {
  border-color: var(--primary-color);
  background: rgba(42, 157, 143, 0.1);
  transform: translateY(-3px);
}

/* Calendar */
.calendar {
  background: var(--input-bg);
  padding: 0.75rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.calendar-header {
  text-align: center;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.day {
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: var(--bg-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.day:hover {
  background-color: var(--primary-color);
  color: #fff;
}
.day.active {
  background: var(--primary-color);
  color: #fff;
}
.day.disabled {
  background: #eee;
  color: #ccc;
  cursor: not-allowed;
}

#notification {
  position: fixed;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 1em 2em;
  border-radius: 4px;
  display: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 1em;
  color: #000000;
}
.notification.error {
  background-color: #f44336;
}
.notification.info {
  background-color: #2196f3;
}
.notification.success {
  background-color: #4caf50;
}

/* Input Groups */
.input-group {
  margin-bottom: 1.5rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="range"] {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-color);
}

/* Time Slider Container */
.time-slider-container {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
.time-slider-group {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  align-items: center;
  gap: 1rem;
}

/* Price Display */
.price p {
  margin: 0.5rem 0;
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.navigation-buttons button {
  flex: 1;
}
.prev-btn {
  margin-right: 10px;
}
.next-btn {
  margin-left: 10px;
}
button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
}
button:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

/* Checkbox Styling */
.rut label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.rut input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
}
.rut input[type="checkbox"]:checked {
  background-color: var(--primary-color);
}
.rut input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 3px;
  font-size: 16px;
  color: #fff;
}

/* Review Section */
#review {
  background: var(--input-bg);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

/* Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .form-container {
    padding: 1rem;
    margin: 1rem;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .navigation-buttons {
    flex-direction: column;
  }
  .prev-btn, .next-btn {
    margin: 5px 0;
  }
}
