/* KV Tech Fix Repair Booking CSS */

/* Container */
.kvtech-repair-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

/* Main Title */
.main-title {
    text-align: center;
    color: #ff3131;
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 600;
}

/* Steps Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.step-button {
    flex: 1;
    padding: 12px;
    background-color: #e9e9e9;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    margin: 0 5px;
}

.step-button.active {
    background-color: #0075ff;
    color: white;
}

.step-button.disabled {
    background-color: #777;
    color: white;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Step Styles */
.repair-step {
    display: none;
    margin-bottom: 40px;
}

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

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.back-button {
    background-color: transparent;
    border: none;
    color: #0075ff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.back-button:hover {
    color: #0056b3;
}

/* Search Box */
.search-box {
    margin: 20px auto;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.search-box input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    font-size: 14px;
    outline: none;
    width: 100%;
}

/* Model Selection */
.model-selection {
    margin: 20px 0;
    text-align: center;
}

.model-header {
    text-align: center;
    margin-bottom: 20px;
}

.model-header h2 {
    font-size: 24px;
    font-weight: normal;
    color: #333;
}

.model-header .highlight {
    color: #ff3131;
    font-weight: bold;
}

/* Series Filter */
.series-filter {
    margin: 20px 0;
    text-align: center;
}

.series-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px 0;
}

.series-button {
    padding: 8px 15px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.series-button:hover {
    background-color: #e1e1e1;
}

.series-button.active {
    background-color: #0075ff;
    color: white;
    border-color: #0075ff;
}
/* Products Grid */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.product-card {
    width: 180px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-card.active {
    border: 2px solid #0075ff;
}

.product-card .item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin-bottom: 10px;
}

.product-card .item-image img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.item-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Categories and Items Grid */
.categories-grid, .items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.category-card, .item-card {
    width: 180px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover, .item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.category-card.active, .item-card.active {
    border: 2px solid #0075ff;
}

.category-image, .item-image {
    height: 50px;
    width: 50px;
    margin: 0 auto 15px;
    background-color: #f5f5f5;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder {
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.category-icon, .item-icon {
    font-size: 18px;
    color: #666;
    text-transform: uppercase;
}

.category-name, .item-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Services Layout */
.services-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.services-container {
    flex: 1;
    min-width: 300px;
}

.booking-sidebar {
    width: 350px;
}

/* Service Selection */
.service-selection h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.services-list {
    margin-bottom: 30px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.service-item:hover {
    background-color: #f9f9f9;
}

.service-details {
    flex-grow: 1;
}

.service-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.service-price {
    color: #0075ff;
    font-weight: 600;
    font-size: 16px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #0075ff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #0075ff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}
/* Selected Services Panel */
.selected-services-panel {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.selected-services-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.selected-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.selected-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: #fff;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.no-services-selected {
    color: #777;
    font-style: italic;
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
}

.remove-service-btn {
    background: none;
    border: none;
    color: #ff3131;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.remove-service-btn:hover {
    color: #d32f2f;
}

/* Price Summary */
.price-summary {
    margin-top: 20px;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.total-label {
    color: #333;
}

.total-amount {
    color: #0075ff;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-button {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-button {
    background-color: #0075ff;
    color: white;
}

.book-button:hover {
    background-color: #0056b3;
}

.quote-button {
    background-color: #4CAF50;
    color: white;
}

.quote-button:hover {
    background-color: #3e8e41;
}

.action-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 15px;
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 4px;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .product-card, .category-card, .item-card {
        width: 160px;
    }
}

@media screen and (max-width: 992px) {
    .product-card, .category-card, .item-card {
        width: 140px;
    }
}

@media screen and (max-width: 768px) {
    .product-card, .category-card, .item-card {
        width: 45%;
    }
    .services-layout {
        flex-direction: column;
    }
    .booking-sidebar {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .step-indicator {
        flex-direction: column;
    }
    .step-button {
        width: 100%;
        margin: 3px 0;
    }
    .product-card, .category-card, .item-card {
        width: 48%;
    }
   .categories-grid, .items-grid, .products-grid {
        justify-content: space-between;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}




