:root {
    --primary-color: rgb(9, 153, 65);
    --primary-hover: rgb(96, 213, 76);
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --text-main: #2b2b3a;
    --text-muted: #888d9d;
    --border-color: #e8eaf1;
    --sale-green: #00b16a;
    --sale-bg: #e6f7ef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.items-center { align-items: center; }

.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-switcher select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-family: inherit;
    font-weight: 500;
}

/* Container */
.widget-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* Initial Search Card */
.search-card {
    max-width: 500px;
    margin: 0 auto;
}

.search-card h2 {
    color: #4a5568;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    background: #f1f5fb;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: #dbe4ff;
    color: var(--primary-color);
}

.input-group {
    margin-bottom: 16px;
    position: relative;
}

.location-group {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 12px;
}

.location-input {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.location-input input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
    margin-left: 10px;
    color: var(--text-main);
}

.location-input:first-child {
    border-bottom: 1px solid var(--border-color);
}

.swap-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.row-group {
    display: flex;
    gap: 16px;
}

.date-input, .time-input {
    flex: 1;
    background: #f8f9fc;
    border-radius: 8px;
    padding: 12px;
}

.date-input input, .time-input input, .duration-select {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text-main);
}

.duration-select {
    padding: 12px;
    background: #f8f9fc;
    border-radius: 8px;
    appearance: none;
}

.toggle-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.toggle-group span {
    margin-left: 10px;
    font-size: 14px;
    font-weight: 500;
}

/* Switch Toggle */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

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

input:checked + .slider {
    background-color: var(--primary-color);
}

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

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

.slider.round:before {
    border-radius: 50%;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary-color)!important;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Two Column Layout */
.two-column-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.left-panel {
    flex: 1;
}

.right-panel {
    width: 320px;
}

/* Steps */
.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.step-badge {
    width: 28px;
    height: 28px;
    background: #e2e8f0;
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 12px;
}

.step-header h2 {
    font-size: 20px;
    color: #1e293b;
}

.info-icon {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    cursor: help;
}

.filters {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.filter-counter {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: #1e293b;
    font-weight: bold;
    cursor: pointer;
}

.counter-btn:hover { background: #cbd5e1; }

/* Vehicle List */
.vehicle-card {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.vehicle-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

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

.vehicle-img {
    width: 100px;
    height: 60px;
    object-fit: contain;
    margin-right: 16px;
}

.vehicle-info {
    flex: 1;
}

.vehicle-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    line-height:normal;
}

.vehicle-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.vehicle-capacity {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.vehicle-price {
    text-align: right;
}

.sale-badge {
    background: var(--sale-bg);
    color: var(--sale-green);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 4px;
    display: inline-block;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.original-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.accordion-header .chevron {
    margin-left: auto;
}

/* Personalize */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.form-group input:focus { border-color: var(--primary-color); }

.addon-item {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.addon-item:last-child {
    border-bottom: none;
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-title {
    display: flex;
    align-items: center;
}

.addon-title .icon {
    font-size: 24px;
    margin-right: 12px;
}

.addon-title h4 {
    font-size: 15px;
    font-weight: 600;
}

.free-text {
    font-size: 12px;
    color: var(--sale-green);
}

.fee-text {
    font-size: 12px;
    color: var(--text-muted);
}

.addon-details {
    margin-top: 16px;
    padding-left: 36px;
}

.addon-details input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.sub-addon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* Step 3 Details */
.phone-input {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.country-code {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f8f9fc;
    border-right: 1px solid var(--border-color);
    gap: 8px;
}

.phone-input input {
    border: none;
    border-radius: 0;
}

.add-phone {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 20px;
}

.work-trip-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.privacy-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Step 4 Payment */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.payment-option.selected {
    border-color: var(--primary-color);
    background: #f8faff;
}

.card-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 12px;
}

.by-stripe {
    font-size: 12px;
    font-weight: 600;
}

.stripe-text { color: #635bff; }

.digital-wallets {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

.submit-btn {
    margin-top: 24px;
}

/* Summary Sidebar */
.summary-card {
    position: sticky;
    top: 20px;
}

.map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.map-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.tooltip {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #00b16a;
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
}

.route-info {
    font-size: 12px;
    margin-bottom: 20px;
}

.route-timeline {
    margin-top: 10px;
}

.timeline-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-main);
    margin: 4px 0;
}

.circle-icon {
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.timeline-line {
    width: 2px;
    height: 16px;
    background: var(--primary-color);
    margin-left: 4px;
}

.summary-details {
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row .icon {
    margin-right: 8px;
}

.total-row {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-price {
    color: var(--primary-color);
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .widget-container {
        padding: 0 5px;
        margin: 10px auto;
    }
    .card {
        padding: 10px;
    }
    .two-column-layout {
        flex-direction: column;
    }
    .left-panel {
        width: 100%;
    }
    .right-panel {
        width: 100%;
    }
    .summary-card, .sticky {
        position: static !important;
        margin-bottom: 24px;
    }
    .lang-switcher {
        position: static;
        padding-top: 16px;
        padding-right: 20px;
        text-align: right;
    }
    .filters {
        flex-direction: column;
        gap: 12px;
    }
    .step-header {
        flex-wrap: nowrap;
        gap: 12px;
        justify-content: space-between;
    }
    .step-header .btn-step-back {
        margin-left: auto !important;
        flex-shrink: 0;
    }
}
