/**
 * Car Wash Booking - Public Styles
 * Modern, responsive styling for booking wizard and services menu
 */

/* ========================================
   COMMON STYLES
   ======================================== */

.cwb-booking-wizard,
.cwb-services-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cwb-loading {
    text-align: center;
    padding: 40px;
    color: var(--cwb-text-secondary);
    font-size: 16px;
}

.cwb-error {
    text-align: center;
    padding: 40px;
    color: var(--cwb-error-color);
    background: #fff0f0;
    border-radius: 8px;
    border: 1px solid #ffd0d0;
}

/* ========================================
   BOOKING WIZARD
   ======================================== */

/* Step Indicators */
.cwb-wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.cwb-wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cwb-border-color);
    z-index: 0;
}

.cwb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    cursor: default;
}

.cwb-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cwb-border-color);
    color: var(--cwb-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cwb-step.active .cwb-step-number {
    background: var(--cwb-primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
}

.cwb-step.completed .cwb-step-number {
    background: var(--cwb-accent-color);
    color: white;
}

.cwb-step.completed .cwb-step-number::before {
    content: '✓';
}

.cwb-step-label {
    font-size: 14px;
    color: var(--cwb-text-secondary);
    text-align: center;
    font-weight: 500;
}

.cwb-step.active .cwb-step-label {
    color: var(--cwb-primary-color);
    font-weight: 600;
}

/* Wizard Content */
.cwb-wizard-content {
    animation: fadeIn 0.3s ease;
}

.cwb-wizard-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--cwb-text-primary);
    font-size: 28px;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vehicle Types Grid */
.cwb-vehicle-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cwb-vehicle-card {
    background: var(--cwb-bg-primary);
    border: 2px solid var(--cwb-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cwb-vehicle-card:hover {
    border-color: var(--cwb-primary-color);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
    transform: translateY(-2px);
}

.cwb-vehicle-card.selected {
    border-color: var(--cwb-primary-color);
    background: #f0f6fc;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

.cwb-vehicle-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.cwb-vehicle-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--cwb-text-primary);
    margin: 0 0 10px 0;
}

.cwb-vehicle-desc {
    font-size: 14px;
    color: var(--cwb-text-secondary);
    margin: 0;
}

/* Packages Grid */
.cwb-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.cwb-package-card {
    background: var(--cwb-bg-primary);
    border: 2px solid var(--cwb-border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.cwb-package-card:hover {
    border-color: var(--cwb-primary-color);
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.15);
    transform: translateY(-3px);
}

.cwb-package-card.selected {
    border-color: var(--cwb-primary-color);
    background: #f0f6fc;
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.25);
}

.cwb-package-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.cwb-package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cwb-package-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cwb-package-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--cwb-text-primary);
    margin: 0 0 12px 0;
}

.cwb-package-description {
    font-size: 14px;
    color: var(--cwb-text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.cwb-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.cwb-package-features li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 14px;
    color: #444;
}

.cwb-package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cwb-accent-color);
    font-weight: bold;
}

.cwb-package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--cwb-border-color);
    margin-top: auto;
}

.cwb-package-price {
    display: flex;
    flex-direction: column;
}

.cwb-price-label {
    font-size: 12px;
    color: var(--cwb-text-secondary);
    margin-bottom: 4px;
}

.cwb-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--cwb-primary-color);
}

.cwb-package-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--cwb-text-secondary);
}

.cwb-duration-icon {
    font-size: 18px;
}

/* Wizard Actions */
.cwb-wizard-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.cwb-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cwb-btn-primary {
    background: var(--cwb-primary-color);
    color: white;
}

.cwb-btn-primary:hover {
    background: var(--cwb-primary-dark);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.cwb-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.cwb-btn-secondary:hover {
    background: #dcdcde;
}

.cwb-placeholder-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--cwb-text-secondary);
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* ========================================
   SERVICES MENU
   ======================================== */

.cwb-services-menu h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--cwb-text-primary);
    font-size: 32px;
    font-weight: 700;
}

.cwb-vehicle-section {
    margin-bottom: 60px;
}

.cwb-vehicle-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--cwb-text-primary);
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--cwb-primary-color);
    display: inline-block;
}

.cwb-vehicle-description {
    font-size: 16px;
    color: var(--cwb-text-secondary);
    margin: 0 0 30px 0;
}

.cwb-no-services {
    text-align: center;
    padding: 60px 20px;
    color: var(--cwb-text-secondary);
    font-size: 18px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .cwb-wizard-steps {
        margin-bottom: 30px;
    }

    .cwb-step-label {
        font-size: 12px;
    }

    .cwb-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .cwb-wizard-content h2 {
        font-size: 24px;
    }

    .cwb-vehicle-types-grid,
    .cwb-packages-grid {
        grid-template-columns: 1fr;
    }

    .cwb-package-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cwb-wizard-actions {
        flex-direction: column;
    }

    .cwb-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .cwb-booking-wizard,
    .cwb-services-menu {
        padding: 20px 10px;
    }

    .cwb-step-label {
        display: none;
    }

    .cwb-vehicle-card,
    .cwb-package-content {
        padding: 20px;
    }
}