/* Public Styles for Advanced Service Booking Plugin */

.asb-booking-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.asb-booking-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Progress Steps */
.asb-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.asb-progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.asb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.asb-step.active .step-number,
.asb-step.completed .step-number {
    background: #2271b1;
    color: #fff;
}

.step-label {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.asb-step.active .step-label {
    color: #2271b1;
    font-weight: 600;
}

/* Step Content */
.asb-step-content {
    display: none;
    animation: fadeIn 0.3s;
}

.asb-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.asb-step-content h2 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
}

/* Services List */
.asb-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.asb-service-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.asb-service-item:hover {
    border-color: #2271b1;
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.2);
}

.asb-service-item .service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.asb-service-item .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asb-service-item .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #ddd;
}

.service-info {
    padding: 20px;
}

.service-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.service-duration {
    color: #666;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-description {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

/* Buttons */
.asb-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: inline-block;
}

.asb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.asb-btn-primary {
    background: #2271b1;
    color: #fff;
}

.asb-btn-primary:hover:not(:disabled) {
    background: #135e96;
}

.asb-btn-secondary {
    background: #f0f0f1;
    color: #333;
}

.asb-btn-secondary:hover {
    background: #dcdcde;
}

.asb-select-service {
    width: 100%;
}

/* DateTime Selection */
.asb-datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.asb-date-section h3,
.asb-time-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.asb-dates-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
}

.asb-date-option {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.asb-date-option:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.asb-date-option.selected {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.asb-times-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
}

.asb-time-option {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asb-time-option:not(.unavailable):hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.asb-time-option.selected {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.asb-time-option.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f8f8;
}

.asb-select-date-first {
    text-align: center;
    color: #999;
    padding: 20px;
}

.asb-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* Step Actions */
.asb-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* Customer Form */
.asb-form-group {
    margin-bottom: 20px;
}

.asb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.asb-form-group input,
.asb-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.asb-form-group input:focus,
.asb-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
}

/* Booking Summary */
.asb-booking-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-item .label {
    font-weight: 600;
    color: #666;
}

.summary-item .value {
    color: #333;
}

/* Thank You Page */
.asb-thank-you {
    text-align: center;
    padding: 20px;
}

.asb-thank-you h1 {
    color: #2271b1;
    margin-bottom: 15px;
}

.asb-booking-details {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.asb-booking-details h3 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

.booking-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.booking-detail-item:last-child {
    border-bottom: none;
}

/* Calendar Buttons */
.asb-calendar-buttons {
    margin-top: 30px;
}

.asb-calendar-buttons h4 {
    margin-bottom: 15px;
    color: #333;
}

.calendar-btn-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #2271b1;
    color: #2271b1;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.calendar-btn:hover {
    background: #2271b1;
    color: #fff;
}

/* No Services */
.asb-no-services {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .asb-booking-container {
        padding: 20px;
    }
    
    .asb-progress-steps {
        flex-wrap: wrap;
    }
    
    .asb-step {
        flex-basis: 50%;
        margin-bottom: 20px;
    }
    
    .asb-services-list {
        grid-template-columns: 1fr;
    }
    
    .asb-datetime-container {
        grid-template-columns: 1fr;
    }
    
    .asb-step-actions {
        flex-direction: column;
    }
    
    .asb-btn {
        width: 100%;
    }
    
    .calendar-btn-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .asb-progress-steps::before {
        display: none;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-label {
        font-size: 11px;
    }
}
