/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Main container */
.rentwa-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    scroll-margin-top: 50px; /* Ensure proper scroll positioning */
}

/* Progress bar with icons */
.rentwa-progress-bar-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}
.rentwa-progress-bar-icons .progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 60px;
    background: none;
    box-shadow: none;
}
.rentwa-progress-bar-icons .progress-step img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1px;
}
.rentwa-progress-bar-icons .progress-step.active img {
    border: none;
    background: #fff;
}
.rentwa-progress-bar-icons .progress-line {
    flex: 1;
    height: 2px;
    background: #00205b;
    margin: 0 0.5rem;
    min-width: 30px;
}

/* Vehicle type radio group */
.vehicle-type-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 500;
    flex-wrap: wrap;
}
.vehicle-type-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #001A70;
}
.vehicle-type-row label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    color: #00205b;
    white-space: nowrap;
}
.vehicle-type-row input[type="radio"] {
    accent-color: #00205b;
    margin-right: 2px;
}

/* Select with chevron */
.select-wrapper {
    position: relative;
}
.select-wrapper select, .rentwa-additional-items select {
    
    background: #fff;
    border: 1px solid #00205b;
    border-radius: 4px;
    padding: 12px 36px 12px 12px;
    font-size: 14px;
    color: #333;
    width: 100%;
    /* Remove native chevron */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.select-wrapper .chevron, .rentwa-additional-items .chevron{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    background: #001a70;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-wrapper .chevron::after, .rentwa-additional-items .chevron::after {
    content: '';
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>') no-repeat center center;
    background-size: contain;
    transition: background 0.2s ease;
}

/* Hover state for chevron */
.select-wrapper:hover .chevron::after, 
.rentwa-additional-items:hover .chevron::after {
    background: url('data:image/svg+xml;utf8,<svg fill="%23FFCD00" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>') no-repeat center center;
    background-size: contain;
}

/* Focus state for chevron */
.select-wrapper select:focus + .chevron::after, 
.rentwa-additional-items select:focus + .chevron::after {
    background: url('data:image/svg+xml;utf8,<svg fill="%23FFCD00" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>') no-repeat center center;
    background-size: contain;
}

/* Input styles for new layout */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"] {
    padding: 12px;
    border: 1px solid #001a70;
    border-radius: 2px;
    font-size: 14px;
    color: #333;
    background: #fff;
    width: 100%;
}

/* HTML5 date input specific styles */
.select-wrapper input[type="date"] {
    padding-right: 36px;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 12px;
    top: 0;
    width: 20px;
    height: 100%;
    cursor: pointer;
}

/* Button styles */
.btn-yellow {
    background: #ffd600;
    color: #00205b;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 14px 32px;
font-size: 18px;
    transition: background 0.2s;
}
.btn-yellow:hover {
    background: #ffb800;
}
.btn-grey {
    background: #6c757d !important;
    color: #fff;
    font-weight: 600;
    text-transform: capitalize;
    border: none;
    border-radius: 4px;
    padding: 14px 32px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-grey:hover {
    background: #989a9c !important;
}

.btn-back {
    float: right;
}

/* Responsive tweaks for new layout */
@media (max-width: 900px) {
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    .vehicle-type-row {
        gap: 12px;
    }
    .btn-yellow, .btn-grey {
        width: 100%;
        margin-bottom: 10px;
    }
    .form-actions {
        text-align: left;
    }
    .btn-back {
        display: none;
    }
}

/* Form styles */
.rentwa-step {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rentwa-step h2 {
    color: #001a70;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 3px solid #ffcc00;
    padding-bottom: 8px;
    display: inline-block;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #001A70;
}

.form-group select,
.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 2px;
    font-size: 14px;
    background: #fff;
}

/* Remove native chevron from all select elements */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.rentwa-additional-items select{
    width: 100%;
    padding: 12px;
    border-radius: 2px;
    font-size: 14px;
    background: #fff;
    /* Remove native chevron */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


.form-group select:focus,
.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus {
    outline: none;
    border-color: #00205b;
    box-shadow: 0 0 0 2px rgba(0, 32, 91, 0.1);
}

.form-actions {
    margin-top: 15px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #00205b;
    color: #fff;
}

.btn-primary:hover {
    background: #001a4a;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.rentwa-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.rentwa-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.rentwa-onrequest {
    background: #ffeaea;
    color: #a94442;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .rentwa-progress-bar-icons {
        padding: 0 10px;
    }
    
    .rentwa-progress-bar-icons .progress-step {
        width: 100% !important;
        height: auto !important;
        margin-bottom: -7px;
    }
    
    .rentwa-progress-bar-icons .progress-step img {
        width: 100%;
        height: auto !important;
    }
    
    .rentwa-step {
        padding: 10px;
    }

    .rentwa-booking-wrapper {
        padding: 5px;
    }

    .rentwa-progress-bar-icons .progress-line {
        margin: 0 0.2rem !important;  
    }

    .btn-back {
        position: unset !important;
        margin: 10px 0px;
        display: none;
    }

    .vehicle-main-info {
        display: unset !important;
    }
    .vehicle-image img{
        width: 100% !important;
    }

      table, thead, tbody, th, td, tr {
        display: block; /* Makes all table elements act as block elements */
      }
    
      thead tr {
        position: absolute; /* Hides the original table header row */
        top: -9999px;
        left: -9999px;
      }
    
      tr {
        border: 0px solid #ccc;
        margin-bottom: 10px;
      }
    
      td {
        border: none;
        border-bottom: 0px solid #eee;
        position: relative;
        padding-left: 50%; /* Adjust as needed for header label width */
      }
    
      td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%; /* Adjust as needed for header label width */
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label); /* Uses a data attribute for the label */
        font-weight: bold;
      }
    
}

.rentwa-vehicle-results h2 {
    color: #001a70;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 3px solid #ffcc00;
    padding-bottom: 8px;
    display: inline-block;
}

.vehicle-list .vehicle-item,  .vehicle-item .vehicle-item   {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vehicle-list .vehicle-item:last-child {
    margin-bottom: 0;
}

.vehicle-item .vehicle-title {
    font-size: 20px;
    font-weight: 600;
    color: #001a70;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 8px;
}

.vehicle-main-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.vehicle-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.vehicle-specs-and-price {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.spec-item img {
    width: auto;
    height: 20px;
}

.vehicle-pricing {
    text-align: right;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #001a70;
    margin-bottom: 5px;
}

.price span {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.vehicle-pricing .btn {
    background: #FFCD00;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}

.vehicle-pricing .btn:hover {
    background: #ffb800;
}

.additional-info h4 {
    color: #001a70;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.additional-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .vehicle-specs-and-price {
        flex-direction: column;
    }
    
    .vehicle-pricing {
        text-align: left;
        margin-top: 15px;
    }
    
    .vehicle-pricing .btn {
        width: 100%;
    }
}

.rentwa-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.rentwa-loading-overlay .rentwa-spinner {
    width: 80px;
    height: 80px;
    background-image: url('../../images/rentWA-logo-spin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: rentwa-spin 2s linear infinite;
    margin-bottom: 20px;
}

@keyframes rentwa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rentwa-loading-overlay .rentwa-loading-message {
    font-size: 18px;
    color: #00205b;
    font-weight: 600;
}

.rentwa-table {
    width: 100%;
    border-collapse: unset !important;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #d7d7d7;
}

.rentwa-table th {
    background: #001a70;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.rentwa-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.rentwa-table tr:last-child td {
    border-bottom: none;
}

.rentwa-table tr:hover {
    background: #f8f9fa;
}

.rentwa-review-table {
    width: 100%;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   
}

.rentwa-review-table th {
    background: #001a70 !important;
    color: #fff !important;
    font-weight: 700;
    border-bottom: 1px solid #e0e6f6 !important;
    text-transform: uppercase;
}

.rentwa-review-table td {
    background: #fff !important;
    color: #222 !important;
    border-bottom: 1px solid #e0e6f6 !important;
}

.rentwa-review-table tr:last-child th,
.rentwa-review-table tr:last-child td {
    border-bottom: none !important;
}

.rentwa-review-table tr:hover {
    background: none !important;
}

.rentwa-review-cost-table {
    width: 100%;
    border-collapse: collapse;
}

.rentwa-review-cost-table td {
    padding: 5px 0;
    border: none;
    font-size: 14px;
}

.rentwa-review-cost-table tr:hover {
    background: none;
}

.booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

 .rentwa-step h3, .booking-summary h3 {
    color: #001a70;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.booking-details {
    display: flex;
    gap: 30px;
}

.booking-section {
    flex: 1;
    color: #001a70;
    font-size: 14px;
    line-height: 1.5;
}

.booking-section strong {
    color: #001a70;
    font-weight: 600;
}

.booking-confirmation-layout {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.booking-detail-item {
    color: #001A70;
}
.booking-detail-item strong{
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #001A70;
}

@media (max-width: 768px) {
    .booking-details {
        flex-direction: column;
        gap: 15px;
    }
}

/* Inline styles extracted from PHP script */

/* Progress bar first step image size */
.rentwa-progress-bar .progress-step.first-step img {
    width: 110%; /* Slightly larger than default */
    height: auto;
}

.rentwa-progress-bar .progress-step {
    border: none; /* Remove any borders */
}

.vehicle-pricing .price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.vehicle-pricing .daily-rate {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

/* Vehicle debug info */
.vehicle-debug-info {
    display: none;
    font-size: 10px;
}

/* Review step layout */
.rentwa-review-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.review-left-column {
    flex: 1 1 55%;
    min-width: 300px;
}

.review-right-column {
    flex: 1 1 35%;
    min-width: 280px;
    background: #f7f7f7;
    padding: 15px 15px 0px 15px;
    border-radius: 8px;
    margin-bottom: 17px;
}

/* Step header styling for all steps */
.step-header {
    position: relative;
    margin-bottom: 20px;
}

.step-header h2 {
    margin: 0;
}

.btn-back {
    position: absolute;
    top: 0;
    right: 0;
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.btn-back:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Adjust review step layout */
.rentwa-review-booking .step-header {
    margin-bottom: 30px;
}

.review-right-column .step-header {
    margin-bottom: 20px;
}

.review-right-column .step-header h2 {
    margin: 0;
    font-size: 18px;
    padding-right: 110px;
}

/* Booking confirmation styles */
.rentwa-booking-confirmed .step-header h2 {
    color: #001a70;
    font-size: 20px;
    font-weight: 700;
}

.rentwa-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.rentwa-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Booking confirmation layout */
.rentwa-booking-confirmed .booking-confirmation-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.rentwa-booking-confirmed .booking-confirmation-left {
    flex: 1;
}

.rentwa-booking-confirmed .booking-confirmation-right {
    flex: 0 0 180px;
}

.rentwa-booking-confirmed .booking-confirmation-right img {
    width: 180px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px #eee;
}

.rentwa-booking-confirmed .booking-detail-item {
    margin-bottom: 10px;
}

.rentwa-booking-confirmed .booking-detail-item strong {
    font-weight: 600;
}

/* Form styles for review step */
.review-right-column .form-row {
    display: flex;
    gap: 15px;
}

.review-right-column .form-group {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
}

.review-right-column .form-group input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.review-right-column .btn.btn-yellow {
    background: #fed30a;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.review-right-column .btn.btn-yellow:hover {
    opacity: 0.9;
}

/* Extras form actions */
.rentwa-extras .form-actions {
    margin-top: 20px;
}

/* Protection options table alignment */
.rentwa-protection-options td[style*="text-align:center"] {
    text-align: center;
}

/* Extras quantity select */
.extra-qty {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

/* Date picker styles */
.rentwa-date-picker {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

/* Checkbox styles */
.form-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Make booking button */
.btn-make-booking {
    background: #fed30a;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-make-booking:hover {
    opacity: 0.9;
}

/* Protection options table alignment */
.protection-option-cell {
    text-align: center;
}

/* Extras list styling */
.extras-list {
    margin: 0;
    padding-left: 18px;
}

/* Cost amount alignment */
.cost-amount {
    text-align: right;
}

/* Checkbox group styling */
.checkbox-group {
    margin-top: 10px;
}