/* ==========================================
   BOOKING MODAL STYLES
   ========================================== */

.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.booking-modal.active {
  display: flex;
}

.booking-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.booking-modal__content {
  position: relative;
  background: #fff;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #8b7355;
  transition: color 0.3s;
  padding: 5px 10px;
}

.booking-modal__close:hover {
  color: #000;
}

.booking-modal h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #8b7355;
  margin-bottom: 30px;
  text-align: center;
}

/* Form Styles */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Sorts Mill Goudy', serif;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b7355;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.service-info {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
}

/* Multiple Services */
#servicesContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.service-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.service-row .service-select {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Sorts Mill Goudy', serif;
  transition: border-color 0.3s;
}

.service-row .service-select:focus {
  outline: none;
  border-color: #8b7355;
}

.btn-remove-service {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.3s;
  min-width: 45px;
}

.btn-remove-service:hover {
  background: #c82333;
}

.btn-add-service-icon {
  background: transparent;
  color: #8b7355;
  border: 2px solid #8b7355;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: all 0.3s;
  min-width: 45px;
  width: 45px;
  height: 45px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-service-icon:hover {
  background: rgba(139, 115, 85, 0.1);
  transform: scale(1.1);
  border-color: #6f5a44;
  color: #6f5a44;
}

/* Booking Summary */
.booking-summary {
  background: #f9f7f5;
  border-left: 4px solid #8b7355;
  padding: 20px;
  margin: 10px 0;
  border-radius: 4px;
}

.booking-summary h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #8b7355;
  margin-bottom: 15px;
}

.booking-summary p {
  margin: 8px 0;
  font-size: 1rem;
  color: #333;
}

.booking-summary strong {
  color: #8b7355;
}

/* Submit Button */
.btn--submit {
  background: #8b7355;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-family: 'Sorts Mill Goudy', serif;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn--submit:hover {
  background: #6f5a44;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

.btn--submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Success Message */
.booking-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #4caf50;
  color: #fff;
  font-size: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.booking-success h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #4caf50;
  margin-bottom: 15px;
}

.booking-success p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Date input - Disable Sundays and Mondays visually */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/* This is a visual cue - the JavaScript handles the actual validation */
#date {
  position: relative;
}

#date::after {
  content: "Κλειστά: Κυριακή & Δευτέρα";
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 0.75rem;
  color: #999;
  font-style: italic;
}

.form-group {
  position: relative;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-modal__content {
    padding: 30px 20px;
    max-height: 95vh;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .booking-modal h2 {
    font-size: 2rem;
  }

  .booking-success h3 {
    font-size: 2rem;
  }
}
