/**
 * Car Wash Booking - Wizard Layout Premium Styles
 * Modern, minimalistic, futuristic design with complete customization
 * 
 * @package Car_Wash_Booking
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Variables)
   ======================================== */

.cwb-booking-wizard {
    /* Step Indicator Colors - Overridden by JS from admin settings */
    --wizard-step-bg: #f0f0f0;
    --wizard-step-active: #2271b1;
    --wizard-step-completed: #10b981;
    --wizard-step-text: #ffffff;
    --wizard-step-inactive-text: #6b7280;

    /* Card Colors */
    --wizard-card-bg: #ffffff;
    --wizard-card-border: #e5e7eb;
    --wizard-card-selected: #2271b1;
    --wizard-card-hover: rgba(34, 113, 177, 0.08);

    /* Button Colors */
    --wizard-btn-primary-bg: #2271b1;
    --wizard-btn-primary-text: #ffffff;
    --wizard-btn-secondary-bg: #f3f4f6;
    --wizard-btn-secondary-text: #374151;

    /* Transition & Animation */
    --wizard-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wizard-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --wizard-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --wizard-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --wizard-radius: 12px;
    --wizard-radius-lg: 16px;

    /* Layout */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #ffffff;
}

/* ========================================
   STEP INDICATORS - All Styles
   ======================================== */

/* Common Step Container */
.cwb-wizard-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 48px;
    padding: 0 16px;
    position: relative;
}

/* Progress Bar Container */
.cwb-progress-bar {
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--wizard-step-bg);
    border-radius: 2px;
    z-index: 0;
}

.cwb-progress-bar-fill {
    height: 100%;
    background: var(--wizard-step-active);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Percentage Progress Bar */
.cwb-wizard-steps[data-progress-type="percentage"] .cwb-progress-bar {
    top: auto;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 3px;
}

.cwb-progress-percentage {
    position: absolute;
    right: 0;
    bottom: -52px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wizard-step-active);
}

/* Linear Progress Bar */
.cwb-wizard-steps[data-progress-type="linear"] .cwb-progress-bar {
    top: -16px;
    left: 0;
    right: 0;
    height: 4px;
}

/* ----------------------------------------
   NUMBERED STYLE (Default)
   ---------------------------------------- */
.cwb-wizard-steps[data-step-style="numbered"] .cwb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 140px;
}

.cwb-wizard-steps[data-step-style="numbered"] .cwb-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wizard-step-bg);
    color: var(--wizard-step-inactive-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: var(--wizard-transition);
    border: 2px solid transparent;
    position: relative;
}

.cwb-wizard-steps[data-step-style="numbered"] .cwb-step.active .cwb-step-number {
    background: var(--wizard-step-active);
    color: var(--wizard-step-text);
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
}

.cwb-wizard-steps[data-step-style="numbered"] .cwb-step.completed .cwb-step-number {
    background: var(--wizard-step-completed);
    color: var(--wizard-step-text);
}

.cwb-wizard-steps[data-step-style="numbered"] .cwb-step.completed .cwb-step-number::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
}

.cwb-wizard-steps[data-step-style="numbered"] .cwb-step.completed .cwb-step-number span {
    display: none;
}

.cwb-wizard-steps[data-step-style="numbered"] .cwb-step-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    transition: var(--wizard-transition);
}

.cwb-wizard-steps[data-step-style="numbered"] .cwb-step.active .cwb-step-label {
    color: var(--wizard-step-active);
    font-weight: 600;
}

.cwb-wizard-steps[data-step-style="numbered"] .cwb-step.completed .cwb-step-label {
    color: var(--wizard-step-completed);
}

/* Connector Lines */
.cwb-wizard-steps[data-step-style="numbered"] .cwb-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: var(--wizard-step-bg);
    z-index: -1;
}

.cwb-wizard-steps[data-step-style="numbered"] .cwb-step.completed:not(:last-child)::after {
    background: var(--wizard-step-completed);
}

/* ----------------------------------------
   ICONS STYLE
   ---------------------------------------- */
.cwb-wizard-steps[data-step-style="icons"] .cwb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 120px;
}

.cwb-wizard-steps[data-step-style="icons"] .cwb-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--wizard-step-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--wizard-transition);
}

.cwb-wizard-steps[data-step-style="icons"] .cwb-step.active .cwb-step-icon {
    background: var(--wizard-step-active);
    transform: scale(1.1);
    box-shadow: var(--wizard-shadow);
}

.cwb-wizard-steps[data-step-style="icons"] .cwb-step.completed .cwb-step-icon {
    background: var(--wizard-step-completed);
}

.cwb-wizard-steps[data-step-style="icons"] .cwb-step-label {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

.cwb-wizard-steps[data-step-style="icons"] .cwb-step.active .cwb-step-label {
    color: var(--wizard-step-active);
    font-weight: 600;
}

/* Icon connectors */
.cwb-wizard-steps[data-step-style="icons"] .cwb-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: var(--wizard-step-bg);
    z-index: -1;
}

.cwb-wizard-steps[data-step-style="icons"] .cwb-step.completed:not(:last-child)::after {
    background: var(--wizard-step-completed);
}

/* ----------------------------------------
   MINIMAL DOTS STYLE
   ---------------------------------------- */
.cwb-wizard-steps[data-step-style="minimal"] {
    gap: 16px;
}

.cwb-wizard-steps[data-step-style="minimal"] .cwb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cwb-wizard-steps[data-step-style="minimal"] .cwb-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wizard-step-bg);
    transition: var(--wizard-transition);
    position: relative;
}

.cwb-wizard-steps[data-step-style="minimal"] .cwb-step.active .cwb-step-dot {
    width: 14px;
    height: 14px;
    background: var(--wizard-step-active);
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
}

.cwb-wizard-steps[data-step-style="minimal"] .cwb-step.completed .cwb-step-dot {
    background: var(--wizard-step-completed);
}

.cwb-wizard-steps[data-step-style="minimal"] .cwb-step-label {
    display: none;
}

.cwb-wizard-steps[data-step-style="minimal"] .cwb-step-number {
    display: none;
}

/* Minimal connectors */
.cwb-wizard-steps[data-step-style="minimal"] .cwb-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5px;
    left: calc(50% + 10px);
    width: 16px;
    height: 2px;
    background: var(--wizard-step-bg);
}

.cwb-wizard-steps[data-step-style="minimal"] .cwb-step.completed:not(:last-child)::after {
    background: var(--wizard-step-completed);
}

/* Hide elements based on settings */
.cwb-wizard-steps.hide-numbers .cwb-step-number span,
.cwb-wizard-steps.hide-numbers .cwb-step-dot {
    font-size: 0;
}

.cwb-wizard-steps.hide-labels .cwb-step-label {
    display: none !important;
}

/* ========================================
   STEP CONTENT AREA
   ======================================== */

.cwb-wizard-content {
    padding: 0;
    min-height: 300px;
}

/* Animation Classes */
.cwb-wizard-content[data-animation="slide"] {
    animation: slideIn 0.4s ease forwards;
}

.cwb-wizard-content[data-animation="fade"] {
    animation: fadeIn 0.4s ease forwards;
}

.cwb-wizard-content[data-animation="scale"] {
    animation: scaleIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Step Headings */
.cwb-wizard-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    text-align: center;
}

.cwb-step-description {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 32px 0;
    text-align: center;
}

/* ========================================
   CARD STYLES - Vehicle, Package, Addon
   ======================================== */

/* Common Card Grid */
.cwb-vehicle-types-grid,
.cwb-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Package Grid - Compact horizontal layout */
.cwb-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    max-width: 100%;
}

/* ----------------------------------------
   ELEVATED CARD STYLE (Default)
   ---------------------------------------- */
.cwb-booking-wizard[data-card-style="elevated"] .cwb-vehicle-card,
.cwb-booking-wizard[data-card-style="elevated"] .cwb-package-card,
.cwb-booking-wizard[data-card-style="elevated"] .cwb-location-card {
    background: var(--wizard-card-bg);
    border: 1px solid var(--wizard-card-border);
    border-radius: var(--wizard-radius);
    padding: 24px;
    cursor: pointer;
    transition: var(--wizard-transition);
    box-shadow: var(--wizard-shadow-sm);
}

.cwb-booking-wizard[data-card-style="elevated"] .cwb-vehicle-card:hover,
.cwb-booking-wizard[data-card-style="elevated"] .cwb-package-card:hover,
.cwb-booking-wizard[data-card-style="elevated"] .cwb-location-card:hover {
    border-color: var(--wizard-card-selected) !important;
    border-width: 2px;
    box-shadow: var(--wizard-shadow);
    transform: translateY(-2px);
}

.cwb-booking-wizard[data-card-style="elevated"] .cwb-vehicle-card.selected,
.cwb-booking-wizard[data-card-style="elevated"] .cwb-package-card.selected,
.cwb-booking-wizard[data-card-style="elevated"] .cwb-location-card.selected {
    border-color: var(--wizard-card-selected);
    border-width: 2px;
    background: var(--wizard-card-hover);
    box-shadow: var(--wizard-shadow);
}

/* Override location-cards.css ::before gradient border effect in wizard context */
.cwb-booking-wizard .cwb-location-card::before {
    display: none !important;
}

/* ----------------------------------------
   FLAT CARD STYLE
   ---------------------------------------- */
.cwb-booking-wizard[data-card-style="flat"] .cwb-vehicle-card,
.cwb-booking-wizard[data-card-style="flat"] .cwb-package-card,
.cwb-booking-wizard[data-card-style="flat"] .cwb-location-card {
    background: var(--wizard-card-bg);
    border: none;
    border-radius: var(--wizard-radius);
    padding: 24px;
    cursor: pointer;
    transition: var(--wizard-transition);
}

.cwb-booking-wizard[data-card-style="flat"] .cwb-vehicle-card:hover,
.cwb-booking-wizard[data-card-style="flat"] .cwb-package-card:hover,
.cwb-booking-wizard[data-card-style="flat"] .cwb-location-card:hover {
    background: #f9fafb;
}

.cwb-booking-wizard[data-card-style="flat"] .cwb-vehicle-card.selected,
.cwb-booking-wizard[data-card-style="flat"] .cwb-package-card.selected,
.cwb-booking-wizard[data-card-style="flat"] .cwb-location-card.selected {
    background: var(--wizard-card-hover);
    outline: 2px solid var(--wizard-card-selected);
    outline-offset: -2px;
}

/* ----------------------------------------
   GLASSMORPHIC CARD STYLE
   ---------------------------------------- */
.cwb-booking-wizard[data-card-style="glassmorphic"] .cwb-vehicle-card,
.cwb-booking-wizard[data-card-style="glassmorphic"] .cwb-package-card,
.cwb-booking-wizard[data-card-style="glassmorphic"] .cwb-location-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--wizard-radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--wizard-transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.cwb-booking-wizard[data-card-style="glassmorphic"] .cwb-vehicle-card:hover,
.cwb-booking-wizard[data-card-style="glassmorphic"] .cwb-package-card:hover,
.cwb-booking-wizard[data-card-style="glassmorphic"] .cwb-location-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--wizard-card-selected);
    transform: translateY(-2px);
}

.cwb-booking-wizard[data-card-style="glassmorphic"] .cwb-vehicle-card.selected,
.cwb-booking-wizard[data-card-style="glassmorphic"] .cwb-package-card.selected,
.cwb-booking-wizard[data-card-style="glassmorphic"] .cwb-location-card.selected {
    background: rgba(34, 113, 177, 0.1);
    border: 2px solid var(--wizard-card-selected);
}

/* ----------------------------------------
   OUTLINED CARD STYLE
   ---------------------------------------- */
.cwb-booking-wizard[data-card-style="outlined"] .cwb-vehicle-card,
.cwb-booking-wizard[data-card-style="outlined"] .cwb-package-card,
.cwb-booking-wizard[data-card-style="outlined"] .cwb-location-card {
    background: transparent;
    border: 2px solid var(--wizard-card-border);
    border-radius: var(--wizard-radius);
    padding: 24px;
    cursor: pointer;
    transition: var(--wizard-transition);
}

.cwb-booking-wizard[data-card-style="outlined"] .cwb-vehicle-card:hover,
.cwb-booking-wizard[data-card-style="outlined"] .cwb-package-card:hover,
.cwb-booking-wizard[data-card-style="outlined"] .cwb-location-card:hover {
    border-color: var(--wizard-card-selected);
}

.cwb-booking-wizard[data-card-style="outlined"] .cwb-vehicle-card.selected,
.cwb-booking-wizard[data-card-style="outlined"] .cwb-package-card.selected,
.cwb-booking-wizard[data-card-style="outlined"] .cwb-location-card.selected {
    border-color: var(--wizard-card-selected);
    background: var(--wizard-card-hover);
}

/* ========================================
   VEHICLE CARDS
   ======================================== */

.cwb-vehicle-card {
    text-align: center;
}

.cwb-vehicle-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.cwb-vehicle-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.cwb-vehicle-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.cwb-vehicle-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Selected indicator */
.cwb-vehicle-card.selected::before,
.cwb-package-card.selected::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--wizard-card-selected);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Location cards have their own ::after checkmark in location-cards.css */
.cwb-location-card.selected::before {
    display: none !important;
}

.cwb-vehicle-card,
.cwb-package-card,
.cwb-location-card {
    position: relative;
}

/* ========================================
   PACKAGE CARDS - Compact Horizontal Layout
   ======================================== */

.cwb-package-card {
    display: flex;
    flex-direction: column;
    padding: 16px !important;
}

.cwb-package-image {
    border-radius: calc(var(--wizard-radius) - 4px);
    overflow: hidden;
    margin: -8px -8px 12px -8px;
}

.cwb-package-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.cwb-package-content {
    flex: 1;
}

.cwb-package-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.cwb-package-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cwb-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    max-height: 120px;
    overflow-y: auto;
}

.cwb-package-features li {
    font-size: 12px;
    color: #4b5563;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.cwb-package-features li:last-child {
    border-bottom: none;
}

.cwb-package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--wizard-step-completed);
    font-weight: 600;
    font-size: 11px;
}

.cwb-package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.cwb-package-price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
}

.cwb-price-label {
    font-size: 11px;
    color: #6b7280;
}

.cwb-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--wizard-card-selected);
}

.cwb-package-duration {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    padding: 4px 10px;
    border-radius: 16px;
}

/* ========================================
   ADDONS LIST
   ======================================== */

.cwb-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cwb-addon-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--wizard-card-bg);
    border: 2px solid var(--wizard-card-border);
    border-radius: var(--wizard-radius);
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--wizard-transition);
}

.cwb-addon-item:hover {
    border-color: var(--wizard-card-selected);
}

.cwb-addon-item.selected {
    border-color: var(--wizard-card-selected);
    background: var(--wizard-card-hover);
}

.cwb-addon-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-top: 2px;
    accent-color: var(--wizard-card-selected);
}

.cwb-addon-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.cwb-addon-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.cwb-addon-info {
    flex: 1;
}

.cwb-addon-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.cwb-addon-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.cwb-addon-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cwb-addon-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--wizard-card-selected);
}

.cwb-addon-duration {
    font-size: 12px;
    color: #6b7280;
}

/* ========================================
   PRICE SUMMARY
   ======================================== */

.cwb-price-summary {
    background: #f9fafb;
    border-radius: var(--wizard-radius);
    padding: 20px 24px;
    margin-top: 24px;
}

.cwb-price-summary-header {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.cwb-price-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.cwb-price-summary-label {
    font-size: 14px;
    color: #6b7280;
}

.cwb-total-price,
.cwb-total-duration {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ========================================
   BOOKING SUMMARY CARD - Premium Design
   ======================================== */

.cwb-booking-summary-card {
    background: #ffffff;
    border-radius: var(--wizard-radius);
    padding: 0;
    margin-bottom: 32px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cwb-booking-summary-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--wizard-card-selected) 0%, #1a5490 100%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cwb-booking-summary-card h3::before {
    content: '📋';
    font-size: 18px;
}

.cwb-summary-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.cwb-summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.cwb-summary-item:last-child {
    border-bottom: none;
}

.cwb-summary-item:hover {
    background: #f9fafb;
}

.cwb-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Icon colors for each type */
#cwb-summary-vehicle .cwb-summary-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

#cwb-summary-package .cwb-summary-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

#cwb-summary-addons .cwb-summary-icon {
    background: linear-gradient(135deg, #f3e8ff 0%, #d8b4fe 100%);
}

#cwb-summary-datetime .cwb-summary-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
}

#cwb-summary-location .cwb-summary-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
}

.cwb-summary-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cwb-summary-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.cwb-summary-value {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.cwb-summary-price {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--wizard-card-selected) 0%, #1a5490 100%);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;
}

.cwb-summary-divider {
    height: 0;
    margin: 0;
    border: none;
}

.cwb-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-top: 2px solid #86efac;
}

.cwb-summary-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cwb-summary-total-label::before {
    content: '💰';
    font-size: 20px;
}

.cwb-summary-total-value {
    font-size: 28px;
    font-weight: 800;
    color: #166534;
    letter-spacing: -0.5px;
}

/* ========================================
   CUSTOMER FORM
   ======================================== */

.cwb-customer-form {
    background: var(--wizard-card-bg);
    border-radius: var(--wizard-radius);
    padding: 24px;
    margin-bottom: 32px;
}

.cwb-customer-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.cwb-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cwb-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cwb-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.cwb-required {
    color: #dc2626;
    margin-left: 2px;
}

.cwb-optional {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.cwb-input,
.cwb-textarea {
    padding: 12px 16px;
    border: 1px solid var(--wizard-card-border);
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    transition: var(--wizard-transition);
}

.cwb-input:focus,
.cwb-textarea:focus {
    outline: none;
    border-color: var(--wizard-card-selected);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.cwb-input::placeholder,
.cwb-textarea::placeholder {
    color: #9ca3af;
}

.cwb-textarea {
    resize: vertical;
    min-height: 100px;
}

.cwb-error-message {
    font-size: 12px;
    color: #dc2626;
}

/* ========================================
   PAYMENT SECTION
   ======================================== */

.cwb-payment-section {
    margin-bottom: 32px;
}

.cwb-payment-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.cwb-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    margin-top: 32px;
}

.cwb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wizard-transition);
    border: none;
    outline: none;
}

.cwb-btn-primary {
    background: var(--wizard-btn-primary-bg);
    color: var(--wizard-btn-primary-text);
}

.cwb-btn-primary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: var(--wizard-shadow);
}

.cwb-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cwb-btn-secondary {
    background: var(--wizard-btn-secondary-bg);
    color: var(--wizard-btn-secondary-text);
}

.cwb-btn-secondary:hover {
    background: #e5e7eb;
}

.cwb-btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   MESSAGES
   ======================================== */

.cwb-messages {
    margin-top: 24px;
}

.cwb-message {
    padding: 16px 20px;
    border-radius: var(--wizard-radius);
    font-size: 14px;
    line-height: 1.6;
}

.cwb-message-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.cwb-message-error {
    background: #fef2f2;
    border: 1px solid #dc2626;
    color: #991b1b;
}

/* ========================================
   BOOKING SUCCESS CARD
   ======================================== */

.cwb-booking-success-card {
    text-align: center;
    padding: 48px 32px;
    max-width: 500px;
    margin: 0 auto;
}

.cwb-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.cwb-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.cwb-success-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
}

.cwb-success-details {
    background: #f9fafb;
    border-radius: var(--wizard-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: left;
}

.cwb-success-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cwb-success-detail-row:last-child {
    border-bottom: none;
}

.cwb-success-detail-row.cwb-success-total {
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 16px;
}

.cwb-success-label {
    font-size: 14px;
    color: #6b7280;
}

.cwb-success-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.cwb-success-total .cwb-success-value {
    font-size: 18px;
    color: var(--wizard-card-selected);
}

.cwb-success-payment-info {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
    padding: 16px;
    background: #ecfdf5;
    border-radius: 8px;
}

.cwb-book-another-btn {
    width: 100%;
    max-width: 300px;
}

/* ========================================
   LOADING STATE
   ======================================== */

.cwb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-size: 15px;
    color: #6b7280;
}

.cwb-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--wizard-step-active);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .cwb-booking-wizard {
        padding: 24px 16px;
    }

    .cwb-wizard-steps {
        margin-bottom: 32px;
    }

    .cwb-wizard-steps[data-step-style="numbered"] .cwb-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .cwb-wizard-steps[data-step-style="numbered"] .cwb-step-label {
        font-size: 11px;
    }

    .cwb-wizard-steps[data-step-style="icons"] .cwb-step-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .cwb-wizard-content h2 {
        font-size: 20px;
    }

    .cwb-vehicle-types-grid,
    .cwb-packages-grid,
    .cwb-locations-grid {
        grid-template-columns: 1fr;
    }

    .cwb-form-row {
        grid-template-columns: 1fr;
    }

    .cwb-wizard-actions {
        flex-direction: column-reverse;
    }

    .cwb-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .cwb-wizard-steps[data-step-style="numbered"] .cwb-step-label,
    .cwb-wizard-steps[data-step-style="icons"] .cwb-step-label {
        display: none;
    }

    .cwb-wizard-steps[data-step-style="numbered"] .cwb-step:not(:last-child)::after {
        left: calc(50% + 22px);
        width: calc(100% - 44px);
    }

    .cwb-addons-grid {
        grid-template-columns: 1fr;
    }

    .cwb-package-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}