/* Car Rental Public Styles */

* {
    box-sizing: border-box;
}

.car-rental-cars-container {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Hero Section */
.car-rental-search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.car-rental-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.search-hero-content {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.search-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.search-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

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

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

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.btn-search {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.search-options {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 4px;
    margin-left: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Filters Section */
.car-rental-filters-section {
    margin-bottom: 30px;
}

.filters-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filters-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.filters-toggle {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-toggle:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.filters-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filters-content.active {
    padding: 25px;
    max-height: 300px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-select {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #333;
}

.price-separator {
    color: #666;
    font-weight: 600;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-filter {
    background: #28a745;
    color: white;
}

.btn-reset {
    background: #6c757d;
    color: white;
}

/* Cars Grid */
.cars-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

.results-count {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cars-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.cars-list .car-card {
    max-width: none;
}

.cars-list .car-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cars-list .car-image-container {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
}

.cars-list .car-info {
    flex: 1;
}

/* Car Card */
.car-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.car-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.car-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.car-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 3rem;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.car-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.car-card:hover .car-overlay {
    opacity: 1;
}

.btn-view-details {
    background: white;
    color: #667eea;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.car-card:hover .btn-view-details {
    transform: translateY(0);
}

.car-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 10px;
}

.car-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.car-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.car-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.feature-icon {
    font-size: 1rem;
}

.car-pricing {
    margin-bottom: 20px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 5px;
}

.price-label {
    font-size: 0.8rem;
    color: #666;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.price-currency {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.price-period {
    font-size: 0.9rem;
    color: #666;
}

.price-alternative {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 600;
}

.car-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-book {
    flex: 2;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-details {
    flex: 1;
}

/* No Cars Found */
.no-cars-found {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.no-cars-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-cars-found h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.no-cars-found p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-rental-cars-container {
        padding: 0 15px;
    }
    
    .car-rental-search-section {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .search-hero-content h1 {
        font-size: 2rem;
    }
    
    .search-form-container {
        padding: 20px;
    }
    
    .search-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cars-grid-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .view-options {
        justify-content: center;
    }
    
    .car-actions {
        flex-direction: column;
    }
    
    .cars-list .car-card-inner {
        flex-direction: column;
    }
    
    .cars-list .car-image-container {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .search-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .search-form-container {
        padding: 15px;
    }
    
    .car-info {
        padding: 15px;
    }
    
    .car-features {
        gap: 10px;
    }
    
    .feature {
        font-size: 0.8rem;
    }
    
    .price-main {
        flex-wrap: wrap;
    }
}

/* Loading Animation */
.car-rental-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.filter-select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .car-rental-search-section,
    .car-rental-filters-section,
    .car-actions {
        display: none;
    }
    
    .car-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}



/* Booking Form Styles */
.car-rental-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
}

/* Car Summary */
.booking-car-summary {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.car-summary-content {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 25px;
}

.car-summary-image {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.summary-car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-car-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #6c757d;
}

.car-summary-info {
    flex: 1;
}

.car-summary-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.car-summary-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
}

.car-summary-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #666;
}

.car-summary-pricing {
    display: flex;
    gap: 20px;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 80px;
}

.price-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Booking Form */
.booking-form-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeInSlide 0.3s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.step-title {
    font-weight: 600;
    color: #333;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.same-location-option {
    margin-bottom: 25px;
    text-align: center;
}

/* Calendar */
.booking-calendar {
    margin-bottom: 30px;
}

.booking-calendar h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.calendar-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.calendar-month {
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 15px;
}

.calendar-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #666;
    background: #e9ecef;
}

.calendar-day {
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border-radius: 4px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.available {
    background: white;
    color: #333;
}

.calendar-day.available:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.calendar-day.booked {
    background: #dc3545;
    color: white;
    cursor: not-allowed;
}

.calendar-day.past {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #28a745;
    color: white;
    font-weight: 600;
}

.calendar-day.in-range {
    background: #ffd700;
    color: #333;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.available {
    background: white;
    border: 1px solid #ddd;
}

.legend-color.booked {
    background: #dc3545;
}

.legend-color.selected {
    background: #28a745;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-prev,
.btn-next,
.btn-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-confirm {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-prev:hover,
.btn-next:hover,
.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-arrow {
    font-size: 1.2rem;
}

/* Booking Summary */
.booking-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.booking-summary h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-label {
    font-weight: 500;
    color: #666;
}

.summary-value {
    font-weight: 600;
    color: #333;
}

/* Price Breakdown */
.price-breakdown {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.price-breakdown h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.price-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-breakdown .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.price-breakdown .price-label {
    font-weight: 500;
    color: #666;
}

.price-breakdown .price-value {
    font-weight: 600;
    color: #333;
}

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

.total-item {
    background: #f8f9fa;
    margin: 10px -20px -20px -20px;
    padding: 20px !important;
    border-bottom: none !important;
}

.total-item .price-label,
.total-item .price-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.total-item .price-value.total {
    color: #667eea;
}

.deposit-item {
    background: #fff3cd;
    margin: 10px -20px 0 -20px;
    padding: 15px 20px !important;
    border-bottom: none !important;
}

.deposit-item .price-value.deposit {
    color: #856404;
    font-weight: 700;
}

/* Terms Section */
.terms-section {
    margin-bottom: 25px;
    text-align: center;
}

.terms-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.terms-section a:hover {
    text-decoration: underline;
}

/* Progress Indicator */
.booking-progress {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active::after {
    background: #667eea;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.progress-step.active .step-label {
    color: #333;
    font-weight: 600;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Loading Spinner */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-rental-booking-container {
        padding: 15px;
    }
    
    .car-summary-content {
        flex-direction: column;
        text-align: center;
    }
    
    .car-summary-image {
        width: 100%;
        max-width: 300px;
        height: 180px;
    }
    
    .car-summary-features,
    .car-summary-pricing {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .booking-form-section {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calendar-container {
        flex-direction: column;
        align-items: center;
    }
    
    .calendar-month {
        min-width: auto;
        width: 100%;
        max-width: 320px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-prev,
    .btn-next,
    .btn-confirm {
        width: 100%;
        justify-content: center;
    }
    
    .progress-steps {
        gap: 10px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .progress-step::after {
        right: -45%;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .booking-form-section {
        padding: 15px;
    }
    
    .calendar-grid {
        gap: 1px;
    }
    
    .calendar-day {
        min-height: 28px;
        font-size: 0.8rem;
        padding: 6px 2px;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .price-breakdown {
        padding: 15px;
    }
    
    .booking-progress {
        padding: 20px;
    }
}


/* Payment Form Styles */
.car-rental-payment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
}

/* Booking Summary */
.payment-booking-summary {
    margin-bottom: 30px;
}

.payment-booking-summary h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.booking-summary-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
}

.car-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.car-summary-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.car-summary-placeholder {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6c757d;
}

.car-summary-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.car-summary-info p {
    color: #666;
    margin: 0;
}

.booking-details {
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #666;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

.price-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: -25px -25px -25px -25px;
    margin-top: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.price-row.deposit {
    background: #fff3cd;
    margin: 10px -20px 0 -20px;
    padding: 12px 20px;
    border-radius: 8px;
}

.price-label {
    font-weight: 500;
    color: #666;
}

.price-value {
    font-weight: 600;
    color: #333;
}

.price-value.total {
    font-size: 1.3rem;
    color: #667eea;
}

/* Payment Methods */
.payment-methods-section {
    margin-bottom: 30px;
}

.payment-methods-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-method:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method-label {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method input[type="radio"]:checked + .payment-method-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.payment-method-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.payment-method input[type="radio"]:checked + .payment-method-label .payment-method-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.payment-method-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.payment-method-radio {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.payment-method input[type="radio"]:checked + .payment-method-label .radio-circle {
    border-color: white;
    background: white;
}

.payment-method input[type="radio"]:checked + .payment-method-label .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
}

/* Payment Forms */
.payment-forms {
    margin-bottom: 30px;
}

.payment-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-form-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.payment-form-content p {
    color: #666;
    margin-bottom: 20px;
}

/* PayPal Button */
.btn-paypal {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-paypal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.3);
}

/* Stripe Form */
.stripe-element {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.stripe-element:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.stripe-errors {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 10px;
}

.btn-stripe {
    background: linear-gradient(135deg, #6772e5 0%, #5469d4 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-stripe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 114, 229, 0.3);
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

/* Bank Transfer */
.bank-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.bank-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.bank-detail:last-child {
    border-bottom: none;
}

.bank-label {
    font-weight: 500;
    color: #666;
}

.bank-value {
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
}

.transfer-upload {
    margin-bottom: 25px;
}

.transfer-upload label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.file-input {
    display: none;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-area.has-file {
    border-color: #28a745;
    background: #f8fff9;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.upload-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.8rem;
    color: #666;
}

.btn-bank {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-bank:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Error and Success Messages */
.car-rental-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    text-align: center;
}

.car-rental-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-rental-payment-container {
        padding: 15px;
    }
    
    .booking-summary-card {
        padding: 20px;
    }
    
    .car-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .car-summary-image,
    .car-summary-placeholder {
        width: 100%;
        max-width: 200px;
        height: 120px;
    }
    
    .payment-method-label {
        padding: 15px;
    }
    
    .payment-method-icon {
        width: 40px;
        height: 40px;
        margin-left: 10px;
    }
    
    .payment-form {
        padding: 20px;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .bank-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .payment-methods {
        gap: 10px;
    }
    
    .payment-method-label {
        padding: 12px;
    }
    
    .payment-form {
        padding: 15px;
    }
    
    .btn-paypal,
    .btn-stripe,
    .btn-bank {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

