/* Rate Card Section */
.rate-card-section {
    padding: 60px 0;
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rate-card-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.car-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #f0f0f0;
}

.car-name {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a2a6c;
    margin: 0;
}

.car-seats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rate-section {
    margin: 20px 0;
}

.rate-section .section-title {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.rate-section .section-title:before {
    content: "\1F4CA";
    margin-right: 8px;
}

.rate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.rate-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e1e8ed;
}

.rate-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.rate-value {
    font-weight: 700;
    font-size: 1rem;
    color: #28a745;
    line-height: 1.2;
}

.rate-extra {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 10px;
}

.option-selector {
    display: flex;
    background: #f1f3f4;
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 15px;
    gap: 5px;
}

.option-btn {
    flex: 1;
    padding: 10px 5px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #555;
}

.option-btn.active {
    background: #1a2a6c;
    color: white;
    box-shadow: 0 2px 8px rgba(26, 42, 108, 0.3);
}

.car-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.feature {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #90caf9;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    //padding: 4px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    //display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #1a2a6c;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 42, 108, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 42, 108, 0.4);
}

.btn-outline {
    background: transparent;
    color: #1a2a6c;
    border: 2px solid #1a2a6c;
}

.btn-outline:hover {
    background: #1a2a6c;
    color: white;
}

/* Booking Slider */
.booking-slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-slider-overlay.active {
    opacity: 1;
    visibility: visible;
}

.booking-slider {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: right 0.4s ease;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

.booking-slider.active {
    right: 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.slider-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close-slider {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-slider:hover {
    background: rgba(255,255,255,0.1);
}

.selected-car-info {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.selected-car-info h4 {
    margin: 0 0 10px 0;
    color: #1a2a6c;
    font-size: 1.3rem;
}

.car-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.car-details span {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Booking Form */
.booking-form {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 8px 8px; /* row gap + column gap */
  max-width: 800px;
}

.booking-form .form-group {
  display: flex;
  flex-direction: column;
}

.booking-form .form-group.full-width {
  grid-column: span 2;
}

.booking-form .form-actions {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}


.booking-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 6px 15px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a2a6c;
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-actions {
    display: flex;
    gap: 12px;
    //margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #eaeaea;
}

/* Cart Icon */
.booking-cart-icon {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 6px 25px rgba(26, 42, 108, 0.4);
    transition: all 0.3s ease;
}

.booking-cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(26, 42, 108, 0.5);
}

.booking-cart-icon i {
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid white;
}

/* Body scroll lock */
body.booking-slider-open {
    overflow: hidden;
}

/* Thank You Page Styles */
.booking-thankyou {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.thankyou-header {
    margin-bottom: 40px;
}

.thankyou-header i {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
}

.thankyou-header h2 {
    color: #1a2a6c;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.thankyou-header p {
    color: #666;
    font-size: 1.1rem;
}

.booking-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: left;
}

.booking-summary h3 {
    color: #1a2a6c;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.booking-details-grid {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.detail-item .label {
    font-weight: 600;
    color: #333;
}

.detail-item .value {
    color: #666;
    text-align: right;
}

.thankyou-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.thankyou-note {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.thankyou-note p {
    margin: 0;
    color: #856404;
}

/* Booking Messages */
.booking-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease;
}

.booking-message-success {
    background: #28a745;
}

.booking-message-error {
    background: #dc3545;
}

.booking-message-info {
    background: #17a2b8;
}

.disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 0.85rem;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rate-card-container {
        padding: 0 10px;
    }
    
    .car-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .car-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rate-grid {
        //grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .booking-slider {
        width: 100%;
    }
    
    .slider-header {
        padding: 15px;
    }
    
    .form-actions {
        //flex-direction: column;
    }
    
    .booking-cart-icon {
        bottom: 90px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 0.85rem;
    }
    
    .thankyou-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thankyou-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-item .value {
        text-align: left;
    }

    .calc-actions {
        text-align: center;
        display: flex;        
    }
    
}

@media (min-width: 992px) {
    .rate-card-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 25px;
    }
    
    .booking-slider {
        width: 500px;
    }
}



/* Fare Calculator Styles */
.fare-calculator {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calculator-header {
    text-align: center;
    margin-bottom: 25px;
}

.calculator-header h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.calculator-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.calc-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.calc-group {
    flex: 1;
    min-width: 200px;
}

.calc-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.calc-select, .calc-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.calc-actions {
    text-align: center;
    //margin: 25px 0;
}

.btn-calculate, .btn-reset, .btn-book {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin: 0 5px;
}

.btn-calculate {
    background: #e74c3c;
    color: white;
}

.btn-reset {
    background: #95a5a6;
    color: white;
}

.btn-book {
    background: #27ae60;
    color: white;
}

.calculation-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #27ae60;
}

.results-header h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.result-item.total {
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: none;
    color: #e74c3c;
}

.result-note {
    margin-top: 10px;
    font-style: italic;
    color: #7f8c8d;
}

.results-actions {
    text-align: center;
    margin-top: 15px;
}


/* Responsive */
@media (max-width: 768px) {
    .calc-row {
        flex-direction: column;
    }
    
    .calc-group {
        min-width: 100%;
    }
}