/* Book Online Page Styles */

/* Hero Section */
.book-hero {
  background-color: var(--color-primary);
  background-image: url('../assets/header-background.svg');
  background-position: bottom;
  background-size: cover;
  padding: 6rem 2rem 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.book-hero h1 {
  font-family: var(--font-accent);
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Booking Container */
.booking-container {
  max-width: 1000px;
  margin: -5rem auto 5rem;
  padding: 2rem;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Progress Steps */
.booking-progress {
  margin-bottom: 2.5rem;
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50px;
  right: 50px;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--color-light);
  font-weight: 600;
  transition: var(--transition);
}

.step.active .step-icon {
  background-color: var(--color-secondary);
}

.step.completed .step-icon {
  background-color: var(--color-accent);
}

.step span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.form-step h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Service Options */
.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-option {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  background-color: var(--color-light);
  position: relative;
}

.service-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-option img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-option h3 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.2rem;
}

.service-option p {
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #666;
  min-height: 60px;
}

.service-option .price {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--color-accent);
}

.service-option .btn {
  margin: 0.5rem 1rem 1rem;
  width: calc(100% - 2rem);
}

.service-option.selected {
  border: 2px solid var(--color-secondary);
}

.service-option.selected .btn {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

/* Calendar */
.date-time-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.calendar-container {
  flex: 1;
  min-width: 300px;
}

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

.month-nav {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
  transition: var(--transition);
}

.month-nav:hover {
  color: var(--color-accent);
}

.calendar {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.weekdays div {
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.days button {
  border: none;
  background: none;
  padding: 15px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 0;
  border: 1px solid #f0f0f0;
}

.days button:hover:not(.disabled) {
  background-color: #f0f0f0;
}

.days button.selected {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

.days button.today {
  font-weight: 700;
  color: var(--color-accent);
}

.days button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Time Slots */
.time-slots {
  flex: 1;
  min-width: 300px;
}

.time-slots h3 {
  margin-bottom: 1rem;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.time-option {
  padding: 0.8rem 0.5rem;
  text-align: center;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.time-option:hover {
  background-color: #f0f0f0;
}

.time-option.selected {
  background-color: var(--color-secondary);
  color: var(--color-light);
  border-color: var(--color-secondary);
}

.time-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(243, 180, 164, 0.2);
}

/* Form Buttons */
.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.form-buttons button {
  min-width: 120px;
}

/* Confirmation */
.confirmation-message {
  text-align: center;
  padding: 2rem;
}

.checkmark {
  position: relative;
  margin: 0 auto 2rem;
  width: 80px;
  height: 80px;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  display: block;
}

.checkmark-stem {
  position: absolute;
  width: 10px;
  height: 30px;
  background-color: var(--color-light);
  left: 35px;
  top: 20px;
  transform: rotate(45deg);
}

.checkmark-kick {
  position: absolute;
  width: 20px;
  height: 10px;
  background-color: var(--color-light);
  left: 19px;
  top: 40px;
  transform: rotate(45deg);
}

.booking-details {
  margin: 2rem auto;
  max-width: 400px;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: #f9f9f9;
  text-align: left;
}

.booking-details h3 {
  margin-bottom: 1rem;
  text-align: center;
}

.detail-row {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  flex: 0 0 40%;
  font-weight: 600;
}

.detail-row .value {
  flex: 1;
}

/* Media Queries */
@media (max-width: 768px) {
  .steps::before {
    left: 20px;
    right: 20px;
  }
  
  .step span {
    font-size: 0.75rem;
  }
  
  .step-icon {
    width: 40px;
    height: 40px;
  }
  
  .booking-container {
    padding: 1.5rem;
    margin-top: -3rem;
  }
  
  .form-buttons {
    flex-direction: column-reverse;
  }
  
  .form-buttons button {
    width: 100%;
  }
} 