/* Rides Page Styles */

.select_driver_section {
    padding: 60px 0 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.page_title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

/* Search Sidebar */
.search_sidebar {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Trip Type Selector */
.trip_type_selector {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 24px;
}

.radio_option {
    display: flex;
    align-items: center;
}

.radio_option input[type="radio"] {
    display: none;
}

.radio_option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
    user-select: none;
}

.radio_icon {
    width: 20px;
    height: 20px;
    border: 2px solid #43c59e;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.radio_option input[type="radio"]:checked + label .radio_icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #43c59e;
    border-radius: 50%;
}

/* Form Fields */
.form_field {
    position: relative;
    margin-bottom: 20px;
}

.form_field .field_icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.form_field input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form_field input:focus {
    outline: none;
    border-color: #43c59e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 197, 158, 0.1);
}

.form_field input::placeholder {
    color: #999;
}

/* Search Button */
.search_btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #43c59e 0%, #3ab58c 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.search_btn:hover {
    background: linear-gradient(135deg, #3ab58c 0%, #32a07d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 197, 158, 0.3);
}

/* Ride Card */
.ride_card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ride_card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Ride Card Header */
.ride_card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.date_time_info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.date_badge,
.time_badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e8f5f1;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.price_display {
    font-size: 1.75rem;
    font-weight: 700;
    color: #43c59e;
}

/* Ride Card Body */
.ride_card_body {
    margin-bottom: 24px;
}

/* Route Info */
.route_info {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.route_point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}

.route_point.pickup {
    padding-bottom: 20px;
    border-bottom: 2px dashed #e0e0e0;
    margin-bottom: 12px;
}

.route_marker {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-top: 4px;
}

.route_details {
    flex: 1;
}

.route_label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 4px;
}

.route_location {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Driver Info */
.driver_info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.driver_avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.driver_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver_details {
    flex: 1;
}

.driver_name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.driver_rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.rating_value {
    font-weight: 600;
    color: #333;
    margin-left: 4px;
}

.rating_label {
    font-size: 0.85rem;
    color: #999;
    margin-left: 4px;
}

.car_model {
    font-size: 0.9rem;
    color: #666;
}

/* Ride Card Footer */
.ride_card_footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.action_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action_btn:hover {
    border-color: #43c59e;
    color: #43c59e;
    background: #e8f5f1;
}

.call_btn:hover,
.message_btn:hover {
    transform: translateY(-2px);
}

.view_details_btn {
    margin-left: auto;
}

.book_ride_btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #43c59e 0%, #3ab58c 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book_ride_btn:hover {
    background: linear-gradient(135deg, #3ab58c 0%, #32a07d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 197, 158, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .page_title {
        font-size: 2rem;
    }

    .search_sidebar {
        margin-bottom: 30px;
    }

    .ride_card_footer {
        flex-direction: column;
        gap: 10px;
    }

    .action_btn,
    .view_details_btn {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
    }

    .book_ride_btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .select_driver_section {
        padding: 40px 0 60px;
    }

    .page_title {
        font-size: 1.75rem;
        text-align: center;
    }

    .search_sidebar {
        padding: 24px 20px;
    }

    .date_time_info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .price_display {
        font-size: 1.5rem;
    }

    .driver_info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .driver_avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 575px) {
    .page_title {
        font-size: 1.5rem;
    }

    .ride_card {
        padding: 20px;
    }

    .ride_card_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .price_display {
        font-size: 1.75rem;
    }

    .form_field input {
        font-size: 0.9rem;
        padding: 12px 44px 12px 14px;
    }
    
    .trip_type_selector {
        flex-direction: column;
        gap: 12px;
    }

    .search_btn {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
}

/* Number Input Styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Loading State */
.ride_card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.no_rides_message {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no_rides_message h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 12px;
}

.no_rides_message p {
    font-size: 1rem;
    color: #666;
}
