:root {
  --primary-color: #0069ff;
  --primary-hover: #0051c3;
  --text-color: #1a1a1a;
  --secondary-text: #666;
  --light-gray: #f5f7fa;
  --border-color: #e1e1e1;
  --success-color: #4CAF50;
  --selected-color: #e6f2ff;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset default browser styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.5;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.booking-container {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

/* Header Section */
.booking-header {
  padding: 30px;
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.header-content {
  flex: 1;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.calendar-selector-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid var(--primary-color);
  box-shadow: 0 1px 3px rgba(0, 105, 255, 0.2);
}

.calendar-selector-link:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 105, 255, 0.3);
}

.calendar-selector-link svg {
  width: 16px;
  height: 16px;
}

.back-button {
  padding: 20px 0 0 30px;
}

.consultant-name {
  font-size: 1rem;
  font-weight: normal;
  color: var(--secondary-text);
  margin-bottom: 5px;
}

.consultation-type {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.duration-info, .meeting-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--secondary-text);
}

/* Main Content */
.booking-main {
  padding: 30px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.calendar-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Calendar Component */
.calendar {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.calendar-nav {
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav-btn:hover {
  background-color: #e6e6e6;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  color: var(--secondary-text);
  border-bottom: 1px solid var(--border-color);
}

.weekdays div {
  padding: 10px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 1px;
}

.day {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.9rem;
  position: relative;
  margin: 2px;
  border-radius: 50%;
}

.day:hover:not(.unavailable):not(.out-of-month) {
  background-color: var(--selected-color);
}

.day.selected {
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 50%;
}

.day.active {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.day.today {
  font-weight: bold;
  color: var(--primary-color);
}

.day.today.active {
  color: #fff;
}

.day.unavailable, .day.out-of-month {
  color: #ccc;
  cursor: default;
}

/* Time Slots */
.timeslots {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.timeslots-header {
  padding: 15px;
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.timezone-label {
  font-size: 0.7rem;
}

.timeslots-timezone {
  padding: 15px;
  color: var(--secondary-text);
  font-size: 0.9rem;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.timezone-dropdown {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: white;
  font-size: 0.9rem;
  color: var(--text-color);
  cursor: pointer;
  transition: border-color 0.2s;
}

.timezone-dropdown:hover {
  border-color: var(--primary-color);
}

.timezone-dropdown:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 105, 255, 0.1);
}

.current-time {
  color: var(--secondary-text);
  font-weight: 500;
}

.show-times-btn {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.timeslots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
}

.timeslot {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.timeslot:hover:not(.unavailable) {
  border-color: var(--primary-color);
  background-color: var(--selected-color);
}

.timeslot.selected {
  border-color: var(--primary-color);
  background-color: var(--selected-color);
}

.timeslot.unavailable {
  color: #ccc;
  cursor: default;
  background-color: var(--light-gray);
  position: relative;
}

.event-info {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed #ddd;
  font-size: 0.75rem;
}

.event-subject {
  font-weight: 500;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-location {
  color: #999;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time {
  font-weight: 600;
}

.duration {
  font-size: 0.8rem;
  color: var(--secondary-text);
}

.no-slots {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: var(--secondary-text);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--secondary-text);
}

/* Form Styles */
.booking-form {
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.booking-form h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-actions {
  margin-top: 30px;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: var(--light-gray);
}

/* Confirmation Page */
.confirmation-container {
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
  padding: 30px;
}

.confirmation-icon {
  margin-bottom: 20px;
}

.confirmation-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--success-color);
}

.confirmation-message {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--secondary-text);
}

.booking-details {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.booking-details h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* Helper Classes */
[x-cloak] { 
  display: none !important; 
}

/* Responsive Styles */
@media (max-width: 768px) {
  .calendar-section {
    grid-template-columns: 1fr;
  }
  
  .timeslots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .timeslots-grid {
    grid-template-columns: 1fr;
  }
  
  .confirmation-actions {
    flex-direction: column;
    gap: 10px;
  }
}
