/* Modern Rental Page Global Styles */
.modern-rental {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a202c;
    padding-top: 20px;
}
.modern-breadcrumb {
    background: transparent;
    padding: 0 0 20px 0;
    margin-bottom: 0;
    list-style: none;
    display: flex;
    gap: 8px;
}
.modern-breadcrumb li a {
    color: #718096;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.modern-breadcrumb li a:hover { color: #e53e3e; }
.modern-breadcrumb .fa-angle-right { font-size: 12px; color: #cbd5e0; margin-top: 3px; }

/* Gallery Card */
.modern-gallery-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    margin-bottom: 20px;
}
.car-rental-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
    text-align: center;
}
#car-rental-main-image {
    max-height: 450px;
    width: auto;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
.car-rental-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-bottom: 5px;
    overflow-x: auto;
}
.car-rental-gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.car-rental-gallery-thumb:hover { border-color: #e53e3e; transform: translateY(-2px); }

/* Info Header */
.modern-info-header { margin-bottom: 25px; }
.car-rental-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a202c;
}
.car-rental-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-pill {
    background: #edf2f7;
    color: #4a5568;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-pill.rating { background: #fffaf0; color: #d97706; }
.badge-pill i { font-size: 11px; }

/* Modern Tabs */
.modern-tabs .nav-tabs {
    border-bottom: 2px solid #edf2f7;
    margin-bottom: 20px;
}
.modern-tabs .nav-tabs > li > a {
    border: none;
    border-radius: 0;
    color: #718096;
    font-weight: 600;
    padding: 10px 20px;
    position: relative;
}
.modern-tabs .nav-tabs > li.active > a, .modern-tabs .nav-tabs > li > a:hover {
    border: none;
    color: #e53e3e;
    background: transparent;
}
.modern-tabs .nav-tabs > li.active > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e53e3e;
}
.car-rental-notes-list { list-style: none; padding: 0; }
.car-rental-notes-list li {
    padding: 8px 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}
.car-rental-notes-list li i { color: #38a169; font-size: 16px; }

/* Sticky Booking Column */
.booking-sticky-wrapper {
    position: sticky;
    top: 20px;
}
.modern-booking-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #edf2f7;
    overflow: hidden;
}

/* Booking Header */
.car-rental-booking-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-icon {
    width: 48px;
    height: 48px;
    background: rgba(229, 62, 62, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fc8181;
}
.car-rental-booking-header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.car-rental-booking-header p { margin: 0; font-size: 12px; color: #a0aec0; }

/* Form Elements */
.car-rental-booking-body { padding: 25px; }
.control-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #718096;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: #edf2f7;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}
.car-rental-trip-option {
    flex: 1;
    margin: 0;
    cursor: pointer;
}
.car-rental-trip-option input { display: none; }
.car-rental-trip-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #718096;
    transition: all 0.3s;
}
.car-rental-trip-option input:checked + span {
    background: #fff;
    color: #e53e3e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Input with Icons */
.icon-input-group .input-wrapper {
    position: relative;
}
.icon-input-group .input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 14px;
    z-index: 2;
}
.icon-input-group .form-control {
    padding-left: 40px;
    height: 45px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    background: #f7fafc;
}
.icon-input-group .form-control:focus {
    border-color: #e53e3e;
    box-shadow: none;
    background: #fff;
}

/* Modern Checkbox */
.modern-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}
.modern-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e53e3e;
}

/* Buttons */
.btn-calculate {
    background: #edf2f7;
    color: #2d3748;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.2s;
}
.btn-calculate:hover { background: #e2e8f0; }

.btn-book-now {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    transition: all 0.3s;
}
.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}
.btn-book-now:disabled {
    background: #cbd5e0;
    box-shadow: none;
    transform: none;
}

/* Receipt UI */
.modern-receipt {
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}
.receipt-divider {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}
.receipt-divider span {
    background: #f7fafc;
    padding: 0 10px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #a0aec0;
    letter-spacing: 1px;
}
.receipt-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 0;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}
.receipt-label { color: #718096; }
.receipt-value { font-weight: 600; color: #2d3748; }

.receipt-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #cbd5e0;
    font-size: 18px;
    font-weight: 800;
    color: #1a202c;
}
.receipt-total span:last-child { color: #e53e3e; }

.modern-error {
    background: #fff5f5;
    color: #c53030;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 15px;
    border: 1px solid #fed7d7;
    display: none; /* JS will handle showing it */
}
/* Smooth Fade-in Animation for Receipt */
.modern-receipt {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.modern-receipt.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Error Box Animation */
.modern-error {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* Modern Breadcrumb - Force Override OpenCart Defaults */
.modern-rental .modern-breadcrumb {
    background: transparent !important;
    padding: 10px 0 10px 0 !important;
    margin-bottom: 0 !important;
    list-style: none;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-radius: 0 !important;
}

.modern-rental .modern-breadcrumb > li {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    float: none !important;
}

.modern-rental .modern-breadcrumb > li a {
    color: #718096;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.modern-rental .modern-breadcrumb > li a:hover { 
    color: #e53e3e; 
}

.modern-rental .modern-breadcrumb > li .fa-angle-right {
    font-size: 12px;
    color: #cbd5e0;
    margin-top: 0 !important;
}

/* Optional: Bold the last item (current page) */
.modern-rental .modern-breadcrumb > li:last-child a {
    color: #2d3748;
    font-weight: 600;
}
.modern-rental .modern-breadcrumb > li:last-child .fa-angle-right {
    display: none;
}

/* Payment Method Selector */
.car-rental-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.car-rental-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
    transition: all 0.2s;
}
.car-rental-payment-option input {
    accent-color: #e53e3e;
    width: 16px;
    height: 16px;
}
.car-rental-payment-option:has(input:checked) {
    border-color: #e53e3e;
    background: #fff5f5;
}

/* Success Panel */
.car-rental-success {
    padding: 30px 25px;
    text-align: center;
}
.car-rental-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #38a169;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.car-rental-success h3 {
    margin: 0 0 5px;
    font-weight: 700;
    color: #1a202c;
}
#car-rental-success-order-number {
    color: #718096;
    font-weight: 600;
    margin-bottom: 15px;
}
.car-rental-success-message {
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 15px;
}
.car-rental-payment-instructions {
    background: #fffaf0;
    border: 1px solid #feebc8;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: left;
}
.car-rental-payment-instructions h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}
.car-rental-payment-instructions .well {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0;
}
.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
}
.btn-whatsapp:hover {
    background: #1fb855;
    color: #fff;
    text-decoration: none;
}
#car-rental-book-another {
    border-radius: 10px;
    font-weight: 600;
}