/* Ezy Car Rentals - Multistep Frontend Styles */

.ezycr-search-wrapper,
.ezycr-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ezycr-search-wrapper h2,
.ezycr-booking-wrapper h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #1e293b;
}

/* Step Indicator */
.ezycr-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.ezycr-step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.ezycr-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ezycr-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.ezycr-step.active .ezycr-step-number {
    background: #2563eb;
    color: white;
}

.ezycr-step.completed .ezycr-step-number {
    background: #10b981;
    color: white;
}

.ezycr-step-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.ezycr-step.active .ezycr-step-label {
    color: #2563eb;
    font-weight: 600;
}

/* Step Content */
.ezycr-step-content {
    display: none;
}

.ezycr-step-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Step Navigation */
.ezycr-step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.ezycr-step-navigation button {
    flex: 1;
    max-width: 200px;
}

/* Search Form */
.ezycr-search-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

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

.ezycr-form-field {
    display: flex;
    flex-direction: column;
}

.ezycr-form-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
}

.ezycr-form-field input,
.ezycr-form-field select,
.ezycr-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.ezycr-form-field input:focus,
.ezycr-form-field select:focus,
.ezycr-form-field textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Time Picker Fields */
.ezycr-time-picker-section {
    margin-top: 20px;
}

.ezycr-time-picker-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ezycr-time-field {
    display: flex !important;
    flex-direction: column;
}

.ezycr-time-field label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.ezycr-time-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    cursor: not-allowed !important;
    box-sizing: border-box !important;
    display: block !important;
}

.ezycr-time-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    gap: 8px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    padding: 4px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ezycr-time-btn {
    padding: 10px 8px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.ezycr-time-btn:hover {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    color: #2563eb !important;
}

.ezycr-time-btn.selected {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}
    color: #ffffff;
    font-weight: 600;
}

/* Location Radio Cards */
.ezycr-location-radio-group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

.ezycr-location-radio {
    display: block !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.ezycr-location-radio input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ezycr-location-card {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 16px 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.ezycr-location-radio:hover .ezycr-location-card {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

.ezycr-location-radio input[type="radio"]:checked + .ezycr-location-card {
    border-color: #2563eb !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
}

.ezycr-location-icon {
    font-size: 28px !important;
    min-width: 40px !important;
    text-align: center !important;
    display: inline-block !important;
}

.ezycr-location-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    flex: 1 !important;
}

.ezycr-location-radio input[type="radio"]:checked + .ezycr-location-card .ezycr-location-name {
    color: #2563eb !important;
}

/* Radio Buttons */
.ezycr-radio-group {
    display: flex;
    gap: 20px;
}

.ezycr-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ezycr-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.ezycr-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ezycr-btn-primary {
    background: #2563eb;
    color: white;
}

.ezycr-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ezycr-btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.ezycr-btn-secondary:hover {
    background: #cbd5e1;
}

.ezycr-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
}

/* Search Results */
.ezycr-browse-subtitle {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

.ezycr-pricing-note {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.ezycr-dates-notice {
    color: #64748b;
    font-style: italic;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    margin: 0;
}

#ezycr-date-summary {
    animation: fadeIn 0.3s;
}

.ezycr-results-header {
    margin-bottom: 30px;
}

.ezycr-results-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #1e293b;
}

.ezycr-results-header p {
    color: #64748b;
}

.ezycr-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.ezycr-vehicle-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.ezycr-vehicle-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.ezycr-vehicle-card img,
.ezycr-vehicle-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ezycr-vehicle-placeholder {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.ezycr-vehicle-content {
    padding: 20px;
}

.ezycr-vehicle-card h4 {
    font-size: 20px;
    margin: 0 0 5px 0;
    color: #1e293b;
}

.ezycr-vehicle-category {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.ezycr-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.ezycr-vehicle-specs span {
    font-size: 13px;
    padding: 5px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    color: #475569;
}

.ezycr-vehicle-features {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
}

.ezycr-vehicle-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #f1f5f9;
}

.ezycr-price-info {
    display: flex;
    flex-direction: column;
}

.ezycr-daily-rate {
    font-size: 14px;
    color: #64748b;
}

.ezycr-total-price {
    font-size: 20px;
    font-weight: bold;
    color: #2563eb;
}

/* Booking Page - DESKTOP LAYOUT */
.ezycr-booking-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.ezycr-vehicle-summary {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
}

.ezycr-vehicle-summary img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.ezycr-vehicle-summary h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #1e293b;
}

.ezycr-rental-details,
.ezycr-extras-section,
.ezycr-customer-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.ezycr-rental-details h4,
.ezycr-extras-section h4,
.ezycr-customer-form h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1e293b;
}

.ezycr-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.ezycr-extra-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ezycr-extra-option:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.ezycr-extra-checkbox,
.ezycr-insurance-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ezycr-extra-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ezycr-extra-price {
    color: #2563eb;
    font-weight: 600;
}

.ezycr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.ezycr-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ezycr-checkbox a {
    color: #2563eb;
    text-decoration: none;
}

.ezycr-checkbox a:hover {
    text-decoration: underline;
}

/* Sidebar - DESKTOP */
.ezycr-booking-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ezycr-price-summary {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.ezycr-price-summary h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1e293b;
}

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

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

.ezycr-total-price {
    font-size: 20px;
    font-weight: bold;
    color: #2563eb;
    padding-top: 15px;
    border-top: 2px solid #cbd5e1 !important;
}

/* Messages */
#ezycr-booking-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    display: none;
}

#ezycr-booking-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    display: block;
}

#ezycr-booking-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

/* Modal */
.ezycr-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.ezycr-modal-content {
    background: #fff;
    margin: 50px auto;
    padding: 30px;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
}

.ezycr-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #64748b;
}

.ezycr-modal-close:hover {
    color: #1e293b;
}

/* MOBILE RESPONSIVE - Price Summary at Bottom */
@media (max-width: 968px) {
    /* Hide step indicator completely on mobile */
    .ezycr-step-indicator {
        display: none;
    }
    
    /* Smaller heading on mobile */
    .ezycr-booking-wrapper h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    /* Adjust container padding for mobile */
    .ezycr-search-wrapper,
    .ezycr-booking-wrapper {
        padding: 20px 15px;
    }
    
    /* Switch to single column and use flexbox for reordering */
    .ezycr-booking-container {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    /* Main content appears first */
    .ezycr-booking-main {
        order: 1;
    }
    
    /* Sidebar appears last (at bottom) */
    .ezycr-booking-sidebar {
        order: 2;
        position: static;
        margin-top: 0;
    }
    
    .ezycr-vehicle-summary {
        flex-direction: column;
    }
    
    .ezycr-vehicle-summary img {
        width: 100%;
        height: 200px;
    }
    
    .ezycr-step-navigation {
        flex-direction: column;
    }
    
    .ezycr-step-navigation button {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .ezycr-vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .ezycr-form-row {
        grid-template-columns: 1fr;
    }
    
    .ezycr-vehicle-pricing {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    /* Even smaller heading on very small screens */
    .ezycr-booking-wrapper h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    /* Tighter padding on very small screens */
    .ezycr-search-wrapper,
    .ezycr-booking-wrapper {
        padding: 15px 10px;
    }
    
    .ezycr-radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Time picker mobile responsive */
    .ezycr-time-picker-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ezycr-time-buttons {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
        max-height: 180px;
    }
    
    .ezycr-time-btn {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    /* Location cards stay same on mobile (already single column) */
    
    /* Fix dropdown cut-off on mobile */
    .ezycr-form-field select,
    .ezycr-time-select {
        width: 100%;
        max-width: 100%;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .ezycr-form-field select option,
    .ezycr-time-select option {
        padding: 10px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Ensure form fields don't overflow */
    .ezycr-form-field input,
    .ezycr-form-field textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

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

/* Clickable Vehicle Image */
.ezycr-vehicle-image-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.ezycr-vehicle-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.ezycr-vehicle-image-wrapper img {
    transition: transform 0.3s ease;
}

/* Slideshow Styles */
.ezycr-vehicle-image-wrapper.ezycr-slideshow {
    position: relative;
}

.ezycr-vehicle-image-wrapper.ezycr-slideshow img.ezycr-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.ezycr-vehicle-image-wrapper.ezycr-slideshow img.ezycr-slide:first-child {
    position: relative;
}

.ezycr-vehicle-image-wrapper.ezycr-slideshow img.ezycr-slide.active {
    opacity: 1;
    z-index: 1;
}

.ezycr-slide-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.ezycr-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ezycr-slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.ezycr-slide-dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.ezycr-image-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.ezycr-image-count .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Pause on hover */
.ezycr-vehicle-card:hover .ezycr-slideshow img.ezycr-slide {
    /* Keep current slide visible on hover */
}

/* Arrow navigation (optional, shown on hover) */
.ezycr-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.ezycr-vehicle-card:hover .ezycr-slide-nav {
    opacity: 1;
}

.ezycr-slide-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ezycr-slide-nav.prev {
    left: 10px;
}

.ezycr-slide-nav.next {
    right: 10px;
}

.ezycr-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ezycr-vehicle-image-link:hover .ezycr-image-overlay {
    opacity: 1;
}

.ezycr-vehicle-image-link:hover .ezycr-vehicle-image-wrapper img {
    transform: scale(1.05);
}

.ezycr-view-details {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

/* Security Deposit Highlight */
.ezycr-security-deposit-row {
    background: #fef3c7;
    padding: 12px;
    margin: 10px -10px;
    border-radius: 6px;
    border-left: 4px solid #f59e0b;
}

.ezycr-security-deposit-row .ezycr-deposit-icon {
    color: #f59e0b;
    margin-right: 5px;
}

.ezycr-security-deposit-note {
    font-size: 12px;
    color: #92400e;
    margin-top: 4px;
}

/* Tax and Service Fee Styling */
.ezycr-separator-top {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
}

#ezycr-service-fee-row,
#ezycr-tax-row {
    font-size: 14px;
    color: #4b5563;
}

#ezycr-tax-row {
    font-weight: 500;
}

.ezycr-total-price {
    border-top: 2px solid #1f2937 !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
    font-size: 18px !important;
}

/* 6-Step Indicator Adjustments */
.ezycr-step-indicator {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ezycr-step {
    flex: 1 1 calc(16.666% - 10px);
    min-width: 100px;
}

@media (max-width: 768px) {
    .ezycr-step {
        flex: 1 1 calc(33.333% - 10px);
    }
    
    .ezycr-step-label {
        font-size: 10px;
    }
    
    .ezycr-step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* File Upload Styling */
.ezycr-file-upload-wrapper {
    margin-top: 5px;
}

.ezycr-upload-area {
    transition: all 0.3s ease;
}

.ezycr-upload-area:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

#ezycr-license-preview {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   ENHANCED SEARCH STYLES
   ============================================================ */

.ezycr-search-advanced-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ezycr-search-advanced-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.ezycr-search-advanced-form h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.ezycr-search-subtitle {
    color: #64748b;
    margin: 0 0 30px 0;
    font-size: 16px;
}

.ezycr-search-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.ezycr-search-section:last-of-type {
    border-bottom: none;
}

.ezycr-search-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1e293b;
}

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

.ezycr-search-field {
    display: flex;
    flex-direction: column;
}

.ezycr-search-field label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #475569;
    font-size: 14px;
}

.ezycr-search-field input[type="date"],
.ezycr-search-field select,
.ezycr-search-field input[type="number"],
.ezycr-search-select {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    transition: all 0.2s;
}

.ezycr-search-field input:focus,
.ezycr-search-field select:focus,
.ezycr-search-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ezycr-search-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ezycr-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.ezycr-checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #475569;
}

.ezycr-checkbox-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.ezycr-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ezycr-checkbox-label input[type="checkbox"]:checked + span,
.ezycr-checkbox-label:has(input:checked) {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
    font-weight: 600;
}

.ezycr-price-range {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ezycr-price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ezycr-price-display {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2563eb;
}

.ezycr-search-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.ezycr-search-actions button {
    flex: 1;
}

.ezycr-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.ezycr-btn-secondary:hover {
    background: #e2e8f0;
}

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

.ezycr-results-header {
    margin-bottom: 30px;
}

.ezycr-results-header h3 {
    font-size: 24px;
    color: #1e293b;
    margin: 0;
}

.ezycr-loading-search {
    text-align: center;
    padding: 60px 20px;
}

.ezycr-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.ezycr-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fef3c7;
    border-radius: 12px;
    margin-top: 30px;
}

.ezycr-no-results p {
    font-size: 18px;
    color: #92400e;
    margin: 10px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ezycr-search-advanced-form {
        padding: 20px;
    }
    
    .ezycr-search-row {
        grid-template-columns: 1fr;
    }
    
    .ezycr-price-inputs {
        grid-template-columns: 1fr;
    }
    
    .ezycr-features-grid {
        grid-template-columns: 1fr;
    }
    
    .ezycr-search-actions {
        flex-direction: column;
    }
    
    .ezycr-search-checkboxes {
        flex-direction: column;
    }
}

/* ============================================================
   VEHICLE CAROUSEL STYLES
   ============================================================ */

.ezycr-carousel-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.ezycr-carousel-header {
    text-align: center;
    margin-bottom: 40px;
}

.ezycr-carousel-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.ezycr-carousel-header p {
    font-size: 18px;
    color: #64748b;
    margin: 0;
}

.ezycr-carousel-container {
    position: relative;
    padding: 0 60px;
}

.ezycr-carousel-track-container {
    overflow: hidden;
    padding: 20px 0 40px 0;
}

.ezycr-carousel-track {
    display: flex;
    gap: 24px;
    cursor: grab;
    user-select: none;
}

.ezycr-carousel-track:active {
    cursor: grabbing;
}

.ezycr-carousel-slide {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

.ezycr-carousel-card {
    height: 100%;
}

/* Featured Badge */
.ezycr-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    z-index: 10;
}

/* Navigation Arrows */
.ezycr-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ezycr-carousel-arrow:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.ezycr-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.ezycr-carousel-prev {
    left: 0;
}

.ezycr-carousel-next {
    right: 0;
}

/* Dot Indicators */
.ezycr-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.ezycr-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ezycr-carousel-dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.ezycr-carousel-dot.active {
    background: #2563eb;
    width: 32px;
    border-radius: 6px;
}

/* Small Button */
.ezycr-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .ezycr-carousel-slide {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .ezycr-carousel-container {
        padding: 0 50px;
    }
    
    .ezycr-carousel-slide {
        flex: 0 0 100%;
    }
    
    .ezycr-carousel-header h2 {
        font-size: 28px;
    }
    
    .ezycr-carousel-header p {
        font-size: 16px;
    }
    
    .ezycr-carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .ezycr-carousel-prev {
        left: 5px;
    }
    
    .ezycr-carousel-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .ezycr-carousel-container {
        padding: 0 40px;
    }
    
    .ezycr-carousel-arrow {
        width: 36px;
        height: 36px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ezycr-carousel-slide {
    animation: slideIn 0.5s ease-out;
}

/* ============================================================
   CAROUSEL IMPROVEMENTS - Better Icon Display
   ============================================================ */

/* Vehicle Specs - Wrap Properly */
.ezycr-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.ezycr-vehicle-specs .ezycr-spec-item {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Mobile - Smaller Specs */
@media (max-width: 768px) {
    .ezycr-vehicle-specs {
        gap: 6px;
    }
    
    .ezycr-vehicle-specs .ezycr-spec-item {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Carousel Card Improvements */
.ezycr-carousel-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ezycr-carousel-card .ezycr-vehicle-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ezycr-carousel-card .ezycr-vehicle-pricing {
    margin-top: auto;
}

/* Carousel Dots - Better Visibility */
.ezycr-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 0;
}

.ezycr-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ezycr-carousel-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.ezycr-carousel-dot.active {
    background: #3b82f6;
    width: 32px;
    border-radius: 6px;
}

/* Carousel Arrows - Better Mobile */
@media (max-width: 768px) {
    .ezycr-carousel-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px;
    }
}

/* ================================
   LIGHTBOX GALLERY
   ================================ */
.ezycr-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ezycr-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.ezycr-lightbox-content {
    position: relative;
    z-index: 1;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.ezycr-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: transform 0.2s;
}

.ezycr-lightbox-close:hover {
    transform: scale(1.2);
}

.ezycr-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: white;
}

#ezycr-lightbox-title {
    font-size: 20px;
    font-weight: 600;
}

#ezycr-lightbox-counter {
    font-size: 14px;
    opacity: 0.8;
}

.ezycr-lightbox-main {
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 0;
}

.ezycr-lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 60vh;
}

#ezycr-lightbox-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ezycr-lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    margin: 0 10px;
}

.ezycr-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ezycr-lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    overflow-x: auto;
}

.ezycr-lightbox-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.ezycr-lightbox-thumb:hover {
    opacity: 0.8;
}

.ezycr-lightbox-thumb.active {
    opacity: 1;
    border-color: #3b82f6;
}

.ezycr-lightbox-cta {
    text-align: center;
    padding: 15px 0;
}

.ezycr-lightbox-cta .ezycr-btn {
    padding: 15px 40px;
    font-size: 16px;
}

/* ================================
   REVIEWS STYLES
   ================================ */
.ezycr-vehicle-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 6px 10px;
    background: #fef3c7;
    border-radius: 6px;
    width: fit-content;
    transition: all 0.2s;
}

.ezycr-vehicle-rating:hover {
    background: #fde68a;
}

.ezycr-stars {
    font-size: 14px;
    letter-spacing: -2px;
}

.ezycr-rating-text {
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}

/* Reviews Modal */
.ezycr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ezycr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.ezycr-modal-content {
    position: relative;
    z-index: 1;
    background: #ffffff !important;
    border-radius: 16px;
    width: 95%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.ezycr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.ezycr-modal-close:hover {
    background: #e2e8f0;
}

.ezycr-reviews-modal-content {
    padding: 30px;
    background: #fff !important;
}

.ezycr-reviews-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.ezycr-reviews-header h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #1e293b;
}

.ezycr-reviews-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ezycr-reviews-avg {
    font-size: 42px;
    font-weight: 700;
    color: #f59e0b;
}

.ezycr-reviews-breakdown {
    flex: 1;
}

.ezycr-rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 3px 0;
    font-size: 12px;
    color: #64748b;
}

.ezycr-rating-bar-fill {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.ezycr-rating-bar-fill span {
    display: block;
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
}

.ezycr-review-item {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.ezycr-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ezycr-reviewer-name {
    font-weight: 600;
    color: #1e293b;
}

.ezycr-review-date {
    font-size: 12px;
    color: #94a3b8;
}

.ezycr-review-stars {
    margin-bottom: 8px;
}

.ezycr-review-text {
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
}

.ezycr-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #10b981;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.ezycr-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.ezycr-no-reviews-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Reviews CTA at bottom of modal */
.ezycr-reviews-cta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.ezycr-reviews-cta .ezycr-btn {
    width: 100%;
    padding: 15px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ezycr-lightbox-nav {
        padding: 15px 10px;
        font-size: 22px;
    }
    
    .ezycr-lightbox-thumbnails {
        gap: 8px;
    }
    
    .ezycr-lightbox-thumb {
        width: 60px;
        height: 45px;
    }
    
    #ezycr-lightbox-title {
        font-size: 16px;
    }
    
    .ezycr-reviews-modal-content {
        padding: 20px;
    }
    
    .ezycr-reviews-avg {
        font-size: 32px;
    }
}

/* ================================
   BOOKING SUCCESS & CALENDAR BUTTONS
   ================================ */
.ezycr-booking-success {
    text-align: center;
    padding: 30px;
}

.ezycr-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 20px;
    animation: ezycr-success-pop 0.5s ease-out;
}

@keyframes ezycr-success-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.ezycr-booking-success h3 {
    margin: 0 0 15px;
    font-size: 28px;
    color: #059669;
}

.ezycr-booking-ref {
    background: #f0fdf4;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 0 20px;
    font-size: 16px;
    color: #166534;
}

.ezycr-booking-summary {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 0 0 20px;
}

.ezycr-booking-summary p {
    margin: 5px 0;
    color: #374151;
}

.ezycr-calendar-success {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.ezycr-calendar-success p {
    margin: 0 0 15px;
    color: #1e40af;
}

.ezycr-calendar-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ezycr-cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.ezycr-cal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ezycr-cal-google {
    background: #4285f4;
    color: white;
}

.ezycr-cal-google:hover {
    background: #3367d6;
    color: white;
}

.ezycr-cal-apple {
    background: #1f2937;
    color: white;
}

.ezycr-cal-apple:hover {
    background: #374151;
    color: white;
}

.ezycr-cal-outlook {
    background: #0078d4;
    color: white;
}

.ezycr-cal-outlook:hover {
    background: #106ebe;
    color: white;
}

.ezycr-email-notice {
    margin: 20px 0 0;
    color: #64748b;
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .ezycr-calendar-btns {
        flex-direction: column;
    }
    
    .ezycr-cal-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ezycr-success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .ezycr-booking-success h3 {
        font-size: 24px;
    }
}


/* ================================
   AUTO-ADVANCE FIELD HIGHLIGHT
   ================================ */

.ezycr-field-highlight {
    animation: fieldHighlight 1s ease;
}

@keyframes fieldHighlight {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: none; }
}

/* Optional fields toggle */
.ezycr-optional-fields-toggle {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.ezycr-optional-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.ezycr-optional-toggle-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.ezycr-optional-toggle-btn .toggle-icon {
    transition: transform 0.2s ease;
}

.ezycr-optional-toggle-btn.open .toggle-icon {
    transform: rotate(180deg);
}

.ezycr-optional-fields {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.ezycr-optional-fields.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pick Up Point Select styling */
.ezycr-pickup-point-select {
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ezycr-pickup-point-select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}


/* Search Only Form */
.ezycr-search-only-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ezycr-search-hero {
    text-align: center;
    margin-bottom: 30px;
}

.ezycr-search-hero h2 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 10px;
}

.ezycr-search-hero p {
    font-size: 16px;
    color: #64748b;
}

.ezycr-search-only-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ezycr-search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.ezycr-search-field label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 15px;
}

.ezycr-search-field input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
}

.ezycr-search-field input[type="date"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ezycr-search-submit {
    padding: 14px 30px !important;
    font-size: 16px !important;
    white-space: nowrap;
    height: 50px;
}

/* Results Page */
.ezycr-results-wrapper {
    padding: 20px;
}

.ezycr-results-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #bae6fd;
}

.ezycr-results-info h2 {
    margin: 0 0 10px 0;
    color: #0c4a6e;
    font-size: 28px;
}

.ezycr-search-summary {
    font-size: 16px;
    color: #0369a1;
    margin: 10px 0;
}

.ezycr-days-badge {
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
}

.ezycr-results-count {
    font-size: 14px;
    color: #64748b;
    margin: 5px 0 0 0;
}

.ezycr-results-pricing {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.ezycr-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ezycr-pricing-row:last-child {
    margin-bottom: 0;
}

.ezycr-price-label {
    color: #166534;
    font-size: 14px;
}

.ezycr-price-value {
    color: #14532d;
    font-weight: 600;
    font-size: 15px;
}

.ezycr-total-row {
    padding-top: 10px;
    border-top: 2px solid #86efac;
    margin-top: 8px;
}

.ezycr-total-row .ezycr-price-label {
    font-weight: 600;
    font-size: 15px;
}

.ezycr-price-total {
    color: #14532d;
    font-weight: 700;
    font-size: 20px;
}

.ezycr-results-card .ezycr-btn-primary {
    width: 100%;
    margin-top: 10px;
}

.ezycr-error-message,
.ezycr-no-results {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 40px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 16px;
}

.ezycr-error-message h3,
.ezycr-no-results h3 {
    color: #991b1b;
    margin: 0 0 15px 0;
}

.ezycr-error-message p,
.ezycr-no-results p {
    color: #7f1d1d;
    margin: 10px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ezycr-search-fields {
        grid-template-columns: 1fr;
    }
    
    .ezycr-search-submit {
        width: 100%;
    }
    
    .ezycr-results-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .ezycr-results-info h2 {
        font-size: 22px;
    }
    
    .ezycr-search-summary {
        font-size: 14px;
    }
}

/* Mobile Search Form Centering Fix */
@media (max-width: 768px) {
    .ezycr-search-only-wrapper {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .ezycr-search-only-form {
        padding: 20px 15px;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .ezycr-search-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ezycr-search-field {
        width: 100%;
    }
    
    .ezycr-search-field label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .ezycr-search-field input[type="date"] {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .ezycr-search-submit {
        width: 100%;
        padding: 14px 20px !important;
        font-size: 15px !important;
        height: auto;
    }
    
    /* Hero text centering on mobile */
    .ezycr-search-hero {
        text-align: center;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .ezycr-search-hero h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .ezycr-search-hero p {
        font-size: 14px;
    }
}

/* Better centering for all screen sizes */
.ezycr-search-only-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ezycr-search-only-form {
    width: 100%;
    max-width: 650px;
}

/* Ensure form container centers content */
.ezycr-search-fields {
    width: 100%;
}

/* Astra Theme Compatibility - Force Centering */
.ast-container .ezycr-search-only-wrapper,
.ast-separate-container .ezycr-search-only-wrapper {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override Astra's content width constraints */
.site-content .ezycr-search-only-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Fix Astra padding issues */
.ast-container .ezycr-search-only-form,
.ast-separate-container .ezycr-search-only-form {
    margin-left: auto;
    margin-right: auto;
}

/* Ensure button spans full width on mobile in Astra */
@media (max-width: 768px) {
    .ast-container .ezycr-search-submit,
    .ast-separate-container .ezycr-search-submit {
        width: 100% !important;
        display: block;
    }
}

/* Desktop Search Form - Better Layout */
@media (min-width: 769px) {
    .ezycr-search-only-wrapper {
        max-width: 800px;
        margin: 0 auto;
        padding: 40px 20px;
    }
    
    .ezycr-search-only-form {
        max-width: 100%;
        padding: 30px;
    }
    
    .ezycr-search-fields {
        grid-template-columns: 1fr 1fr auto;
        gap: 20px;
        align-items: end;
    }
    
    .ezycr-search-submit {
        width: auto !important;
        padding: 14px 30px !important;
        white-space: nowrap;
    }
}

/* Desktop Results Page - Fix Layout Issues */
@media (min-width: 769px) {
    .ezycr-results-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
    }
    
    .ezycr-results-header {
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .ezycr-vehicles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
        max-width: 100%;
    }
    
    .ezycr-results-card {
        max-width: 100%;
    }
    
    .ezycr-results-card .ezycr-vehicle-image-wrapper img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
}

/* Fix Desktop Search Form Width */
@media (min-width: 769px) {
    .ezycr-search-only-wrapper {
        max-width: 900px;
        margin: 0 auto !important;
        padding: 40px 20px;
    }
    
    .ezycr-search-only-form {
        max-width: 100%;
    }
}

/* Prevent Flash/Overlay on Search */
.ezycr-loading-overlay {
    display: none !important;
}

/* Fix any overflow issues */
.ezycr-results-wrapper,
.ezycr-search-only-wrapper {
    overflow-x: hidden;
    max-width: 100%;
}

/* Ensure vehicle cards don't overflow */
.ezycr-vehicle-card {
    box-sizing: border-box;
    max-width: 100%;
}

/* Fix pricing boxes on desktop */
@media (min-width: 769px) {
    .ezycr-results-pricing {
        max-width: 100%;
    }
    
    .ezycr-pricing-row {
        font-size: 15px;
    }
    
    .ezycr-price-total {
        font-size: 22px;
    }
}

/* Prevent Layout Shift and Flash */
.ezycr-results-wrapper,
.ezycr-search-only-wrapper {
    min-height: 400px;
    opacity: 1;
    transition: none;
}

/* Remove any transforms that might cause flash */
.ezycr-vehicle-card,
.ezycr-search-only-form {
    transform: none !important;
    transition: none !important;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.ezycr-results-wrapper * {
    animation: none !important;
}

/* Smooth appearance without flash */
.ezycr-vehicles-grid {
    opacity: 1;
    visibility: visible;
}

/* Fix Elementor container issues */
.elementor-widget-shortcode .ezycr-results-wrapper,
.elementor-widget-shortcode .ezycr-search-only-wrapper {
    width: 100%;
    max-width: 100%;
}
