/* Enhanced Booking Form Styles */

/* Overall form styling */
.booking-form {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.booking-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #d4a373, #e9c46a);
}

.booking-form h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

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

.booking-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #444;
  font-size: 1rem;
}

.booking-form input[type="text"],
.booking-form input[type="date"],
.booking-form input[type="time"],
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #f9f9f9;
  color: #333;
}

.booking-form input[type="text"]:focus,
.booking-form input[type="date"]:focus,
.booking-form input[type="time"]:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: #d4a373;
  box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.2);
  outline: none;
  background-color: #fff;
}

/* Request Appointment Button */
#appointment-action-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #d4a373, #e9c46a);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

#appointment-action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transition: all 0.6s ease;
}

#appointment-action-btn:hover {
  background: linear-gradient(135deg, #c89666, #d8b365);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(212, 163, 115, 0.4);
}

#appointment-action-btn:hover::before {
  left: 100%;
}

#appointment-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(212, 163, 115, 0.4);
}

/* Deposit note styling */
.deposit-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
  padding: 0.75rem;
  background-color: #f9f7f2;
  border-radius: 8px;
  border-left: 3px solid #d4a373;
}

/* Form group with calendar selection */
.time-input-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.time-input-container input,
.time-input-container select {
  flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .booking-form {
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  
  .time-input-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  #appointment-action-btn {
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }
}

/* Loading state for button */
#appointment-action-btn.loading {
  background: linear-gradient(135deg, #d4a373, #e9c46a);
  opacity: 0.8;
  cursor: not-allowed;
}

#appointment-action-btn.loading::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Inspiration photo thumbnail styling */
.inspiration-thumb-container {
  margin-top: 10px;
  text-align: center;
}

.thumbnail-preview {
  display: inline-block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
  max-width: 200px;
}

.thumbnail-preview:hover {
  transform: scale(1.05);
}

.thumbnail-preview img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #d4a373;
}

.thumbnail-preview .file-name {
  display: block;
  padding: 5px;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
} 