/* ===== Wizard Specific Styles ===== */

/* Full-screen wizard container */
.wizard-container-main {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Sidebar */
.wizard-sidebar {
    width: 45%;
    min-width: 400px;
    max-width: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.wizard-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 30%,
            rgba(0, 0, 0, 0.3) 60%,
            rgba(0, 0, 0, 0.7) 100%);
}

/* Sidebar Logo */
.sidebar-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 32px;
}

.sidebar-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Sidebar Progress */
.sidebar-progress {
    position: relative;
    z-index: 1;
    margin-bottom: auto;
}

.sidebar-progress .progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-progress .progress-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--accent-lime), var(--accent-teal));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.sidebar-progress .progress-text {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Sidebar Content */
.sidebar-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: 80px;
}

.wizard-mobile-header {
    display: none;
}

/* Sidebar Exit */
.sidebar-content h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.sidebar-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Sidebar Exit */
.sidebar-exit {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-exit:hover {
    color: white;
}

.sidebar-exit span {
    font-size: 1.1rem;
}

/* Main wizard area */
.wizard-main {
    flex: 1;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; removed to fix scrolling */
    background: white;
    overflow-y: auto;
    max-height: 100vh;
}

/* Step content */
.wizard-step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.wizard-step-content.active {
    display: block;
    margin-top: auto;
    margin-bottom: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-greeting {
    font-size: 0.95rem;
    color: var(--primary-600);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-title {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.step-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Form elements */
.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input.large {
    font-size: 1.5rem;
    padding: 20px 24px;
    text-align: center;
}

/* Passenger counter */
.passenger-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.counter-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover:not(:disabled) {
    border-color: var(--primary-500);
    color: var(--primary-600);
}

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

.counter-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-600);
    min-width: 80px;
    text-align: center;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: -16px;
}

/* Vehicle cards - Compact layout */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.vehicle-card {
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    background: white;
    text-align: center;
}

.vehicle-card:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.vehicle-card.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.vehicle-card.recommended {
    border-color: var(--primary-400);
}

.vehicle-card.recommended::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--gradient-primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-card.not-suitable {
    opacity: 0.5;
    cursor: not-allowed;
}

.vehicle-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.vehicle-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.vehicle-capacity {
    font-size: 0.75rem;
    color: var(--primary-600);
    font-weight: 500;
}

.vehicle-luggage {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Timeline UI */
.timeline-container {
    position: relative;
    padding-left: 10px;
    margin-bottom: 32px;
}

/* Global specific timeline line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 40px;
    left: 26px;
    /* 10px padding + 16px half-width of marker */
    width: 2px;
    background: var(--gray-300);
    z-index: 1;
}

.timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 24px;
    /* Space for line continuity visual */
}

/* Hide padding on last item to end cleaner */
.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-action {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 24px;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    /* Sit on top of the line */
}

.marker-icon {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--primary-500);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-500);
    margin-top: 8px;
    /* Visual alignment with icon center */
}

/* Hide individual lines since we use global line */
.marker-line {
    display: none;
}

.timeline-content {
    flex: 1;
}

.timeline-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stop Input Row (Intermediate) */
.stop-row-container {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.intermediate-stop {
    padding-bottom: 36px;
    /* Extra space before next item/button */
}

.stop-inputs {
    display: flex;
    gap: 12px;
}

.stop-inputs .location-input {
    flex: 2;
}

.stop-inputs .nights-input {
    flex: 1;
    max-width: 100px;
}

.btn-remove-stop {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.btn-remove-stop:hover {
    color: #ef4444;
    border-color: #ef4444;
}

/* Add Button */
/* Add Button */
.btn-add-stop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    background: var(--primary-50);
    border: 2px dashed var(--primary-300);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    color: var(--primary-700);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.btn-add-stop:hover {
    background: var(--primary-100);
    border-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-add-stop .plus-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-200);
    color: var(--primary-700);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}



/* Updated Summary */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-item .summary-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.summary-item .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.trip-summary-card {
    background: var(--primary-50);
    color: var(--gray-800);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-200);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-label {
    color: var(--gray-600);
}

.summary-item .summary-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.summary-item .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.summary-value {
    font-weight: 700;
}

.summary-value.highlight {
    color: var(--primary-600);
    font-size: 1.5rem;
}

/* Skeleton / Shimmer Loading */
.skeleton-loader {
    color: var(--gray-300);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Preference toggles */
.preference-toggle {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.toggle-option {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.toggle-option:hover {
    border-color: var(--primary-300);
}

.toggle-option.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.toggle-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.toggle-label {
    font-weight: 600;
    color: var(--gray-700);
}

.toggle-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Conditional fields */
.conditional-fields {
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: none;
}

.conditional-fields.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-item input {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-500);
}

.checkbox-item label {
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
}

/* Navigation buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.btn-back {
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.btn-back:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.wizard-nav .btn:disabled {
    background: var(--gray-300);
    color: white;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Success screen */
.success-screen {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 32px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.success-message {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Error message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Loading state */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.visible {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .wizard-container-main {
        flex-direction: column;
        height: 100vh;
        /* Ensure full height */
        overflow: hidden;
        /* Prevent body scroll, let children scroll */
    }

    .wizard-sidebar {
        display: none;
    }

    .wizard-mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 20px;
        background-size: cover;
        background-position: center;
        position: relative;
        color: white;
        flex-shrink: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .wizard-mobile-header .mobile-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
        z-index: 1;
    }

    .wizard-mobile-header .mobile-logo {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: white;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.5rem;
    }

    .wizard-mobile-header .logo-icon {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .wizard-main {
        padding: 20px 24px;
        flex: 1;
        width: 100%;
        overflow-y: auto;
    }

    .wizard-step-content.active {
        margin-top: 0;
        margin-bottom: 0;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wizard-progress-bar {
        padding: 20px;
        gap: 0;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .step-line {
        width: 30px;
    }

    .step-label {
        display: none;
    }

    .wizard-main {
        padding: 24px;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .passenger-counter {
        padding: 16px;
    }

    .counter-value {
        font-size: 2rem;
    }

    .preference-toggle {
        flex-direction: column;
    }

    .wizard-nav {
        flex-direction: column;
        gap: 12px;
    }

    .wizard-nav .btn {
        width: 100%;
    }
}