:root {
    --primary: #4fd1f5;
    --primary-dark: #1fb6e0;
    --secondary: #0b2b3c;
    --bg-light: #f4f8fa;
    --border: #e2e8f0;
    --text-muted: #64748b;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--secondary);
}

/* Header */
.header {
    background: var(--primary);
    padding: 30px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo {
    font-weight: 700;
    font-size: 28px;
    color: white;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Booking Bar */
.booking-bar {
    display: flex;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1100px;
    flex-wrap: wrap;
    justify-content: center;
}

.input-group {
    display: flex;
    align-items: center;
    padding: 10px 10px 10px 15px; /* Reduced right padding */
    border-right: 1px solid var(--border);
    flex: 1;
    min-width: 150px;
}

.input-group:first-of-type {
    flex: 2;
    min-width: 250px;
}

.input-group:last-of-type {
    border-right: none;
}

.input-group i {
    color: var(--primary-dark);
    margin-right: 15px;
    font-size: 18px;
}

.input-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.input-content label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.booking-bar input,
.booking-bar select,
.ts-wrapper {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--secondary);
    outline: none;
    background: transparent;
    padding: 0;
}

.ts-wrapper .ts-control {
    padding: 0;
    border: none;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    outline: none;
    color: var(--secondary);
    background: transparent !important;
}

.ts-wrapper .ts-control {
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    min-height: auto;
}

.ts-wrapper.single .ts-control {
    background-image: none !important;
    padding-right: 15px !important; /* Reduced padding for the arrow */
    width: 100%;
}

.ts-wrapper .ts-control input {
    display: none !important;
}

.ts-wrapper .ts-control .item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Custom arrow for Tom Select */
.ts-wrapper.single .ts-control::after {
    border-color: var(--primary-dark) transparent transparent transparent !important;
    right: 5px !important; /* Adjusted position for the arrow */
    top: 60%;
}

.ts-dropdown {
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.filters .ts-dropdown .option.active {
    background-color: var(--primary) !important;
    color: white !important;
}

.filters .ts-dropdown .option:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.ts-wrapper.single .ts-control::after {
    margin-top: -2px !important;
}

.ts-control input {
    display: none !important; /* Hide the search input unless we want it */
}

.search-btn {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 25px;
    margin-left: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 50px;
}

.search-btn:hover {
    background: #163d54;
}

@media (max-width: 900px) {
    .booking-bar {
        flex-direction: column;
    }
    .input-group {
        border-right: none;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    .search-btn {
        margin: 10px 0 0 0;
        width: 100%;
    }
}

/* Main */
.container {
    padding: 40px 5%;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Vehicle Card */
.vehicle-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.vehicle-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.card-content {
    padding: 20px;
}

.vehicle-card h3 {
    margin: 0;
    font-size: 20px;
    color: var(--secondary);
}

.vehicle-card p {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-weight: 700;
    color: var(--secondary);
    font-size: 16px;
}

.price span {
    color: var(--primary-dark);
}

/* Step Indicator */
.step-container {
    background: white;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.steps {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    justify-content: space-between;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.step.completed {
    cursor: pointer;
}

.step.active {
    color: var(--secondary);
    font-weight: 700;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid var(--border);
}

.step.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Continue Button Container */
.continue-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 5%;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    display: flex;
    justify-content: flex-end;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.continue-btn {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.continue-btn:hover {
    background: #163d54;
    transform: translateY(-2px);
}

.continue-btn:active {
    transform: translateY(0);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Results Page Layout */
.results-page {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.filters {
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    position: sticky;
    top: 20px;
}

.filters h3 {
    margin: 0;
    font-size: 18px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-filters-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--secondary);
    cursor: pointer;
    padding: 5px;
}

.mobile-filter-btn {
    display: none;
    width: 100%;
    background: var(--white);
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mobile-filter-btn i {
    color: var(--primary-dark);
}

.filters .filter-group {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s;
}

.filters .filter-group:hover {
    background: var(--bg-light);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.filter-group label i {
    color: var(--primary-dark);
    font-size: 14px;
}

.filters .ts-wrapper .ts-control {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    padding: 10px 12px !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filters .ts-wrapper:hover .ts-control {
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filters .ts-wrapper.focus .ts-control {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 209, 245, 0.2);
}

.filters .ts-wrapper.single .ts-control::after {
    right: 12px !important;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    font-family: inherit;
    outline: none;
}

.results-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Vehicle Result Card */
.vehicle-result-card {
    background: white;
    border-radius: 15px;
    border: 1px solid var(--border);
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.vehicle-image {
    width: 250px;
    min-width: 250px;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-details {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.vehicle-info h3 {
    margin: 0;
    font-size: 22px;
}

.vehicle-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin: 5px 0 15px 0;
}

.specs {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--secondary);
    flex-wrap: wrap;
}

.availability {
    font-weight: 600;
}

.availability .fa-check {
    color: #10b981;
}

.availability .fa-triangle-exclamation {
    color: #f59e0b;
}

.specs i {
    color: var(--primary-dark);
}

.rental-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    min-width: 180px;
}

.price-section {
    margin-right: 50px;
}

.price-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.selection-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    width: fit-content;
    margin: 0 auto;
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    color: var(--secondary);
}

.qty-btn:hover {
    background: var(--border);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: white;
    font-family: inherit;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.select-vehicle-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.select-vehicle-btn:hover {
    background: #163d54;
}

.select-vehicle-btn.selected {
    background: #22c55e;
}

@media (max-width: 1100px) {
    .steps {
        gap: 15px;
    }
    .step {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .step-text {
        font-size: 12px;
    }
}

@media (max-width: 850px) {
    .steps {
        gap: 10px;
    }
    .step-text {
        font-size: 10px;
    }
    .container {
        padding: 20px 0;
        width: 100%;
        max-width: none;
    }
    .results-page {
        flex-direction: column;
        align-items: stretch;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }
    .results-list {
        width: 100%;
    }
    .vehicle-result-card {
        flex-direction: column;
        width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
    }
    .addons-section, .personal-details-section, .checkout-section {
        width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
    }
    .filters {
        display: none;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        border-radius: 0;
        overflow-y: auto;
        padding: 30px 5%;
    }
    .filters.active {
        display: block;
    }
    .close-filters-btn {
        display: block;
    }
    .mobile-filter-btn {
        display: flex;
        width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
    }
    .vehicle-image {
        width: 100%;
        height: 200px;
    }
    .vehicle-details {
        flex-direction: column;
        gap: 20px;
    }
    .rental-info {
        align-items: flex-start;
        text-align: left;
    }
}

/* Footer */
.step.completed .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.step.completed .step-text {
    color: #10b981;
}

/* Addons & Insurance Styles */
.addons-section, .personal-details-section, .checkout-section {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.addon-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.addon-info p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.addon-price {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 14px;
}

.insurance-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.insurance-card {
    cursor: pointer;
    position: relative;
}

.insurance-card input {
    position: absolute;
    opacity: 0;
}

.insurance-content {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.insurance-card input:checked + .insurance-content {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 5px 15px rgba(79, 209, 245, 0.1);
}

.insurance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.insurance-header h4 {
    margin: 0;
}

.insurance-price {
    font-weight: 700;
    color: var(--primary-dark);
}

/* Form Styles */
.details-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 14px;
    background: var(--bg-light);
}

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

/* Checkout Styles */
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.summary-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border);
}

.summary-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border);
}

.summary-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.total-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.grand-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--border);
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.download-btn {
    background: white;
    color: var(--secondary);
    border: 1px solid var(--border);
}

.download-btn:hover {
    background: var(--bg-light);
}

.payment-btn {
    background: #10b981; /* Success Green */
    color: white;
}

.payment-btn:hover {
    background: #059669;
}

@media (max-width: 768px) {
    .insurance-options, .checkout-grid, .form-row {
        grid-template-columns: 1fr;
    }
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.footer a {
    margin: 0 10px;
    color: var(--primary-dark);
    text-decoration: none;
}

.personal-summary-checkout {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    border-bottom: none;
}