/* 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 {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

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

/* 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;
    }
}

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