:root {
    --ace-primary: #1e293b;
    --ace-secondary: #d4af37;
    --ace-bg: #f8fafc;
    --ace-white: #ffffff;
    --ace-text: #334155;
    --ace-text-muted: #64748b;
    --ace-border: #e2e8f0;
    --ace-success: #10b981;
    --ace-warning: #f59e0b;
}

* {
    box-sizing: border-box;
}

input,
button,
select,
textarea {
    font-family: var(--ace-font-body);
}

.ace-booking-wizard {
    font-family: var(--ace-font-body);
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ace-wizard-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Main Wizard Card */
.ace-wizard-main {
    background: var(--ace-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.ace-wizard-header {
    text-align: center;
    margin-bottom: 30px;
}

.ace-wizard-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ace-primary);
    margin: 0 0 8px;
}

.ace-wizard-header p {
    font-size: 14px;
    color: var(--ace-text-muted);
    margin: 0;
}

/* Progress Bar */
.ace-progress-bar {
    height: 4px;
    background: var(--ace-border);
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.ace-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ace-secondary), #f4d03f);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Service Toggle */
.ace-service-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.ace-service-btn {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid var(--ace-border);
    background: var(--ace-white);
    color: var(--ace-text);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ace-service-btn:hover {
    border-color: var(--ace-secondary);
}

.ace-service-btn.active {
    background: var(--ace-primary);
    color: var(--ace-white);
    border-color: var(--ace-primary);
}

/* Form Elements */
.ace-form-group {
    margin-bottom: 24px;
}

.ace-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ace-primary);
    margin-bottom: 8px;
}

.ace-form-input,
.ace-form-select,
.ace-form-textarea {
    width: 100%;
    padding: 12px 16px;
    padding-left: 44px;
    border: 1px solid var(--ace-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ace-text);
    transition: all 0.2s;
}

.ace-form-input:focus,
.ace-form-select:focus,
.ace-form-textarea:focus {
    outline: none;
    border-color: var(--ace-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.ace-form-textarea {
    padding-left: 16px;
    resize: vertical;
    min-height: 100px;
}

.ace-input-wrapper {
    position: relative;
}

.ace-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ace-secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ace-input-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.ace-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ace-form-hint {
    font-size: 12px;
    color: #3b82f6;
    margin-top: 8px;
}

/* Counter Controls */
.ace-counter-section {
    margin-bottom: 30px;
}

.ace-counter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ace-counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--ace-bg);
    border-radius: 8px;
}

.ace-counter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ace-text);
}

.ace-counter-label span:first-child {
    font-size: 18px;
}

.ace-counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ace-counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ace-border);
    background: var(--ace-white);
    color: var(--ace-text);
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ace-counter-btn:hover {
    background: var(--ace-secondary);
    color: var(--ace-white);
    border-color: var(--ace-secondary);
}

.ace-counter-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--ace-primary);
}

/* Vehicle Cards */
.ace-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.ace-vehicle-card {
    border: 2px solid var(--ace-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--ace-white);
}

.ace-vehicle-card:hover {
    border-color: var(--ace-secondary);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ace-vehicle-card.selected {
    border-color: var(--ace-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.ace-vehicle-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f1f5f9;
}

.ace-vehicle-info {
    padding: 20px;
}

.ace-vehicle-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ace-primary);
    margin: 0 0 4px;
}

.ace-vehicle-model {
    font-size: 13px;
    color: var(--ace-text-muted);
    margin: 0 0 16px;
}

.ace-vehicle-capacity {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--ace-text-muted);
}

.ace-vehicle-capacity span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ace-vehicle-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ace-vehicle-price-label {
    font-size: 12px;
    color: var(--ace-text-muted);
}

.ace-vehicle-price-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ace-secondary);
}

/* Optional Extras */
.ace-extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.ace-extra-card {
    border: 1px solid var(--ace-border);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.ace-extra-card:hover {
    border-color: var(--ace-secondary);
    background: #fffef5;
}

.ace-extra-card input[type="checkbox"] {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ace-extra-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.ace-extra-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ace-primary);
    margin: 0 0 4px;
}

.ace-extra-desc {
    font-size: 12px;
    color: var(--ace-text-muted);
    margin: 0 0 8px;
    line-height: 1.4;
}

.ace-extra-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--ace-secondary);
}

/* Booking Summary Sidebar */
.ace-booking-summary {
    background: var(--ace-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 24px;
    position: sticky;
    top: 20px;
}

/* Hide booking summary on Step 1 */
.ace-step[data-step="1"].active~.ace-booking-summary,
.ace-wizard-container:has(.ace-step[data-step="1"].active) .ace-booking-summary {
    display: none;
}

.ace-summary-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--ace-primary);
    margin: 0 0 20px;
}

.ace-summary-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ace-border);
}

.ace-summary-item:last-of-type {
    border-bottom: none;
}

.ace-summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ace-text-muted);
    margin-bottom: 4px;
}

.ace-summary-label span:first-child {
    color: var(--ace-secondary);
}

.ace-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ace-primary);
}

.ace-summary-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--ace-border);
}

.ace-summary-total-label {
    font-size: 14px;
    color: var(--ace-text-muted);
    margin-bottom: 8px;
}

.ace-summary-total-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--ace-primary);
}

/* Navigation Buttons */
.ace-wizard-nav {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.ace-btn {
    flex: 1;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ace-btn-back {
    background: var(--ace-bg);
    color: var(--ace-text);
}

.ace-btn-back:hover {
    background: #e2e8f0;
}

.ace-btn-continue {
    background: var(--ace-primary);
    color: var(--ace-white);
}

.ace-btn-continue:hover {
    background: #0f172a;
}

/* Step Content */
.ace-step {
    display: none;
}

.ace-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .ace-wizard-container {
        grid-template-columns: 1fr;
    }

    .ace-booking-summary {
        position: static;
    }

    .ace-vehicle-grid {
        grid-template-columns: 1fr;
    }

    .ace-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ace-wizard-main {
        padding: 24px;
    }

    .ace-counter-grid {
        grid-template-columns: 1fr;
    }

    .ace-extras-grid {
        grid-template-columns: 1fr;
    }
}