@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&display=swap');

.pro-bus-app-2797 { font-family: 'Cairo', sans-serif; max-width: 1000px; margin: auto; color: #2d3748; }
.pro-bus-app-2797 * { box-sizing: border-box; }

/* Search Box */
.pro-search-box { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 30px; border-top: 4px solid #0056b3; }
.pro-grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; align-items: end; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #4a5568; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 15px; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus { border-color: #0056b3; }

/* Buttons */
.pro-btn { padding: 12px 24px; background: #0056b3; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 15px; font-family: inherit; transition: all 0.2s; display: inline-block; text-align: center; }
.pro-btn:hover { background: #004494; transform: translateY(-1px); }
.pro-btn.success { background: #10b981; }
.pro-btn.success:hover { background: #059669; }
.pro-btn.outline { background: transparent; border: 2px solid #0056b3; color: #0056b3; }
.pro-btn.outline:hover { background: #f0f7ff; }
.pro-btn.large { width: 100%; padding: 15px; font-size: 18px; }

/* General Helpers */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Wizard Steps */
.pro-step { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); margin-bottom: 30px; border: 1px solid #edf2f7; }
.step-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
.step-header h3 { margin: 0; font-size: 20px; font-weight: 800; color: #1a202c; }
.step-route { background: #ebf8ff; color: #3182ce; padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; }

/* Trip Cards */
.trips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.modern-trip-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; transition: all 0.2s; position: relative; overflow: hidden; }
.modern-trip-card:hover { border-color: #3182ce; box-shadow: 0 10px 25px rgba(49, 130, 206, 0.1); }
.card-time { font-size: 24px; font-weight: 800; color: #2d3748; margin-bottom: 5px; }
.card-type { font-size: 13px; color: #718096; margin-bottom: 15px; display: inline-block; background: #f7fafc; padding: 3px 8px; border-radius: 4px; }
.card-price { font-size: 20px; font-weight: 800; color: #10b981; }
.card-seats { font-size: 14px; color: #e53e3e; font-weight: 600; margin-top: 5px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #e2e8f0; }
.btn-select-trip { background: #edf2f7; color: #4a5568; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-family: inherit; font-weight: 600; transition: 0.2s; }
.btn-select-trip:hover { background: #e2e8f0; }
.modern-trip-card.active-card { border: 2px solid #3182ce; background: #ebf8ff; }
.modern-trip-card.active-card .btn-select-trip { background: #3182ce; color: #fff; }

/* Horizontal Bus Seat Map */
.seat-map-box { margin-top: 30px; padding-top: 30px; border-top: 2px dashed #e2e8f0; }
.legend { display: flex; gap: 15px; margin-bottom: 20px; font-size: 14px; }
.legend-box { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: middle; margin-left: 5px; }
.legend-box.available { background: #fff; border: 2px solid #cbd5e0; }
.legend-box.booked { background: #cbd5e0; border: 2px solid #a0aec0; }
.legend-box.selected { background: #3182ce; border: 2px solid #2b6cb0; }

/* Horizontal Bus Container */
.horizontal-bus-container {
    display: flex;
    align-items: center;
    background: #f7fafc;
    padding: 20px;
    border-radius: 30px;
    border: 3px solid #e2e8f0;
    position: relative;
    overflow-x: auto; /* for mobile */
}

/* Front of bus (right side in RTL) */
.bus-front {
    width: 60px;
    height: 180px;
    background: #edf2f7;
    border-radius: 20px 0 0 20px;
    border-right: 2px solid #cbd5e0;
    margin-left: 20px;
    position: relative;
    flex-shrink: 0;
}
.driver-seat {
    width: 35px; height: 35px; background: #a0aec0; border-radius: 8px;
    position: absolute; bottom: 20px; left: 10px;
}

/* Back of bus (left side in RTL) */
.bus-back {
    width: 30px;
    height: 180px;
    background: #edf2f7;
    border-radius: 0 20px 20px 0;
    border-left: 2px solid #cbd5e0;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Horizontal Grid (Columns = rows of bus, Rows = 5 seats across) */
.horizontal-bus-layout {
    display: grid;
    /* 12 columns for 12 rows of seats */
    grid-template-columns: repeat(12, 40px);
    /* 5 rows for 2 seats + aisle + 2 seats */
    grid-template-rows: repeat(5, 40px);
    gap: 10px;
    flex-shrink: 0;
}

.h-seat {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    cursor: pointer; user-select: none;
    transition: all 0.2s;
}
.h-seat.available { background: #fff; border: 2px solid #cbd5e0; color: #4a5568; }
.h-seat.available:hover { border-color: #3182ce; color: #3182ce; }
.h-seat.booked { background: #e2e8f0; border: 2px solid #cbd5e0; color: #a0aec0; cursor: not-allowed; }
.h-seat.selected { background: #3182ce; border: 2px solid #2b6cb0; color: #fff; transform: scale(1.05); }
.h-seat.aisle { visibility: hidden; }

/* Checkout */
.checkout-box { background: #f0fdf4; border-color: #9ae6b4; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.checkout-summary { font-size: 18px; margin-bottom: 20px; text-align: center; background: #fff; padding: 15px; border-radius: 8px; border: 1px dashed #68d391; }

/* Receipt */
.receipt-box { text-align: center; padding: 50px 30px; }
.receipt-icon { width: 80px; height: 80px; background: #10b981; color: #fff; font-size: 40px; line-height: 80px; border-radius: 50%; margin: 0 auto 20px; }
.receipt-details { text-align: right; background: #f7fafc; padding: 20px; border-radius: 12px; max-width: 400px; margin: 20px auto; border: 1px solid #e2e8f0; }
.receipt-details p { margin: 8px 0; }
.receipt-details hr { border: 0; border-top: 1px dashed #cbd5e0; margin: 15px 0; }
.receipt-total { font-size: 20px; font-weight: 800; color: #2d3748; }

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .horizontal-bus-container { padding: 10px; border-radius: 15px; }
}