/**
 * LatePoint Multi-Service Styles
 *
 * Visual styling for checkbox-based multi-service selection
 *
 * @package eRide
 * @version 1.0.35
 */

/* Duration Display */
.lp-multiservice-duration-display {
    background: #f5f7fa;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.lp-multiservice-duration-display.has-selection {
    background: #e6f7ff;
    border-color: #1890ff;
    border-style: solid;
}

.lp-multiservice-duration-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lp-multiservice-duration-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.lp-multiservice-duration-display.has-selection .lp-multiservice-duration-value {
    color: #1890ff;
}

.lp-multiservice-services-count {
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.lp-multiservice-duration-display.has-selection .lp-multiservice-services-count {
    color: #0969da;
}

/* Checkbox Indicator */
.os-services .os-selectable-item {
    position: relative !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.os-services .os-selectable-item .service-checkbox {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 24px !important;
    height: 24px !important;
    border: 2px solid #cbd5e0 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.os-services .os-selectable-item .service-checkbox::after {
    content: '' !important;
    width: 12px !important;
    height: 12px !important;
    background: #1890ff !important;
    border-radius: 3px !important;
    transform: scale(0) !important;
    transition: transform 0.2s ease !important;
    display: block !important;
}

.os-services .os-selectable-item.selected .service-checkbox {
    border-color: #1890ff !important;
    background: #e6f7ff !important;
}

.os-services .os-selectable-item.selected .service-checkbox::after {
    transform: scale(1) !important;
}

/* Service Item Enhancements */
.os-services .os-selectable-item {
    border: 2px solid #e2e8f0;
}

.os-services .os-selectable-item:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.os-services .os-selectable-item.selected {
    border-color: #1890ff;
    background: #f0f9ff;
}

/* Service Title and Price Layout - Only for services step */
.step-services-w .os-services .os-item-category-info.os-item-i:has(.service-price-display),
.step-services-w .os-services .os-item-i:has(.service-price-display) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.service-title-text {
    display: block;
}

/* Service Price Display */
.service-price-display {
    display: block !important;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.3;
}

.os-selectable-item.selected .service-price-display {
    color: #0969da;
}

/* Remove border for service items in services step */
.step-services-w .os-services .os-selectable-item {
    border: none !important;
}

/* Duration Badge on Service Tiles */
.os-item-duration {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.os-selectable-item.selected .os-item-duration {
    background: #dbeafe;
    color: #1e40af;
}

/* Next Button State */
.latepoint-next-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Admin Connection Info */
.os-booking-connection-info {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.os-booking-connection-info h4 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
}

.os-booking-connection-info p {
    margin: 0;
    color: #78350f;
    font-size: 13px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .lp-multiservice-duration-display {
        padding: 16px;
        margin-bottom: 20px;
    }

    .lp-multiservice-duration-value {
        font-size: 28px;
    }

    .os-services .os-selectable-item .service-checkbox {
        width: 20px;
        height: 20px;
    }

    .os-services .os-selectable-item .service-checkbox::after {
        width: 10px;
        height: 10px;
    }
}

/* Animation for Selection */
@keyframes checkboxPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.os-services .os-selectable-item.selected .service-checkbox {
    animation: checkboxPulse 0.3s ease;
}
