/* Book a Time - New Wireframe Design */

/* Layout */
.booking-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-12);
  max-width: 900px;
  margin: var(--space-16) auto;
  padding: var(--space-8);
}

/* Left Side - Profile */
.booking-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.profile-title {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.profile-about h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-primary);
}

.about-content {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Right Side - Booking Panel */
.booking-panel {
  padding: var(--space-8);
  border-left: var(--border-1) solid var(--border-light);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Custom scrollbar for booking panel */
.booking-panel::-webkit-scrollbar {
  width: 8px;
}

.booking-panel::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.booking-panel::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-sm);
}

.booking-panel::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.booking-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: var(--space-8);
  color: var(--text-primary);
}

/* Steps */
.booking-step {
  margin-bottom: var(--space-8);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--signal-yellow);
  color: var(--rebel-black);
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.step-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Duration Options */
.duration-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.duration-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4);
  background: white;
  border: var(--border-2) solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.duration-option .duration-name {
  font-weight: 600;
  font-size: var(--text-base);
}

.duration-option .duration-price {
  font-weight: 700;
  color: var(--signal-green);
  font-size: var(--text-lg);
}

.duration-option .duration-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.4;
}

.duration-option:hover:not(.disabled) {
  border-color: var(--signal-yellow);
  transform: translateY(-1px);
}

.duration-option.selected {
  background: var(--signal-yellow);
  border-color: var(--signal-yellow);
  color: var(--rebel-black);
}

.duration-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gray-100);
}


/* Time Selection */
.day-section {
  margin-bottom: var(--space-6);
}

.day-header {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-3);
}

.time-slot {
  padding: var(--space-3);
  background: white;
  border: var(--border-1) solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-weight: 500;
  color: var(--text-primary);
}

.time-slot:hover {
  border-color: var(--signal-yellow);
  transform: translateY(-1px);
}

.time-slot.selected {
  background: var(--signal-yellow);
  border-color: var(--signal-yellow);
  color: var(--rebel-black);
}

/* Booking Summary */
.booking-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  background: var(--background-primary);
  border-radius: var(--radius-lg);
  border: var(--border-1) solid var(--border-light);
  margin-top: auto; /* Push to bottom */
  margin-top: var(--space-8);
  flex-shrink: 0; /* Prevent shrinking */
}

.summary-text {
  font-weight: 500;
  color: var(--text-primary);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: var(--background-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 90%;
  max-height: 90%;
  overflow-y: auto;
  border: var(--border-1) solid var(--border-light);
}

.modal-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-end;
  margin-top: var(--space-6);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: var(--border-1) solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--signal-yellow);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Success State */
.booking-success {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: var(--background-secondary);
  border-radius: var(--radius-2xl);
  border: var(--border-1) solid var(--signal-yellow);
  max-width: 600px;
  margin: var(--space-16) auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--signal-yellow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--rebel-black);
  margin-bottom: var(--space-6);
}

.booking-success h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.success-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}

/* Error States */
.alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

/* Toast Notifications */
.booking-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--background-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: var(--border-1) solid var(--signal-yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 300px;
}

.booking-toast--success {
  border-color: var(--signal-yellow);
}

.booking-toast--show {
  transform: translateX(0);
  opacity: 1;
}

.booking-toast-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.booking-toast-icon {
  width: 24px;
  height: 24px;
  background: var(--signal-yellow);
  color: var(--rebel-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.booking-toast-text {
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--text-primary);
}

.booking-toast-text strong {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .booking-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-4);
    margin: var(--space-8) auto;
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
  }
  
  .booking-panel {
    padding: var(--space-6);
  }
  
  .booking-summary {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  
  .modal-content {
    padding: var(--space-6);
    margin: var(--space-4);
  }
  
  .modal-actions {
    flex-direction: column;
  }
}