/* Base Container */
.bsb-container {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}



/* Progress Bar */
.bsb-progress {
    display: flex;
    align-items: center;
    padding-bottom: 3rem;
}

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

.bsb-step-number {
    width: 2rem;
    height: 2rem;
    background: #f3f4f6;
    color: #9ca3af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

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

.bsb-progress-step.completed .bsb-step-number {
    background: #1a1a1a;
    color: white;
}

.bsb-step-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bsb-progress-step.active .bsb-step-label {
    color: #e31e24;
    font-weight: 800;
}

.bsb-progress-line {
    flex: 1;
    height: 2px;
    background: #f3f4f6;
    margin: 0 1rem;
    position: relative;
    top: -0.9rem;
    z-index: 0;
}

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

/* Steps */
.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: 800;
    color: #1e293b;
    font-style: italic;
}

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

.bsb-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    gap: 10px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
    border: 2px solid #f3f4f6;
    position: relative;
}

.bsb-service-item:hover {
    background: #fdf2f2;
    border-color: #fca5a5;
}

.bsb-service-item.selected {
    background: #fdf2f2;
    border-color: #e31e24;
}

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

.service-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}

.service-price {
    font-weight: 800;
    font-size: 1rem;
    color: #1a1a1a;
    white-space: nowrap;
}

.sale-badge {
    background: #ec1d25;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

/* 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: 1.5rem;
    color: #4b5563;
    transition: all 0.2s ease;
}

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

.bsb-calendar-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    text-transform: uppercase;
    font-style: italic;
}

.bsb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
    font-weight: 800;
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.bsb-calendar-day {
    aspect-ratio: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    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;
}

.bsb-calendar-day.disabled,
.bsb-calendar-day.weekend {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #f3f4f6;
}

.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.25rem;
    font-weight: 800;
    color: #1e293b;
    font-style: italic;
}

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

.bsb-time-slot {
    aspect-ratio: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    background: white;
    border: 1px solid #e5e7eb;
    position: relative;
    font-size: 0.9rem;
}

.bsb-time-slot:hover:not(.disabled) {
    border-color: #ec1d25;
    background: #fdf2f2;
    color: #ec1d25;
}

.bsb-time-slot.selected {
    background: #ec1d25;
    color: white;
    border-color: #ec1d25;
}

.bsb-time-slot.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #f3f4f6;
}

.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: 50%;
    height: 1.5px;
    background: #d1d5db;
    transform-origin: center;
}

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

/* Messages */
.select-date-first,
.loading {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.no-slots,
.error {
    text-align: center;
    color: #e31e24;
    margin: 2rem 0;
    font-weight: 600;
}

.no-slots-message {
    text-align: center;
    color: #b45309;
    margin: 2rem 0;
    font-weight: 600;
    padding: 1.5rem;
    background: #fffbeb;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

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

.bsb-location-grid {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.bsb-location-item {
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    background: #f9fafb;
    transition: all 0.2s ease;
    position: relative;
}

.bsb-location-item:hover {
    border-color: #fca5a5;
    background: #fdf2f2;
}

.bsb-location-item.selected {
    border-color: #e31e24;
    background: #fdf2f2;
}

.bsb-location-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.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 {
    font-size: 1.25rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: #1e293b;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.5px;
}


.location-details {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.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: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.selected-location-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-style: normal;
    text-transform: none;
}

.change-location-link {
    color: #e31e24;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.change-location-link:hover {
    color: #b91c1c;
}

.select-location-first {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    margin: 2rem 0;
}

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

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

.bsb-booking-summary h4 {
    margin: 0 0 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    font-style: italic;
}

.bsb-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e5e7eb;
}

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

.bsb-summary-item span:first-child {
    color: #6b7280;
    font-size: 0.9rem;
}

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

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

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

.bsb-form-group label {
    font-weight: 700;
    color: #374151;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bsb-form-group input,
.bsb-form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s ease;
    background: white;
    color: #1a1a1a;
}

.bsb-form-group input:focus,
.bsb-form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a !important;
    box-shadow: 0 0 0 1px #1a1a1a;
}

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

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

.bsb-button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.bsb-prev {
    background: #f3f4f6;
    color: #4b5563;
}

.bsb-prev:hover:not(:disabled) {
    background: #e5e7eb;
    color: #1a1a1a;
}

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

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

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

/* Responsive Design */
@media (max-width: 820px) {
    .bsb-service-item { padding: 1rem; }
    .sale-badge { display: none; }
    .bsb-time-slots-grid { grid-template-columns: repeat(4, 1fr); }
    .bsb-buttons { flex-direction: column-reverse; }
    .bsb-button { width: 100%; padding: 1.25rem; }
    .bsb-progress-step { font-size: 0.75rem; }
    .bsb-step-number { width: 1.75rem; height: 1.75rem; font-size: 0.8rem; }
    .bsb-calendar-day { aspect-ratio: 1; }
}

@media (max-width: 480px) {
    .bsb-service-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .service-price { align-self: flex-end; }
    .bsb-calendar-weekdays { font-size: 0.65rem; }
    .bsb-time-slots-grid { grid-template-columns: repeat(3, 1fr); }
    .bsb-step h3 { font-size: 1.25rem; }
}