/* VibeTint Booking System Styles */

/* Booking Hero Section */
.booking-hero {
  background: var(--gradient-hero), url('../images/hero/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.booking-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.booking-hero .hero-content {
  position: relative;
  z-index: 2;
}

.booking-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.booking-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Booking Section */
.booking-section {
  padding: 4rem 0;
  background: var(--background-color);
}

.booking-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Progress Indicator */
.booking-progress {
  display: flex;
  background: var(--background-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  overflow-x: auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 120px;
  position: relative;
  opacity: 0.5;
  transition: var(--transition);
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.progress-step.active .step-number {
  background: var(--primary-color);
  color: var(--background-color);
}

.progress-step.completed .step-number {
  background: var(--success-color);
  color: white;
}

.step-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

.progress-step.active .step-label {
  color: var(--primary-color);
}

.progress-step.completed .step-label {
  color: var(--success-color);
}

/* Connect lines between steps */
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
  transition: var(--transition);
}

.progress-step.completed:not(:last-child)::after {
  background: var(--success-color);
}

/* Booking Steps */
.booking-form {
  position: relative;
}

.booking-step {
  display: none;
  padding: 2rem;
  min-height: 500px;
}

.booking-step.active {
  display: block;
}

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-header h2 {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.step-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-option {
  background: var(--background-light);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.service-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-option.selected {
  border-color: var(--primary-color);
  background: rgba(0, 212, 255, 0.1);
}

.service-option h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-option p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.service-duration {
  display: inline-block;
  background: var(--primary-color);
  color: var(--background-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Option Grid */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.option-card {
  background: var(--background-light);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.option-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.option-card.selected {
  border-color: var(--primary-color);
  background: rgba(0, 212, 255, 0.1);
}

.option-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.option-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.option-duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.option-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Date Time Selection */
.datetime-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.date-selection h3,
.time-selection h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Horizontal Calendar Styles */
.horizontal-calendar {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.calendar-header {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.calendar-week {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--background-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  min-width: 0;
  overflow: hidden;
}

.calendar-nav {
  background: var(--primary-color);
  color: var(--background-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.calendar-nav:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.calendar-nav:disabled {
  background: var(--background-dark);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.5;
}

.week-days {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

.calendar-day {
  flex: 1;
  text-align: center;
  padding: 0.8rem 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--background-color);
  border: 2px solid transparent;
  min-width: 50px;
  position: relative;
}

.calendar-day:hover:not(.disabled) {
  background: var(--background-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.calendar-day.selected {
  background: var(--primary-color);
  color: var(--background-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.calendar-day.disabled {
  background: var(--background-dark);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.5;
}

.day-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.day-number {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .horizontal-calendar {
    max-width: 100%;
    overflow: hidden;
  }
  
  .calendar-week {
    padding: 0.8rem 0.5rem;
    gap: 0.3rem;
    justify-content: space-between;
    overflow: hidden;
  }
  
  .calendar-nav {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    flex-shrink: 0;
    min-width: 32px;
  }
  
  .week-days {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    justify-content: space-between;
    gap: 0.2rem;
  }
  
  .calendar-day {
    padding: 0.5rem 0.2rem;
    min-width: 40px;
    max-width: 40px;
    flex: 0 0 40px;
    font-size: 0.8rem;
  }
  
  .day-label {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
  }
  
  .day-number {
    font-size: 0.9rem;
  }
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.time-slot {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-light);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  font-weight: 500;
}

.time-slot:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.time-slot.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--background-dark);
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-light);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.form-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  min-height: 48px; /* Ensure consistent height with other inputs */
}

.form-group select option {
  background: var(--background-light);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Ensure proper styling for required select fields */
.form-group select:required:invalid {
  color: var(--text-secondary);
}

.form-group select:required:valid {
  color: var(--text-primary);
}

/* Custom select hover state */
.form-group select:hover {
  border-color: var(--primary-color);
  background-color: rgba(0, 212, 255, 0.05);
}

/* Disabled select styling */
.form-group select:disabled {
  background-color: var(--background-dark);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.6;
}

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

/* Booking Summary */
.booking-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.summary-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--primary-color);
  border-bottom: none;
}

.summary-row .label {
  color: var(--text-secondary);
}

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

.summary-row.total .value {
  color: var(--primary-color);
}

/* Terms Checkbox */
.booking-terms {
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  transform: scale(1.2);
}

.checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.step-actions .btn {
  min-width: 120px;
}

/* Success Message */
.booking-success {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.booking-success h2 {
  color: var(--success-color);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.booking-success p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.success-details {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.success-details p {
  margin-bottom: 1rem;
}

.success-details ul {
  color: var(--text-secondary);
  margin-left: 1.5rem;
}

.success-details li {
  margin-bottom: 0.5rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .booking-hero h1 {
    font-size: 2rem;
  }
  
  .booking-hero p {
    font-size: 1rem;
  }
  
  .booking-progress {
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .progress-step {
    min-width: 80px;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .step-label {
    font-size: 0.8rem;
  }
  
  .progress-step:not(:last-child)::after {
    right: -40%;
    top: 15px;
  }
  
  .booking-step {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .service-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }
  
  .datetime-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .date-selection {
    order: 1;
  }
  
  .time-selection {
    order: 2;
  }
  
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .time-slot {
    padding: 0.8rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .booking-summary {
    grid-template-columns: 1fr;
  }
  
  .step-actions {
    flex-direction: column-reverse;
  }
  
  .step-actions .btn {
    width: 100%;
  }
  
  .success-actions {
    flex-direction: column;
  }
  
  .success-actions .btn {
    width: 100%;
  }
}

/* Error States */
.error-message {
  color: var(--danger-color);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
  padding: 0.75rem;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--danger-color);
  border-radius: var(--border-radius);
}

/* Field Validation States */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.05);
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus,
.form-group.has-error select:focus {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.has-success input,
.form-group.has-success textarea,
.form-group.has-success select {
  border-color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.05);
}

.form-group.has-success input:focus,
.form-group.has-success textarea:focus,
.form-group.has-success select:focus {
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group.has-warning input,
.form-group.has-warning textarea,
.form-group.has-warning select {
  border-color: #ffc107;
  background-color: rgba(255, 193, 7, 0.05);
}

.form-group.has-warning input:focus,
.form-group.has-warning textarea:focus,
.form-group.has-warning select:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

/* Field Validation Messages */
.field-message {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.field-message::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.125rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.field-error {
  color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.field-error::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cline x1='15' y1='9' x2='9' y2='15'%3e%3c/line%3e%3cline x1='9' y1='9' x2='15' y2='15'%3e%3c/line%3e%3c/svg%3e");
}

.field-success {
  color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.field-success::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cpath d='m9 12 2 2 4-4'%3e%3c/path%3e%3c/svg%3e");
}

.field-warning {
  color: #b8860b;
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.field-warning::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc107' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'%3e%3c/path%3e%3cpath d='M12 9v4'%3e%3c/path%3e%3cpath d='m12 17 .01 0'%3e%3c/path%3e%3c/svg%3e");
}

/* Disabled States */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Terms and Conditions Modal */
.terms-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.terms-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-modal-content {
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.terms-modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.terms-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.terms-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.terms-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.terms-modal-body {
  padding: 0;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--background-light);
}

.terms-modal-body::-webkit-scrollbar {
  width: 8px;
}

.terms-modal-body::-webkit-scrollbar-track {
  background: var(--background-light);
}

.terms-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}

.terms-content {
  padding: 2rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.terms-content h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--background-light);
}

.terms-content h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
}

.terms-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.terms-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

.terms-content li {
  margin-bottom: 0.5rem;
}

.terms-highlight-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.terms-warning-box {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.terms-modal-footer {
  background: var(--background-light);
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.terms-modal-footer .btn {
  min-width: 120px;
}

.terms-modal-footer .btn-secondary {
  background: var(--text-muted);
  color: white;
}

.terms-modal-footer .btn-secondary:hover {
  background: var(--text-secondary);
}

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

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .calendar-week {
    padding: 0.9rem;
    gap: 0.4rem;
  }
  
  .calendar-nav {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
  
  .calendar-day {
    padding: 0.7rem 0.4rem;
    min-width: 45px;
  }
  
  .time-slots {
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .calendar-week {
    padding: 0.6rem 0.3rem;
    gap: 0.2rem;
  }
  
  .calendar-nav {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    min-width: 28px;
  }
  
  .week-days {
    gap: 0.15rem;
  }
  
  .calendar-day {
    min-width: 35px;
    max-width: 35px;
    flex: 0 0 35px;
    padding: 0.4rem 0.1rem;
  }
  
  .day-label {
    font-size: 0.55rem;
  }
  
  .day-number {
    font-size: 0.8rem;
  }
  
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  
  .time-slot {
    padding: 0.7rem 0.4rem;
    font-size: 0.85rem;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .terms-modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 1rem;
  }
  
  .terms-modal-header {
    padding: 1rem 1.5rem;
  }
  
  .terms-modal-header h2 {
    font-size: 1.3rem;
  }
  
  .terms-content {
    padding: 1.5rem;
  }
  
  .terms-modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }
  
  .terms-modal-footer .btn {
    width: 100%;
  }
}

/* Button Feedback */
.button-feedback {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.button-feedback.success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: var(--success-color);
}

.button-feedback.error {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: var(--danger-color);
}

.button-feedback.warning {
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #b8860b;
}

.button-feedback.info {
  background-color: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--primary-color);
}

/* Validation Summary */
.validation-summary {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--danger-color);
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
  animation: slideInDown 0.3s ease-out;
}

.validation-summary.show {
  display: block;
}

.validation-summary h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--danger-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.validation-summary ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.validation-summary li {
  margin-bottom: 0.5rem;
  color: var(--danger-color);
}

.validation-summary li:last-child {
  margin-bottom: 0;
}

/* Success validation summary */
.validation-summary.success {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.3);
  color: var(--success-color);
}

.validation-summary.success h4,
.validation-summary.success li {
  color: var(--success-color);
}

/* Warning validation summary */
.validation-summary.warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
  color: #b8860b;
}

.validation-summary.warning h4,
.validation-summary.warning li {
  color: #b8860b;
}

/* Validation Icons */
.validation-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.validation-icon.success {
  background-color: var(--success-color);
  color: white;
}

.validation-icon.error {
  background-color: var(--danger-color);
  color: white;
}

.validation-icon.warning {
  background-color: #ffc107;
  color: #333;
}

.validation-icon.info {
  background-color: var(--primary-color);
  color: white;
}

/* Icon symbols */
.validation-icon.success::after {
  content: '✓';
}

.validation-icon.error::after {
  content: '✗';
}

.validation-icon.warning::after {
  content: '!';
}

.validation-icon.info::after {
  content: 'i';
}

/* Button Disabled State */
.btn-disabled,
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
  background-color: var(--background-dark) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
  transition: none !important;
}

.btn-disabled:hover,
.btn-disabled:focus,
.btn-disabled:active {
  background-color: var(--background-dark) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Loading state for disabled buttons */
.btn-disabled.loading {
  position: relative;
  color: transparent !important;
}

.btn-disabled.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

/* Required Field Styling */
.required-field {
  position: relative;
}

.required-field label {
  font-weight: 600;
  color: var(--text-primary);
}

.required-field input,
.required-field textarea,
.required-field select {
  border-left: 3px solid var(--primary-color);
  transition: all 0.3s ease;
}

.required-field input:focus,
.required-field textarea:focus,
.required-field select:focus {
  border-left-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Required field validation states */
.required-field.has-error input,
.required-field.has-error textarea,
.required-field.has-error select {
  border-left-color: var(--danger-color);
}

.required-field.has-success input,
.required-field.has-success textarea,
.required-field.has-success select {
  border-left-color: var(--success-color);
}

.required-field.has-warning input,
.required-field.has-warning textarea,
.required-field.has-warning select {
  border-left-color: #ffc107;
}

/* Required Asterisk */
.required-asterisk {
  color: var(--danger-color);
  font-weight: bold;
  margin-left: 0.25rem;
  font-size: 1em;
  line-height: 1;
  display: inline-block;
  animation: pulse 2s infinite;
}

.required-asterisk.subtle {
  color: var(--primary-color);
  animation: none;
  opacity: 0.8;
}

/* Asterisk animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Asterisk in labels */
label .required-asterisk {
  position: relative;
  top: -0.1em;
}

/* Additional animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Portrait mobile specific fixes */
@media (max-width: 480px) and (orientation: portrait) {
  .horizontal-calendar {
    max-width: 100%;
  }
  
  .calendar-week {
    flex-direction: column;
    padding: 0.8rem 0.5rem;
    gap: 0.8rem;
    align-items: center;
    min-height: auto;
  }
  
  .week-days {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    gap: 0.25rem;
    order: 1;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  
  .calendar-day {
    min-width: 38px;
    max-width: 38px;
    flex: 0 0 38px;
    padding: 0.5rem 0.1rem;
    font-size: 0.75rem;
  }
  
  .day-label {
    font-size: 0.55rem;
    margin-bottom: 0.15rem;
  }
  
  .day-number {
    font-size: 0.85rem;
    font-weight: 600;
  }
  
  /* Position navigation buttons below days */
  .calendar-nav {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    margin: 0;
    flex-shrink: 0;
  }
  
  .calendar-nav.prev {
    order: 2;
    align-self: flex-start;
    margin-right: auto;
  }
  
  .calendar-nav.next {
    order: 2;
    align-self: flex-end;
    margin-left: auto;
  }
  
  /* Navigation row */
  .calendar-week {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 0.8rem;
    align-items: center;
  }
  
  .week-days {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    max-width: 320px;
  }
  
  .calendar-nav.prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  
  .calendar-nav.next {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
  
  .time-slots {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem;
    max-width: 100%;
  }
  
  .time-slot {
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    min-width: 0;
    word-wrap: break-word;
  }
}

/* Landscape mobile - keep current layout */
@media (max-width: 768px) and (orientation: landscape) {
  .calendar-week {
    flex-direction: row;
    padding: 0.6rem 0.4rem;
    gap: 0.3rem;
  }
  
  .week-days {
    flex: 1;
    justify-content: space-between;
  }
  
  .calendar-day {
    min-width: 38px;
    max-width: 38px;
    flex: 0 0 38px;
  }
  
  .time-slots {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .button-feedback,
  .validation-summary,
  .validation-icon,
  .required-asterisk {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .validation-summary {
    border-width: 2px;
  }
  
  .required-field input,
  .required-field textarea,
  .required-field select {
    border-left-width: 4px;
  }
  
  .validation-icon {
    border: 2px solid currentColor;
  }
}