/* Service Booking Styles */
.service__card {
  position: relative;
  overflow: hidden;
}

.service__book-btn {
  margin-top: 15px;
  display: inline-block;
}

.service__booking-form {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  padding: 20px;
  border-radius: 8px;
  z-index: 10;
  overflow-y: auto;
}

.service__booking-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.service__booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.service__booking-title {
  font-size: 18px;
  color: var(--primary-color);
  margin: 0;
}

.service__booking-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.service__booking-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.service__booking-form .form__group {
  margin-bottom: 12px;
}

.service__booking-form .form__label {
  font-size: 14px;
}

.service__booking-form .form__input,
.service__booking-form .form__textarea {
  padding: 8px 12px;
  font-size: 14px;
}

.service__booking-form .button {
  width: 100%;
  margin-top: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .service__booking-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    height: auto;
    max-height: 90vh;
    z-index: 1001;
  }
  
  .service__booking-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .service__booking-overlay.active {
    display: block;
  }
}


/* Modal styles */
.service__booking-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.service__booking-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

.service__booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.service__booking-title {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.service__booking-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.service__booking-close:hover {
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service__booking-modal-content {
    width: 95%;
    margin: 10% auto;
  }
}