.bsb-container {
    font-family: 'Open sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bsb-progress {
    display: flex;
    align-items: center;
    padding-bottom: 2rem;
}

.bsb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0.5;
    position: relative;
}

.bsb-step-number {
    width: 2.2rem;
    height: 2.2rem;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.bsb-progress-step.active .bsb-step-number {
    background: #ec1d25;
    color: white;
    transform: scale(1.1);
}

.bsb-progress-step.completed .bsb-step-number {
    background: #10b981;
    color: white;
}

.bsb-step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.bsb-progress-step.active .bsb-step-label {
    color: #ec1d25;
    font-weight: 600;
}

.bsb-progress-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 1rem;
    position: relative;
    top: -1.1rem;
}

.bsb-progress-line.active {
    background: #ec1d25;
}

.bsb-step {
    display: none;
    min-height: 500px;
}

.bsb-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.bsb-step h3 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

/* Service Selection */
.bsb-service-grid {
    display: grid;
    gap: 20px;
}

.bsb-service-item {
    display: flex;                /* namesto inline-grid */
    align-items: center;          /* poravna navpično na sredino */
    justify-content: space-between; /* ime levo, cena desno */
    border-radius: 10px;
    gap: 10px;
    padding-top: 1.7rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    border: 1px solid #e2e8f0;
    position: relative;
}

.bsb-service-item:hover {
    background: #fef2f2;
    border-color: #ec1d25;
}

.bsb-service-item.selected {
    border-color: #ec1d25;
    background: #fef2f2;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.service-name {
    font-weight: 600;
    font-size: 1rem;
    line-height: var(--ast-body-line-height,1);
    color: #1e293b;
}

.service-price {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap; /* da cena ostane v eni vrstici */
}

.sale-badge {
    background: #ec1d25;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sale-price {
    color: #ec1d25 !important;
    font-size: 0.98rem !important;
    font-weight: bold;
}

.regular-price {
    color: #9ca3af !important;
    text-decoration: line-through;
    font-size: 0.85rem !important;
    margin-left: 0.5rem;
}

/* Calendar */
.bsb-calendar {
    border-radius: 12px;
    margin-bottom: 2rem;
    display: none; /* Hidden by default until location is selected */
}

.bsb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bsb-calendar-nav {
    background: white;
    border-radius: 8px;
    width: 1rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.bsb-calendar-nav:hover {
    background: #e2e8f0;
    color: black;
    border-radius: 8px;
}

.bsb-calendar-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
}

.bsb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.bsb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.bsb-calendar-day {
    aspect-ratio: 1.75;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    background: white;
    position: relative;
}

.bsb-calendar-day:hover:not(.disabled):not(.weekend) {
    background: #fef2f2;
    border: 1px solid #ec1d25;
    color: #ec1d25;
}

.bsb-calendar-day.selected {
    background: #ec1d25;
    color: white;
    border-color: #ec1d25;
    font-weight: 600;
}

.bsb-calendar-day.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    position: relative;
}

.bsb-calendar-day.holiday {
    color: #f87171;
    cursor: not-allowed;
    background: #fef2f2;
    border: 1px solid #fecaca;
    position: relative;
}


.bsb-calendar-day.weekend {
    color: #9ca3af;
    cursor: not-allowed;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    position: relative;
}


/* Time Slots */
.bsb-time-slots {
    margin-bottom: 2rem;
}

.bsb-time-slots h4 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.bsb-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.bsb-time-slot {
    aspect-ratio: 1.75;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    background: white;
    position: relative;
}

.bsb-time-slot:hover:not(.disabled) {
    border: 1px solid #ec1d25;
    background: #fef2f2;
    color: #ec1d25;
}

.bsb-time-slot.selected {
    background: #ec1d25;
    color: white;
    font-weight: 600;
}

.bsb-time-slot.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: #f1f5f9;
    position: relative;
}


.slot-crossed {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.slot-crossed::before,
.slot-crossed::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 1px;
    background: #9ca3af;
    transform-origin: center;
}

.slot-crossed::before {
    transform: rotate(45deg);
}

.slot-crossed::after {
    transform: rotate(-45deg);
}

.select-date-first {
    text-align: center;
    color: #64748b;
    font-style: italic;
    margin: 2rem 0;
}

.loading {
    text-align: center;
    color: #64748b;
    margin: 2rem 0;
}

.no-slots {
    text-align: center;
    color: #ef4444;
    margin: 2rem 0;
    font-weight: 500;
}

.no-slots-message {
    text-align: center;
    color: #ef4444;
    margin: 2rem 0;
    font-weight: 500;
    padding: 2rem;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* Location Selection */
.bsb-location-selection {
    margin-bottom: 2rem;
}

.bsb-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bsb-location-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
}

.bsb-location-item:hover {
    border-color: #ec1d25;
    background: #fef2f2;
}

.bsb-location-item.selected {
    border-color: #ec1d25;
    background: #fef2f2;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.location-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.location-badge {
    background: #ec1d25;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bsb-location-item[data-location="linhartova"] .location-badge {
    background: #aaa;
}

.location-details {
    font-size: 0.875rem;
    color: #374151;
}

.location-details p {
    margin: 0.5rem 0;
}

.location-details ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.location-details li {
    margin: 0.25rem 0;
}

.selected-location-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.selected-location-header h3 {
    margin-bottom: 1rem;
}

.change-location-link {
    color: #ec1d25;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.change-location-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}
.select-location-first {
    text-align: center;
    color: #64748b;
    font-style: italic;
    margin: 2rem 0;
}


.error {
    text-align: center;
    color: #ef4444;
    margin: 2rem 0;
}

/* Booking Summary */
.bsb-booking-summary {
    background: #f8fafc;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.bsb-booking-summary h4 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.bsb-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.bsb-summary-item:last-child {
    margin-bottom: 0;
}

.bsb-summary-item span:first-child {
    color: #64748b;
    font-size: 0.85rem;

}

.bsb-summary-item span:last-child {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

/* Form */
.bsb-form {
    display: grid;
    gap: 1rem;
}

.bsb-form-group {
    display: grid;
    gap: 0.3rem;
}

.bsb-form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.85rem;
}

.bsb-form-group input,
.bsb-form-group textarea {
    padding: 0.875rem;
    border: 1px solid #aaa !important;
    border-radius: 5px !important;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.bsb-form-group input:focus,
.bsb-form-group textarea:focus {
    outline: none;
    border-color: #ec1d25 !important;
}

.bsb-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.bsb-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.bsb-button {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    min-width: 120px;
}

.bsb-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bsb-prev {
    background: #f1f5f9;
    color: #64748b;
}

.bsb-prev:hover:not(:disabled) {
    background: #e2e8f0;
    color: #475569;
}

.bsb-next,
.bsb-submit {
    background: #ec1d25;
    color: white;
}

.bsb-next:hover:not(:disabled),
.bsb-submit:hover:not(:disabled) {
    background: #475569;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 820px) {
    .bsb-service-grid {
        grid-template-columns: 1fr;
    }
    
    .bsb-location-grid {
        grid-template-columns: 1fr;
    }
       
    .sale-badge {
        display: none;
    }

    .bsb-service-item {
        padding: 1rem;
    }
    
    .bsb-time-slots-grid {
        font-size: 0.875rem;
        grid-template-columns: repeat(5, minmax(40px, 1fr));
    }
    
    .bsb-buttons {
        flex-direction: column;
    }
    
    .bsb-button {
        width: 100%;
    }
    
    .bsb-progress-step {
        font-size: 0.75rem;
    }
    
    .bsb-step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .bsb-calendar-days {
        gap: 0.25rem;
    }
    
    .bsb-calendar-day {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .bsb-service-grid {
        grid-template-columns: 100%;
    }
    
   
    .bsb-calendar-weekdays {
        font-size: 0.75rem;
    }
    
    .bsb-time-slots-grid {
        font-size: 0.875rem;
        grid-template-columns: repeat(5, 1fr);
    }
    
    .service-name {
        font-size: 1rem;
    }
    
    .service-price {
        font-size: 1rem;
    }
}