/**
 * Blade Theory - Booking Styles (Dark Theme)
 *
 * @package Blade_Theory
 */

/* Container */
.bt-booking {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Steps */
.bt-step {
    display: none;
    animation: btFadeIn 0.3s ease;
}

.bt-step.active {
    display: block;
}

.bt-step.completed {
    display: block;
    opacity: 0.6;
}

.bt-step.completed .bt-step-title {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.bt-step.completed .bt-step-title:hover {
    opacity: 1;
}

.bt-step.completed .bt-step-title::after {
    content: ' ✓';
    color: #d4af37;
}

/* Hide content of completed steps, show only title */
.bt-step.completed > *:not(.bt-step-title) {
    display: none;
}

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

/* Step Title */
.bt-step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #d4af37;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Back Button */
.bt-back-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: transparent;
    color: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bt-back-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.bt-back-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

/* Hide back button in completed steps */
.bt-step.completed .bt-back-btn {
    display: none;
}

/* Services */
.bt-services {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bt-service-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.bt-service-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.bt-service-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.bt-service-name {
    font-weight: 500;
}

.bt-service-info {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.bt-service-price {
    color: #d4af37;
    font-weight: 600;
}

/* Calendar */
.bt-calendar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bt-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bt-calendar-month {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.bt-calendar-prev,
.bt-calendar-next {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.bt-calendar-prev:hover,
.bt-calendar-next:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.bt-calendar-prev:disabled,
.bt-calendar-next:disabled {
    cursor: not-allowed;
}

.bt-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.bt-calendar-weekdays span {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 5px;
}

.bt-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.bt-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bt-day-empty {
    cursor: default;
}

.bt-day-past,
.bt-day-unavailable {
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

.bt-day-available {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

.bt-day-available:hover {
    background: rgba(212, 175, 55, 0.4);
}

.bt-day-selected,
.bt-day-selected:hover {
    background: #d4af37;
    color: #000;
    font-weight: 600;
}

/* Selected Date Display */
.bt-selected-date {
    text-align: center;
    font-size: 1rem;
    color: #d4af37;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

/* Time Slots */
.bt-time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 480px) {
    .bt-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bt-time-slot {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bt-time-slot:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.bt-time-slot.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #000;
    font-weight: 600;
}

.bt-loading,
.bt-no-slots,
.bt-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.5);
}

/* Summary */
.bt-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bt-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.bt-summary-label {
    color: rgba(255, 255, 255, 0.6);
}

.bt-summary-value {
    color: #fff;
    font-weight: 500;
}

/* Form */
.bt-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bt-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bt-form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.bt-form-group input,
.bt-form-group textarea {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.bt-form-group input:focus,
.bt-form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.bt-form-group input::placeholder,
.bt-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.bt-submit-btn {
    padding: 15px 30px;
    background: #d4af37;
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.bt-submit-btn:hover {
    background: #c4a030;
}

.bt-submit-btn:disabled {
    background: rgba(212, 175, 55, 0.5);
    cursor: not-allowed;
}

/* Success */
.bt-step-success {
    text-align: center;
    padding: 40px 20px;
}

.bt-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #d4af37;
    margin: 0 auto 20px;
}

.bt-success-title {
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 10px;
}

.bt-success-message {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.bt-success-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.bt-success-details p {
    margin: 5px 0;
    color: #fff;
}

.bt-new-booking-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #d4af37;
    border-radius: 6px;
    color: #d4af37;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bt-new-booking-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}
