/* Custom Booking System Styles */

/* Booking Modal */
.booking-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.booking-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.booking-modal-content {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: rotate(90deg);
}

/* Booking Header */
.booking-header {
  text-align: center;
  margin-bottom: 40px;
}

.booking-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.booking-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
}

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

.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Meeting Type Grid */
.meeting-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.meeting-type-option {
  cursor: pointer;
  position: relative;
}

.meeting-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.meeting-type-option input[type="radio"]:checked + .option-content {
  background: rgba(14, 165, 233, 0.1);
  border-color: #0EA5E9;
}

.meeting-type-option:hover .option-content {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.option-title {
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.option-duration {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Form Inputs */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.form-input, .form-textarea, .form-select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #0EA5E9;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* Time Slots */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.time-slot {
  cursor: pointer;
  position: relative;
}

.time-slot input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.time-slot span {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
  color: white;
}

.time-slot small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.75rem;
}

.time-slot input[type="checkbox"]:checked + span {
  background: rgba(14, 165, 233, 0.1);
  border-color: #0EA5E9;
}

.time-slot:hover span {
  background: rgba(255, 255, 255, 0.05);
}

/* Submit Button */
.btn-full-width {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 1.125rem;
  margin-top: 8px;
}

/* Success Modal */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.success-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.success-modal-content {
  background: linear-gradient(135deg, #0a0a0a 0%, #111827 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px;
  padding: 48px;
  max-width: 500px;
  text-align: center;
  animation: slideUp 0.3s ease;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  animation: bounce 0.5s ease;
}

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

.success-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.success-message {
  font-size: 1.125rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .booking-modal-content {
    padding: 32px 20px;
    width: 95%;
  }
  
  .booking-title {
    font-size: 2rem;
  }
  
  .meeting-type-grid,
  .form-row,
  .time-slots-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-close {
    top: 12px;
    right: 12px;
  }
}

/* Loading State */
.booking-form.loading {
  opacity: 0.5;
  pointer-events: none;
}

.booking-form.loading::after {
  content: 'Sending...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: #0EA5E9;
}

/* Validation Feedback */
.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
}
/* Simplified booking form */
.booking-form-simple {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.booking-form-simple .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.booking-form-simple .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-400);
}

.booking-form-simple .form-input,
.booking-form-simple .form-textarea {
  width: 100%;
}
