@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=DynaPuff:wght@400..700&family=League+Gothic&family=Open+Sans:ital,wdth,wght@0,75..100,300..800;1,75..100,300..800&family=Playfair+Display&family=Poppins:wght@400;700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #000000 0%, #282828 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(43, 43, 43, 0.589);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(113, 113, 113, 0.1);
  overflow: hidden;
}

.header {
  background-image: url("/img/banner.png ");
  background-size: cover;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 30px 20px;
}

.header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.header p {
  font-size: 1rem;
  opacity: 0.9;
  font-family: "Poppins", sans-serif;
}

.booking-form {
  padding: 40px;
}

.step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step h2 {
  color: #0080ff;
  margin-bottom: 30px;
  font-size: 1.8rem;
  text-align: center;
  font-family: "Dancing Script", sans-serif;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #0080ff;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #2a2a2a;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #002fff;
}

.professionals-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.professional-card,
.service-card {
  border: 2px solid #8e8e8e;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.professional-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.professional-card.selected,
.service-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #002fff 0%, #5cadff 100%);
  color: rgb(255, 255, 255);
}

.professional-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
}

.professional-card h3,
.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.professional-card p,
.service-card p {
  margin-bottom: 10px;
  opacity: 0.8;
}

.experience {
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 600;
}

.professional-card.selected .experience {
  color: rgba(255, 255, 255, 0.9);
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #27ae60;
  display: block;
  margin-top: 10px;
}

.service-card.selected .price {
  color: #fff;
}

.discount {
  font-size: 0.9rem;
  color: #e74c3c;
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

.service-card.selected .discount {
  color: #ffeb3b;
}

.datetime-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.date-selection label,
.time-selection label {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
  color: #0080ff;
  font-size: 1.1rem;
}

.date-selection input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.time-slot {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.time-slot:hover {
  background: #0073ff;
}

.time-slot.selected {
  border-color: #667eea;
  color: white;
  border-color: #667eea;
}

.time-slot.unavailable {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

.summary-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
}

.summary-card h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.3rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  font-size: 1.2rem;
  font-weight: bold;
  color: #27ae60;
  border-top: 2px solid #e0e0e0;
  margin-top: 15px;
  padding-top: 15px;
}

.label {
  font-weight: 600;
  color: #34495e;
}

.value {
  color: #2c3e50;
}

.step-buttons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.btn-next,
.btn-back,
.btn-confirm {
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-next,
.btn-confirm {
  background: linear-gradient(135deg, #002fff 0%, #5cadff 100%);
  color: rgb(255, 255, 255);
}

.btn-next:hover,
.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-next:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-back {
  background: #e0e0e0;
  color: #666;
}

.btn-back:hover {
  background: #d0d0d0;
}

.btn-confirm {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.btn-clear-cancellations {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
  float: right;
  transition: background 0.2s;
}

.btn-clear-cancellations:hover {
  background: #c0392b;
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  margin: 0 40px;
}

.progress {
  height: 100%;
  background: linear-gradient(135deg, #002fff 0%, #76bbff 100%);
  transition: width 0.5s ease;
  width: 20%;
}

.step-indicators {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.indicator.active {
  background: linear-gradient(135deg, #002fff 0%, #5cadff 100%);
  color: white;
}

.indicator.completed {
  background: #27ae60;
  color: white;
}

.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  color: #fff;
  animation: fadeIn 0.5s;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #27ae60;
  animation: pop 0.4s;
}

.success-message h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

.success-message p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  text-align: center;
}

.success-message .btn-next {
  background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
  font-size: 1rem;
  padding: 8px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
  transition: background 0.2s;
  min-width: 100px;
  max-width: 200px;
}

.success-message .btn-next:hover {
  background: linear-gradient(90deg, #219150 0%, #27ae60 100%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.7);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .container {
    margin: 10px;
    border-radius: 15px;
  }

  .booking-form {
    padding: 20px;
  }

  .header {
    padding: 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .professionals-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .datetime-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .time-slots {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-buttons {
    flex-direction: column;
  }

  .step-indicators {
    gap: 10px;
  }

  .indicator {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
  }
  .success-icon {
    color: #27ae60;
  }

  .success-message h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
    text-align: center;
  }

  .success-message p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    text-align: center;
  }
}
