/* Booking Form Styles */
body.booking-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

/* Office Details Bar */
.office-details-bar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.office-details-content {
  display: flex;
    flex-wrap: wrap;
    justify-content: center;
 align-items: center;
    gap: 25px;
}

.office-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 0.9rem;
}

    .office-detail-item i {
        color: #667eea;
        font-size: 1rem;
    }

    .office-detail-item a {
      color: #333;
        text-decoration: none;
        transition: color 0.2s;
}

  .office-detail-item a:hover {
       color: #667eea;
            text-decoration: underline;
        }

    .office-detail-item span {
        font-weight: 500;
    }

@media (max-width: 768px) {
    .office-details-content {
        flex-direction: column;
   gap: 12px;
        text-align: center;
    }

    .office-detail-item {
  justify-content: center;
    }
}

.booking-container {
    max-width: 800px;
margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Logo i Header zajedno */
.booking-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
  padding: 40px 30px 30px 30px;
    text-align: center;
    position: relative;
}

.booking-header-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

    .booking-header-logo img {
    max-width: 220px;
   height: auto;
   max-height: 100px;
        object-fit: contain;
        filter: brightness(0) invert(1); /* Beli logo na plavoj pozadini */
        opacity: 0.95;
    }

        /* Ako je logo vec beli/svetli, moze se koristiti bez filtera */
        .booking-header-logo img.light-logo {
        filter: none;
        }

.booking-header h1 {
    margin: 10px 0 0 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.booking-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Alternativna opcija: Logo iznad headera */
.booking-header-with-separate-logo {
    text-align: center;
    padding: 30px 30px 0 30px;
    background: white;
}

    .booking-header-with-separate-logo img {
        max-width: 200px;
        height: auto;
        max-height: 80px;
        object-fit: contain;
    }

.booking-body {
    padding: 30px 25px;
}

.form-step {
    display: none;
}

    .form-step.active {
   display: block;
        animation: fadeIn 0.3s ease-in;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
transform: translateY(10px);
    }

    to {
 opacity: 1;
        transform: translateY(0);
    }
}

.step-indicator {
    display: flex;
    justify-content: space-between;
 margin-bottom: 30px;
    position: relative;
}

    .step-indicator::before {
content: '';
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
      height: 2px;
        background: #e0e0e0;
        z-index: 0;
    }

.step {
    flex: 1;
    text-align: center;
    position: relative;
  z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
  display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
  transition: all 0.3s;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* Service Cards Grid - 4 columns */
.service-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1rem;
}

.service-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

    .service-card:hover {
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        transform: translateY(-2px);
    }

    .service-card.selected {
        border-color: #667eea;
   background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    }

    .service-card .check-icon {
        position: absolute;
    top: 12px;
      right: 12px;
        color: #667eea;
    font-size: 1.3rem;
   display: none;
    }

    .service-card.selected .check-icon {
     display: block;
    }

.service-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.service-duration {
    color: #666;
    font-size: 0.85rem;
}

/* Enhanced Calendar Styles - Compacted 30% */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    padding: 5.6px 8.4px;
    background: #f8f9fa;
    border-radius: 5.6px;
}

.calendar-nav-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 3.5px;
  width: 19.6px;
    height: 19.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.595rem;
    color: #667eea;
}

    .calendar-nav-btn:hover {
      background: #667eea;
        color: white;
        border-color: #667eea;
    }

.calendar-month-year {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2.8px;
    margin-bottom: 14px;
}

.calendar-day-header {
text-align: center;
    font-size: 0.455rem;
 font-weight: 600;
    color: #999;
text-transform: uppercase;
    padding: 2.8px 0;
}

.calendar-day {
    aspect-ratio: 1.8;
    border: 1px solid #e0e0e0;
    border-radius: 3.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  transition: all 0.2s;
    font-size: 0.525rem;
  font-weight: 500;
    position: relative;
    background: white;
    min-height: 16.8px;
    padding: 1.4px;
}

    .calendar-day.other-month {
        color: #ccc;
    background: #fafafa;
    }

    .calendar-day.today {
 border: 1.05px solid #667eea;
     font-weight: 700;
 }

    .calendar-day:hover:not(.disabled):not(.other-month) {
    border-color: #667eea;
        background: rgba(102, 126, 234, 0.1);
        transform: scale(1.08);
    }

 .calendar-day.selected {
 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
border-color: #667eea;
        font-weight: 700;
    }

    .calendar-day.disabled {
   opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
    }

        .calendar-day.disabled:hover {
            transform: none;
  }

.calendar-day-number {
  font-size: 0.8rem;
}

.calendar-day-dot {
    position: absolute;
    bottom: 1.4px;
    width: 1.75px;
    height: 1.75px;
    background: #667eea;
    border-radius: 50%;
}

.calendar-day.selected .calendar-day-dot {
    background: white;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}

    .time-slots::-webkit-scrollbar {
        width: 6px;
    }

    .time-slots::-webkit-scrollbar-track {
background: #f1f1f1;
        border-radius: 10px;
    }

    .time-slots::-webkit-scrollbar-thumb {
  background: #667eea;
     border-radius: 10px;
    }

    .time-slots::-webkit-scrollbar-thumb:hover {
background: #5568d3;
   }

 /* Make alerts take full width in time-slots grid */
    .time-slots .alert {
        grid-column: 1 / -1;
        margin: 0;
    }

.time-slot {
 padding: 10px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

    .time-slot:hover:not(.disabled) {
        border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    }

    .time-slot.selected {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
      border-color: #667eea;
    }

    .time-slot.disabled {
        opacity: 0.3;
    cursor: not-allowed;
 }

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-primary:hover {
   transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

.btn-secondary {
    background: #e0e0e0;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
}

    .btn-secondary:hover {
    background: #d0d0d0;
    }

.summary-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
  margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

    .summary-item:last-child {
      border-bottom: none;
    }

.summary-label {
 color: #666;
}

.summary-value {
    font-weight: 600;
}

.success-icon {
    font-size: 4rem;
    color: #4caf50;
    text-align: center;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    text-align: center;
    margin-bottom: 20px;
}

.text-center-block {
    text-align: center;
}

/* Toastr customization for booking page */
#toast-container > div {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#toast-container > .toast-success {
    background-color: #4caf50;
}

#toast-container > .toast-error {
    background-color: #f44336;
}

#toast-container > .toast-info {
    background-color: #667eea;
}

#toast-container > .toast-warning {
    background-color: #ff9800;
}

#toast-container > div:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
.service-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-cards-container {
        grid-template-columns: 1fr;
    }
}
