/* iWorx Car Rental - Frontend Styles */

/* Search Form */
.iworx-car-rental-search {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.iworx-car-rental-search .search-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.car-search-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.car-search-form .form-group {
    display: flex;
    flex-direction: column;
}

.car-search-form .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.car-search-form .form-group input,
.car-search-form .form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.car-search-form .form-group input:focus,
.car-search-form .form-group select:focus {
    outline: none;
    border-color: #0073aa;
}

.car-search-form .btn-search {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.car-search-form .btn-search:hover {
    background: #005a87;
}

/* Search Results */
.search-results {
    margin-top: 40px;
}

.search-results h3 {
    margin-bottom: 20px;
    color: #333;
}

.vehicle-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 20px;
    align-items: center;
}

.vehicle-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.vehicle-card-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.vehicle-card-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0;
    color: #666;
}

.vehicle-card-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vehicle-card-price {
    text-align: center;
}

.vehicle-card-price .price {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
}

.vehicle-card-price .per-day {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.btn-book {
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-book:hover {
    background: #005a87;
}

/* Booking Form */
.booking-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.booking-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.booking-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.extras-list {
    list-style: none;
    padding: 0;
}

.extra-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.extra-item input[type="checkbox"] {
    margin-right: 10px;
}

.price-summary {
    position: sticky;
    top: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.price-row.total {
    font-size: 1.2em;
    font-weight: 700;
    border-top: 2px solid #333;
    margin-top: 10px;
}

.price-row.discount {
    color: #28a745;
}

/* Loading */
.search-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .vehicle-card {
        grid-template-columns: 1fr;
    }
    
    .booking-form-grid {
        grid-template-columns: 1fr;
    }
    
    .price-summary {
        position: relative;
        top: 0;
    }
}
