/* =================================================================
   BOOKING SECTION STYLES
   ================================================================= */

/* -- Section Layout -- */
.section-booking {
  position: relative;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--bg-section-alt);
  isolation: isolate;
  overflow: hidden;
}

.section-booking::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(var(--color-primary-rgb), 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-booking .container {
  position: relative;
  z-index: 1;
}

/* -- Badge -- */
.booking-badge {
  margin-bottom: var(--space-6);
}

/* -- Booking Layout -- */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* -- Form Container -- */
.booking-form-wrapper {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-10));
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

.booking-form-header {
  margin-bottom: var(--space-8);
  text-align: center;
}

.booking-form-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.booking-form-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* -- Form Sections -- */
.booking-form-section {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.booking-form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.required-mark {
  color: var(--color-error);
  margin-left: var(--space-1);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--bg-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.form-control.is-invalid {
  border-color: var(--color-error);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid {
  border-color: var(--color-success);
}

.form-text {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.invalid-feedback {
  display: none;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-error);
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* -- Calendar Styles (Weekly Slider) -- */
.booking-calendar-weekly {
  background: var(--bg-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.calendar-weekly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.calendar-week-info {
  flex: 1;
  text-align: center;
}

.week-range {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.calendar-nav-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.calendar-nav-btn:hover:not(:disabled) {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.calendar-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-weekly-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
}

.calendar-day-card {
  background: var(--bg-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-2);
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-height: 70px;
  position: relative;
}

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

.day-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-number {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  line-height: 1;
}

.day-selected {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) !important;
}

.day-selected .day-label,
.day-selected .date-number {
  color: var(--color-white) !important;
}

.day-today {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.05);
}

.day-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.day-today.day-selected::after {
  background: var(--color-white);
}

.day-disabled,
.day-closed {
  background: var(--bg-section-alt);
  border-color: var(--color-border);
  cursor: not-allowed;
  opacity: 0.5;
}

.day-disabled .day-label,
.day-disabled .date-number,
.day-closed .day-label,
.day-closed .date-number {
  color: var(--color-text-light);
}

.day-closed::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-text-light);
  transform: translateY(-50%) rotate(-45deg);
}

/* -- Time Slots -- */
.booking-timeslots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.timeslot {
  padding: var(--space-3) var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
}

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

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

.timeslot-disabled {
  background: var(--bg-section-alt);
  color: var(--color-text-light);
  cursor: not-allowed;
  opacity: 0.5;
}

.timeslot-taken {
  background: repeating-linear-gradient(
    45deg,
    var(--bg-section-alt),
    var(--bg-section-alt) 10px,
    var(--color-border) 10px,
    var(--color-border) 11px
  );
  cursor: not-allowed;
  opacity: 0.6;
}

/* -- Time Slots Legend -- */
.timeslots-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.legend-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.legend-available {
  background: var(--bg-surface);
}

.legend-taken {
  background: repeating-linear-gradient(
    45deg,
    var(--bg-section-alt),
    var(--bg-section-alt) 4px,
    var(--color-border) 4px,
    var(--color-border) 5px
  );
}

.legend-soon {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* -- Form Checkbox -- */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.form-check-input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.form-check-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* -- Submit Button -- */
.booking-submit {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* -- Success Message -- */
.booking-success {
  text-align: center;
  padding: var(--space-10);
}

.success-icon {
  font-size: 4rem;
  color: var(--color-success);
  margin-bottom: var(--space-4);
}

.success-title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.success-message {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

/* -- Booking Benefits -- */
.booking-benefits {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--bg-section-alt);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.benefit-item:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.benefit-icon {
  color: var(--color-primary);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

/* -- Contact Information -- */
.booking-contact {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.booking-contact-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.contact-content {
  flex: 1;
}

.contact-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.contact-link {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.contact-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.contact-address {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-style: normal;
  line-height: var(--leading-normal);
}

/* -- Work Schedule -- */
.work-schedule {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.schedule-days {
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
}

.schedule-time {
  color: var(--color-text-secondary);
  font-family: 'Courier New', monospace;
}

.schedule-closed {
  color: var(--color-error);
}

/* -- Messengers -- */
.contact-messengers {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  /*border-top: 1px solid var(--color-border);*/
}

.messengers-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

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

.messenger-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  transition: var(--transition-base);
}

.messenger-btn i {
  font-size: var(--text-2xl);
}

.messenger-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.messenger-viber:hover {
  background: #7360F2;
  border-color: #7360F2;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.messenger-telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* -- Map -- */
.booking-map {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-4), 4vw, var(--space-6));
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  display: block;
}

/* =================================================================
   RESPONSIVE: BOOKING SECTION
   ================================================================= */

/* Mobile: Stack calendar days on smaller screens */
@media (max-width: 575.98px) {
  .calendar-weekly-days {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }
  
  .calendar-day-card {
    min-height: 60px;
    padding: var(--space-2);
  }
  
  .date-number {
    font-size: var(--text-xl);
  }
  
  .booking-timeslots {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .week-range {
    font-size: var(--text-sm);
  }
}

/* Tablet: Show 5 days */
@media (min-width: 576px) and (max-width: 767.98px) {
  .calendar-weekly-days {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .booking-timeslots {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .booking-layout {
    grid-template-columns: 1fr 1.2fr;
  }
  
  .booking-form-container {
    order: 2;
  }
  
  .booking-contact-container {
    order: 1;
  }
  
  .booking-timeslots {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  
  .calendar-weekly-days {
    grid-template-columns: repeat(7, 1fr);
  }
}

/* Desktop */
@media (min-width: 992px) {
  .booking-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
  
  .messengers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =================================================================
   PRINT STYLES: BOOKING SECTION
   ================================================================= */

@media print {
  .section-booking {
    background: var(--color-white);
  }
  
  .booking-form-wrapper,
  .booking-benefits,
  .messenger-btn {
    display: none;
  }
  
  .booking-contact,
  .booking-map {
    box-shadow: none;
    border: 1px solid var(--color-black);
    page-break-inside: avoid;
  }
}

/* =================================================================
   ACCESSIBILITY & PERFORMANCE: BOOKING SECTION
   ================================================================= */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .calendar-day-card,
  .timeslot,
  .messenger-btn {
    transition: none;
  }
  
  .messenger-btn:hover {
    transform: none;
  }
  
  .day-selected {
    transform: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .booking-calendar-weekly,
  .booking-form-wrapper,
  .booking-contact {
    border-width: 2px;
  }
  
  .day-selected,
  .timeslot-selected {
    outline: 3px solid currentColor;
    outline-offset: 2px;
  }
}

/* Focus Visible for Keyboard Navigation */
.calendar-day-card:focus-visible,
.timeslot:focus-visible,
.calendar-nav-btn:focus-visible,
.messenger-btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(var(--color-primary-rgb), 0.2);
}

/* Loading States */
.form-control:disabled,
.booking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Touch Targets - Minimum 44x44px */
@media (hover: none) and (pointer: coarse) {
  .calendar-day-card,
  .timeslot,
  .messenger-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* =================================================================
   THEME VARIATIONS: BOOKING SECTION
   ================================================================= */

/* Green Theme */
[data-theme="green"] .booking-badge {
  background: rgba(22, 163, 74, 0.06);
  border-color: rgba(22, 163, 74, 0.15);
}

[data-theme="green"] .calendar-day-card:hover:not(:disabled),
[data-theme="green"] .timeslot:hover:not(:disabled) {
  background: #DCFCE7;
  border-color: #16A34A;
  color: #16A34A;
}

[data-theme="green"] .contact-icon {
  background: #DCFCE7;
}

[data-theme="green"] .contact-icon i,
[data-theme="green"] .benefit-icon {
  color: #16A34A;
}

[data-theme="green"] .day-today {
  border-color: #16A34A;
  background: rgba(22, 163, 74, 0.05);
}

[data-theme="green"] .day-today::after {
  background: #16A34A;
}

[data-theme="green"] .booking-contact-title {
  border-bottom-color: #16A34A;
}

[data-theme="green"] .booking-benefits {
  border-left-color: #16A34A;
}

/* Maroon Theme */
[data-theme="maroon"] .booking-badge {
  background: rgba(159, 18, 57, 0.06);
  border-color: rgba(159, 18, 57, 0.15);
}

[data-theme="maroon"] .calendar-day-card:hover:not(:disabled),
[data-theme="maroon"] .timeslot:hover:not(:disabled) {
  background: #FDE4E9;
  border-color: #9F1239;
  color: #9F1239;
}

[data-theme="maroon"] .contact-icon {
  background: #FDE4E9;
}

[data-theme="maroon"] .contact-icon i,
[data-theme="maroon"] .benefit-icon {
  color: #9F1239;
}

[data-theme="maroon"] .day-today {
  border-color: #9F1239;
  background: rgba(159, 18, 57, 0.05);
}

[data-theme="maroon"] .day-today::after {
  background: #9F1239;
}

[data-theme="maroon"] .booking-contact-title {
  border-bottom-color: #9F1239;
}

[data-theme="maroon"] .booking-benefits {
  border-left-color: #9F1239;
}

/* =================================================================
   ANIMATIONS: BOOKING SECTION
   ================================================================= */

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#timeSlotsContainer {
  animation: slideDown 0.3s ease-out;
}

.booking-success {
  animation: fadeIn 0.5s ease-out;
}

/* Pulse animation for required fields with errors */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.form-control.is-invalid:focus {
  animation: pulse 1.5s infinite;
}

/* =================================================================
   UTILITY CLASSES: BOOKING SECTION
   ================================================================= */

.d-block {
  display: block !important;
}

.text-center {
  text-align: center !important;
}

.mt-2 {
  margin-top: var(--space-2) !important;
}

.mt-3 {
  margin-top: var(--space-3) !important;
}

.w-100 {
  width: 100% !important;
}

.me-2 {
  margin-right: var(--space-2) !important;
}

/* Visually Hidden (for screen readers only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================================================================
   END OF BOOKING SECTION STYLES
   ================================================================= */
   
   /* =================================================================
   TOAST NOTIFICATIONS
   ================================================================= */

/* Toast Container */
.toast-container {
  position: fixed;
  top: calc(var(--header-height-desktop) + var(--space-4));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-3);
  min-width: 300px;
  max-width: 500px;
  animation: slideDown 0.3s ease-out;
}

/* Toast Header */
.toast-header {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.toast-header .toast-icon {
  font-size: var(--text-xl);
  margin-right: var(--space-2);
  flex-shrink: 0;
}

.toast-header strong {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  flex: 1;
}

.toast-header .btn-close {
  margin-left: var(--space-2);
  background: transparent;
  border: none;
  padding: var(--space-1);
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition-base);
}

.toast-header .btn-close:hover {
  opacity: 1;
}

/* Toast Body */
.toast-body {
  padding: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* Toast Variants */

/* Success Toast */
.toast.toast-success .toast-header {
  background: rgba(16, 185, 129, 0.05);
  border-bottom-color: rgba(16, 185, 129, 0.2);
}

.toast.toast-success .toast-icon {
  color: var(--color-success);
}

.toast.toast-success {
  border-left: 4px solid var(--color-success);
}

/* Error/Danger Toast */
.toast.toast-danger .toast-header,
.toast.toast-error .toast-header {
  background: rgba(239, 68, 68, 0.05);
  border-bottom-color: rgba(239, 68, 68, 0.2);
}

.toast.toast-danger .toast-icon,
.toast.toast-error .toast-icon {
  color: var(--color-error);
}

.toast.toast-danger,
.toast.toast-error {
  border-left: 4px solid var(--color-error);
}

/* Warning Toast */
.toast.toast-warning .toast-header {
  background: rgba(245, 158, 11, 0.05);
  border-bottom-color: rgba(245, 158, 11, 0.2);
}

.toast.toast-warning .toast-icon {
  color: var(--color-warning);
}

.toast.toast-warning {
  border-left: 4px solid var(--color-warning);
}

/* Info Toast */
.toast.toast-info .toast-header {
  background: rgba(var(--color-primary-rgb), 0.05);
  border-bottom-color: rgba(var(--color-primary-rgb), 0.2);
}

.toast.toast-info .toast-icon {
  color: var(--color-primary);
}

.toast.toast-info {
  border-left: 4px solid var(--color-primary);
}

/* =================================================================
   THEME VARIATIONS: TOAST
   ================================================================= */

/* Green Theme */
[data-theme="green"] .toast.toast-info .toast-header {
  background: rgba(22, 163, 74, 0.05);
  border-bottom-color: rgba(22, 163, 74, 0.2);
}

[data-theme="green"] .toast.toast-info .toast-icon {
  color: #16A34A;
}

[data-theme="green"] .toast.toast-info {
  border-left-color: #16A34A;
}

/* Maroon Theme */
[data-theme="maroon"] .toast.toast-info .toast-header {
  background: rgba(159, 18, 57, 0.05);
  border-bottom-color: rgba(159, 18, 57, 0.2);
}

[data-theme="maroon"] .toast.toast-info .toast-icon {
  color: #9F1239;
}

[data-theme="maroon"] .toast.toast-info {
  border-left-color: #9F1239;
}

/* =================================================================
   RESPONSIVE: TOAST
   ================================================================= */

@media (max-width: 575.98px) {
  .toast-container {
    top: calc(var(--header-height-mobile) + var(--space-3));
    left: var(--space-3);
    right: var(--space-3);
    transform: none;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* =================================================================
   ANIMATIONS: TOAST
   ================================================================= */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.toast.hiding {
  animation: fadeOut 0.3s ease-out;
}

/* =================================================================
   ACCESSIBILITY: TOAST
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
  
  .toast.hiding {
    animation: none;
    opacity: 0;
  }
}

/* High Contrast */
@media (prefers-contrast: high) {
  .toast {
    border-width: 2px;
  }
  
  .toast-header {
    border-bottom-width: 2px;
  }
}
/* =================================================================
   ДОДАТИ ДО ІСНУЮЧОГО custom.css
   Нові класи для зайнятих слотів
   ================================================================= */

/* -- Оновлення для .timeslot-taken (зайнятий слот) -- */
.timeslot-taken {
  background: repeating-linear-gradient(
    45deg,
    var(--bg-section-alt),
    var(--bg-section-alt) 8px,
    var(--color-border) 8px,
    var(--color-border) 10px
  ) !important;
  color: var(--color-text-light) !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  position: relative;
}

.timeslot-taken::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-error);
  transform: translateY(-50%);
}

/* -- Оновлення .timeslot-disabled (минулий час) -- */
.timeslot-disabled {
  background: var(--bg-section-alt) !important;
  color: var(--color-text-light) !important;
  cursor: not-allowed !important;
  opacity: 0.5;
  border-style: dashed;
}

/* -- Оновлення легенди .legend-taken -- */
.legend-taken {
  background: repeating-linear-gradient(
    45deg,
    var(--bg-section-alt),
    var(--bg-section-alt) 4px,
    var(--color-border) 4px,
    var(--color-border) 5px
  );
  position: relative;
}

.legend-taken::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--color-error);
  transform: translateY(-50%);
}

/* =================================================================
   RESPONSIVE: Зайняті слоти
   ================================================================= */

/* Mobile */
@media (max-width: 575.98px) {
  .timeslot-taken::after {
    height: 1.5px;
  }
}

/* =================================================================
   ACCESSIBILITY: Зайняті слоти
   ================================================================= */

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .timeslot-taken {
    background: repeating-linear-gradient(
      45deg,
      #000,
      #000 8px,
      #fff 8px,
      #fff 10px
    ) !important;
  }
  
  .timeslot-taken::after {
    height: 3px;
    background: #f00;
  }
  
  .legend-taken::after {
    height: 2px;
    background: #f00;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .timeslot-taken,
  .timeslot-disabled {
    transition: none;
  }
}

/* Focus Visible for Keyboard Navigation */
.timeslot-taken:focus-visible,
.timeslot-disabled:focus-visible {
  outline: 3px solid var(--color-error);
  outline-offset: 2px;
}

/* =================================================================
   THEME VARIATIONS: Зайняті слоти
   ================================================================= */

/* Green Theme */
[data-theme="green"] .timeslot-taken::after,
[data-theme="green"] .legend-taken::after {
  background: #DC2626;
}

/* Maroon Theme */
[data-theme="maroon"] .timeslot-taken::after,
[data-theme="maroon"] .legend-taken::after {
  background: #DC2626;
}

/* =================================================================
   PRINT: Зайняті слоти
   ================================================================= */

@media print {
  .timeslot-taken::after {
    background: #000 !important;
    height: 2px;
  }
  
  .timeslot-taken {
    background: repeating-linear-gradient(
      45deg,
      #fff,
      #fff 8px,
      #000 8px,
      #000 10px
    ) !important;
  }
}


/* =================================================================
   ДОДАТИ ДО custom.css
   Стилі для повністю зайнятих днів (.day-fully-booked)
   ================================================================= */

/* -- Day Fully Booked (всі слоти зайняті) -- */
.day-fully-booked {
  background: var(--bg-section-alt) !important;
  border-color: var(--color-border) !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  position: relative;
}

.day-fully-booked .day-label,
.day-fully-booked .date-number {
  color: var(--color-text-light) !important;
}

/* Діагональна лінія перекреслення */
.day-fully-booked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--color-error);
  transform: translateY(-50%) rotate(-15deg);
  z-index: 1;
}

/* =================================================================
   RESPONSIVE: Повністю зайняті дні
   ================================================================= */

@media (max-width: 575.98px) {
  .day-fully-booked::before {
    left: 20%;
    right: 20%;
    height: 1.5px;
  }
}

/* =================================================================
   ACCESSIBILITY: Повністю зайняті дні
   ================================================================= */

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .day-fully-booked::before {
    height: 3px;
    background: #f00;
  }
  
  .day-fully-booked {
    border-width: 2px !important;
  }
}

/* Focus Visible for Keyboard Navigation */
.day-fully-booked:focus-visible {
  outline: 3px solid var(--color-error);
  outline-offset: 2px;
}

/* =================================================================
   THEME VARIATIONS: Повністю зайняті дні
   ================================================================= */

/* Працює з усіма темами - використовує --color-error */
[data-theme="green"] .day-fully-booked::before,
[data-theme="maroon"] .day-fully-booked::before {
  background: var(--color-error);
}

/* =================================================================
   ДОДАТИ ДО custom.css
   Візуалізація помилок валідації для дати/часу
   ================================================================= */

/* -- Calendar Error (коли не обрано дату) -- */
.calendar-error {
  animation: shakeError 0.5s ease-in-out;
  border: 2px solid var(--color-error) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.calendar-error .calendar-weekly-days {
  position: relative;
}

/*.calendar-error .calendar-weekly-days::after {
  content: 'Оберіть дату';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-error);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  animation: fadeInUp 0.3s ease-out;
  z-index: 10;
}*/

/* -- Time Slots Error (коли не обрано час) -- */
.timeslots-error {
  animation: shakeError 0.5s ease-in-out;
  border: 2px solid var(--color-error);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  position: relative;
}

/*.timeslots-error::after {
  content: 'Оберіть час';
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-error);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  animation: fadeInUp 0.3s ease-out;
  z-index: 10;
}*/





/* -- Error Message Element (создается через JS) -- */
.error-message-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-error);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  animation: fadeInUp 0.3s ease-out;
  z-index: 10;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .error-message-tooltip {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    bottom: -28px;
  }
}

/* Убираем старые ::after стили для calendar-error и timeslots-error */
.calendar-error,
.timeslots-error {
  animation: shakeError 0.5s ease-in-out;
  border: 2px solid var(--color-error);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  position: relative;
}


/* =================================================================
   ОБНОВИТЬ В custom.css
   Стили для timeslots-error
   ================================================================= */

/* -- Timeslots Error Container -- */
.timeslots-error {
  animation: shakeError 0.5s ease-in-out;
  border: 2px solid var(--color-error);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  position: relative;
  /* ВАЖНО: Добавляем padding-bottom для tooltip */
  padding-bottom: calc(var(--space-2) + 40px);
}

/* -- Error Tooltip (создается через JS) -- */
.error-message-tooltip {
  position: absolute;
  bottom: -35px; 
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-error);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  animation: fadeInUp 0.3s ease-out;
  z-index: 10;
  pointer-events: none;
}

/* =================================================================
   RESPONSIVE: Error Messages
   ================================================================= */

@media (max-width: 575.98px) {
  .error-message-tooltip {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    bottom: 4px;
  }
  
  .timeslots-error {
    padding-bottom: calc(var(--space-2) + 32px);
  }
}

/* =================================================================
   ACCESSIBILITY: Error Messages
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
  .calendar-error,
  .timeslots-error {
    animation: none;
  }
  
  .error-message-tooltip {
    animation: none;
  }
}

/* High Contrast */
@media (prefers-contrast: high) {
  .calendar-error,
  .timeslots-error {
    border-width: 3px;
  }
}



/* -- Form Check Error (для чекбокса політики) -- */
.form-check-error {
  animation: shakeError 0.5s ease-in-out;
  padding: var(--space-3);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.05);
}

.form-check-error .form-check-label {
  color: var(--color-error);
  font-weight: var(--fw-semibold);
}

/* -- Shake Animation -- */
@keyframes shakeError {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* =================================================================
   RESPONSIVE: Validation Errors
   ================================================================= */

@media (max-width: 575.98px) {
  .calendar-error .calendar-weekly-days::after,
  .timeslots-error::after {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    bottom: -28px;
  }
}

/* =================================================================
   ACCESSIBILITY: Validation Errors
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
  .calendar-error,
  .timeslots-error,
  .form-check-error {
    animation: none;
  }
  
  .calendar-error .calendar-weekly-days::after,
  .timeslots-error::after {
    animation: none;
  }
}

/* High Contrast */
@media (prefers-contrast: high) {
  .calendar-error,
  .timeslots-error,
  .form-check-error {
    border-width: 3px;
  }
}



/* =================================================================
   ДОДАТИ В custom.css
   Стилі для минулих будніх днів та заблокованих доктором днів/годин
   ================================================================= */

/* -- Day Past (минулий будній день) -- */
.day-past {
  background: var(--bg-section-alt) !important;
  border-color: var(--color-border) !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  position: relative;
}

.day-past .day-label,
.day-past .date-number {
  color: var(--color-text-light) !important;
}

/* Діагональна лінія перекреслення для минулих днів */
.day-past::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--color-error);
  transform: translateY(-50%) rotate(-15deg);
  z-index: 1;
}

/* -- Day Blocked (заблокований доктором) -- */
.day-blocked {
  background: var(--bg-section-alt) !important;
  border-color: var(--color-border) !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  position: relative;
}

.day-blocked .day-label,
.day-blocked .date-number {
  color: var(--color-text-light) !important;
}

/* Діагональна лінія перекреслення для заблокованих днів */
.day-blocked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--color-error);
  transform: translateY(-50%) rotate(-15deg);
  z-index: 1;
}

/* -- Timeslot Blocked (час заблокований доктором) -- */
.timeslot-blocked {
  background: repeating-linear-gradient(
    45deg,
    var(--bg-section-alt),
    var(--bg-section-alt) 8px,
    var(--color-border) 8px,
    var(--color-border) 10px
  ) !important;
  color: var(--color-text-light) !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  position: relative;
}

.timeslot-blocked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-error);
  transform: translateY(-50%);
}

/* =================================================================
   RESPONSIVE: Минулі та заблоковані дні
   ================================================================= */

/* Mobile */
@media (max-width: 575.98px) {
  .day-past::before,
  .day-blocked::before {
    left: 20%;
    right: 20%;
    height: 1.5px;
  }
  
  .timeslot-blocked::after {
    height: 1.5px;
  }
}

/* =================================================================
   ACCESSIBILITY: Минулі та заблоковані дні
   ================================================================= */

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .day-past::before,
  .day-blocked::before {
    height: 3px;
    background: #f00;
  }
  
  .day-past,
  .day-blocked {
    border-width: 2px !important;
  }
  
  .timeslot-blocked {
    background: repeating-linear-gradient(
      45deg,
      #000,
      #000 8px,
      #fff 8px,
      #fff 10px
    ) !important;
  }
  
  .timeslot-blocked::after {
    height: 3px;
    background: #f00;
  }
}

/* Focus Visible for Keyboard Navigation */
.day-past:focus-visible,
.day-blocked:focus-visible,
.timeslot-blocked:focus-visible {
  outline: 3px solid var(--color-error);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .day-past,
  .day-blocked,
  .timeslot-blocked {
    transition: none;
  }
}

/* =================================================================
   THEME VARIATIONS: Минулі та заблоковані дні
   ================================================================= */

/* Працює з усіма темами - використовує --color-error */
[data-theme="green"] .day-past::before,
[data-theme="green"] .day-blocked::before,
[data-theme="green"] .timeslot-blocked::after,
[data-theme="maroon"] .day-past::before,
[data-theme="maroon"] .day-blocked::before,
[data-theme="maroon"] .timeslot-blocked::after {
  background: var(--color-error);
}

/* =================================================================
   PRINT: Минулі та заблоковані дні
   ================================================================= */

@media print {
  .day-past::before,
  .day-blocked::before {
    background: #000 !important;
    height: 2px;
  }
  
  .timeslot-blocked::after {
    background: #000 !important;
    height: 2px;
  }
  
  .timeslot-blocked {
    background: repeating-linear-gradient(
      45deg,
      #fff,
      #fff 8px,
      #000 8px,
      #000 10px
    ) !important;
  }
}





/* =================================================================
   ДОДАТИ В custom.css
   Success Message - Оновлена версія з покращеним дизайном
   ================================================================= */

/* -- Success Message Container -- */
.booking-success {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease-out;
}

/* -- Success Icon -- */
.success-icon {
  font-size: 5rem;
  color: var(--color-success);
  margin-bottom: var(--space-5);
  animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* -- Success Title -- */
.success-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

/* -- Success Subtitle -- */
.success-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

/* -- Patient Name -- */
.success-patient {
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-6);
}

.success-name {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
}

/* -- Success Details Section -- */
.success-details {
  background: var(--bg-section-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  border: 2px solid var(--color-border);
}

.success-waiting-label {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  font-weight: var(--fw-medium);
}

/* -- DateTime Box -- */
.success-datetime-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  background: var(--bg-surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.success-datetime-box i {
  font-size: var(--text-2xl);
}

/* -- Address Box -- */
.success-address-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--bg-surface);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.success-address-box i {
  font-size: var(--text-lg);
  color: var(--color-primary);
}

/* -- Contact Section -- */
.success-contact {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.success-questions-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  font-weight: var(--fw-medium);
}

/* -- Phone Box -- */
.success-phone-box {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  text-decoration: none;
}

.success-phone-box:hover {
  background: var(--color-primary);
  color: var(--color-white);
  /*transform: translateY(-2px);*/
  box-shadow: var(--shadow-md);
}

.success-phone-box .success-phone,
.success-phone-box:hover .success-phone {
  color: inherit; 
  text-decoration: none;
}

.success-phone-box i {
  font-size: var(--text-xl);
  color: inherit; 
}

.success-phone-box i {
  font-size: var(--text-xl);
}

/* -- Book Again Button -- */
.booking-again-btn {
  min-width: 250px;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.booking-again-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.booking-again-btn i {
  transition: transform 0.3s ease;
}

.booking-again-btn:hover i {
  transform: rotate(180deg);
}

/* =================================================================
   RESPONSIVE: Success Message
   ================================================================= */

/* Mobile */
@media (max-width: 575.98px) {
  .booking-success {
    padding: var(--space-8) var(--space-4);
  }
  
  .success-icon {
    font-size: 3.5rem;
  }
  
  .success-title {
    font-size: var(--text-xl);
  }
  
  .success-subtitle {
    font-size: var(--text-base);
  }
  
  .success-patient {
    font-size: var(--text-lg);
  }
  
  .success-datetime-box {
    font-size: var(--text-lg);
    flex-direction: column;
    text-align: center;
  }
  
  .success-address-box {
    flex-direction: column;
    text-align: center;
  }
  
  .success-phone-box {
    font-size: var(--text-base);
  }
  
  .booking-again-btn {
    min-width: 100%;
    width: 100%;
  }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
  .booking-success {
    padding: var(--space-10) var(--space-6);
  }
  
  .success-icon {
    font-size: 4rem;
  }
}

/* =================================================================
   ACCESSIBILITY: Success Message
   ================================================================= */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .booking-success {
    animation: none;
  }
  
  .success-icon {
    animation: none;
  }
  
  .booking-again-btn i {
    transition: none;
  }
  
  .booking-again-btn:hover i {
    transform: none;
  }
}

/* High Contrast */
@media (prefers-contrast: high) {
  .booking-success {
    border: 3px solid var(--color-success);
  }
  
  .success-details {
    border-width: 3px;
  }
  
  .success-datetime-box,
  .success-address-box {
    border: 2px solid var(--color-primary);
  }
}

/* Focus Visible */
.booking-again-btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* =================================================================
   PRINT: Success Message
   ================================================================= */

@media print {
  .booking-success {
    box-shadow: none;
    border: 2px solid var(--color-black);
    page-break-inside: avoid;
  }
  
  .booking-again-btn {
    display: none;
  }
  
  .success-icon {
    color: var(--color-black) !important;
  }
}


/* =================================================================
   TELEGRAM REMINDER BUTTON IN SUCCESS MESSAGE
   ================================================================= */

.success-telegram-reminder {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--bg-surface) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-primary);
  text-align: center;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb, 59, 130, 246), 0.4);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(var(--color-primary-rgb, 59, 130, 246), 0.2);
  }
}

.reminder-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-weight: var(--fw-medium);
}

.reminder-info i {
  color: var(--color-primary);
  font-size: var(--text-xl);
  animation: bellRing 1s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

.reminder-text {
  line-height: var(--leading-snug);
}

#telegramReminderBtn {
  width: 100%;
  max-width: 400px;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none;
}

#telegramReminderBtn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
  text-decoration: none;
}

#telegramReminderBtn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

#telegramReminderBtn i {
  font-size: 1.5rem;
}

/* Dark theme support */
[data-theme="dark"] .success-telegram-reminder {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb, 59, 130, 246), 0.2) 0%, var(--bg-surface) 100%);
}

/* Responsive */
@media (max-width: 575.98px) {
  .success-telegram-reminder {
    padding: var(--space-4);
  }
  
  .reminder-info {
    flex-direction: column;
    text-align: center;
  }
  
  #telegramReminderBtn {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .success-telegram-reminder {
    animation: none;
  }
  
  .reminder-info i {
    animation: none;
  }
  
  #telegramReminderBtn:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .success-telegram-reminder {
    border-width: 3px;
  }
  
  #telegramReminderBtn {
    border: 2px solid var(--color-white);
  }
}

/* Focus visible */
#telegramReminderBtn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}