/* ===== BOOKING WIDGET ===== */
.booking-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: visible;
    align-self: start;
}

.booking-widget__header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 25px 30px;
    text-align: center;
}

.booking-widget__header h2 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 5px;
}

.booking-widget__header p {
    opacity: 0.9;
    font-size: 14px;
}

/* Steps indicator */
.booking-steps {
    display: flex;
    padding: 20px 30px;
    background: var(--gray);
    gap: 4px;
}

.booking-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.booking-step__number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-dark);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.booking-step__label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s;
}

.booking-step.active .booking-step__number {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(194, 145, 124, 0.4);
}

.booking-step.active .booking-step__label {
    color: var(--primary-dark);
    font-weight: 600;
}

.booking-step.completed .booking-step__number {
    background: #28a745;
    color: var(--white);
}

.booking-step.completed .booking-step__label {
    color: #28a745;
}

/* Step content */
.booking-body {
    padding: 25px 30px;
    min-height: 250px;
}

.booking-step-content {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.booking-step-content.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Service cards */
.service-category {
    margin-bottom: 6px;
}

.service-category:first-child .service-category-title {
    margin-top: 0;
}

.service-category-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 12px 0 0;
    padding: 10px 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(194, 145, 124, 0.08);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    user-select: none;
}

.service-category-title:hover {
    background: rgba(194, 145, 124, 0.15);
}

.service-category-arrow {
    font-size: 12px;
    transition: transform 0.3s;
    color: var(--primary);
}

.service-category-title.open .service-category-arrow {
    transform: rotate(180deg);
}

.service-category-body {
    padding-top: 8px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 2px solid var(--gray-dark);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.service-option:hover {
    border-color: var(--primary);
    background: rgba(194, 145, 124, 0.05);
}

.service-option.selected {
    border-color: var(--primary);
    background: rgba(194, 145, 124, 0.1);
}

.service-option__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray-dark);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.service-option.selected .service-option__radio {
    border-color: var(--primary);
    background: var(--primary);
}

.service-option.selected .service-option__radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.service-option__info {
    flex: 1;
    min-width: 0;
}

.service-option__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.service-option__meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.service-option__price {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 14px;
    white-space: nowrap;
}

/* Master cards */
.master-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--gray-dark);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.master-option:hover {
    border-color: var(--primary);
}

.master-option.selected {
    border-color: var(--primary);
    background: rgba(194, 145, 124, 0.1);
}

.master-option__photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.master-option__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-option__photo i {
    font-size: 20px;
    color: var(--primary);
}

.master-option__name {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
}

.master-option__spec {
    font-size: 12px;
    color: var(--text-light);
}

.master-option__duration {
    font-size: 12px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* Calendar */
.booking-calendar {
    margin-bottom: 15px;
}

.booking-calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.booking-calendar__nav h3 {
    font-size: 16px;
    margin: 0;
}

.booking-calendar__nav button {
    background: none;
    border: 2px solid var(--gray-dark);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--text);
}

.booking-calendar__nav button:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.booking-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.booking-calendar__weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    padding: 6px 0;
}

.booking-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.booking-calendar__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    color: var(--text-light);
    transition: all 0.2s;
}

.booking-calendar__day--available {
    color: var(--dark);
    background: #f0f9f0;
    cursor: pointer;
    font-weight: 600;
}

.booking-calendar__day--available:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.booking-calendar__day--selected {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(194, 145, 124, 0.4);
}

.booking-calendar__day--today {
    border: 2px solid var(--primary);
}

.booking-calendar__day--empty {
    visibility: hidden;
}

/* Time slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 2px solid var(--gray-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: var(--primary);
    background: rgba(194, 145, 124, 0.05);
}

.time-slot.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Booking form fields */
.booking-form-fields .form-group {
    margin-bottom: 15px;
}

.booking-form-fields label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.booking-form-fields input,
.booking-form-fields textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark);
    transition: border-color 0.2s;
}

.booking-form-fields input:focus,
.booking-form-fields textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Summary */
.booking-summary {
    background: var(--gray);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.booking-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-dark);
    font-size: 14px;
}

.booking-summary__row:last-child {
    border-bottom: none;
}

.booking-summary__label {
    color: var(--text-light);
}

.booking-summary__value {
    font-weight: 600;
    color: var(--dark);
    text-align: right;
}

/* Navigation buttons */
.booking-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: space-between;
}

.booking-nav .btn {
    min-width: 140px;
}

.booking-widget .btn--outline {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary);
}

.booking-widget .btn--outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary);
}

/* Success screen */
.booking-success {
    text-align: center;
    padding: 30px 0;
}

.booking-success__icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #d4edda;
    color: #28a745;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.booking-success h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.booking-success p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Loading */
.booking-loading {
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
}

.booking-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-dark);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.booking-empty {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
}

.booking-empty i {
    font-size: 40px;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.booking-empty p {
    font-size: 14px;
}

/* Error */
.booking-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-widget__header {
        padding: 20px;
    }

    .booking-body {
        padding: 20px;
    }

    .booking-steps {
        padding: 15px;
    }

    .booking-step__label {
        font-size: 10px;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .booking-nav {
        flex-direction: column;
    }

    .booking-nav .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}
