/* General Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wp-ride-hailing-form, 
.wp-ride-hailing-dashboard,
.wp-ride-hailing-profile {
    font-family: inherit;
}

.wp-ride-hailing-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wp-ride-hailing-form.enhanced {
    max-width: 1200px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.booking-header h2 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
}

.booking-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.booking-left {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.booking-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-map {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Enhanced booking form styles */
.location-section h3,
.vehicle-section h3,
.ride-options h3,
.special-requests h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 12px;
}

.location-group {
    margin-bottom: 24px;
}

.location-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.location-icon {
    font-size: 12px;
}

.location-input-wrapper {
    position: relative;
}

.current-location-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.quick-locations {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-location-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-location-btn:hover {
    background: #e9ecef;
    border-color: #3498db;
}

/* Vehicle selection */
.vehicle-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vehicle-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #f1f3f4;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-option:hover,
.vehicle-option.selected {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.vehicle-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.vehicle-info {
    flex: 1;
}

.vehicle-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.vehicle-info p {
    margin: 0 0 4px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.vehicle-capacity {
    font-size: 12px;
    color: #95a5a6;
}

.vehicle-price {
    text-align: right;
}

.vehicle-price .price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
}

.vehicle-price .eta {
    font-size: 12px;
    color: #7f8c8d;
}

/* Options */
.option-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.option-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    margin-top: 2px;
}

.option-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.option-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.option-info strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 4px;
}

.option-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.schedule-options,
.additional-stops {
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Fare estimate */
.fare-estimate {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.estimate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.estimate-header h3 {
    margin: 0;
    color: #2c3e50;
}

.estimate-disclaimer {
    font-size: 12px;
    color: #7f8c8d;
}

.estimate-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.estimate-line.total {
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 16px;
}

/* Surge pricing notice */
.surge-notice {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    animation: pulse 2s infinite;
}

.surge-notice .surge-icon {
    font-size: 20px;
    margin-right: 12px;
}

.surge-notice .surge-text {
    flex: 1;
}

.surge-notice .surge-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.surge-notice .surge-text p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.surge-multiplier {
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 2px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Book button */
.book-section {
    margin-top: 32px;
}

.book-ride-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.book-ride-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.book-ride-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-price {
    font-size: 20px;
    font-weight: 700;
}

.booking-terms {
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
    margin: 0;
}

.booking-terms a {
    color: #3498db;
    text-decoration: none;
}

/* Nearby drivers */
.nearby-drivers {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nearby-drivers h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
}

.drivers-count {
    text-align: center;
}

.drivers-count .count {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #3498db;
}

.drivers-count .label {
    font-size: 14px;
    color: #7f8c8d;
}

/* Safety features */
.safety-features {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.safety-features h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
}

.safety-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.safety-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #2c3e50;
}

.safety-item .icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

/* Enhanced form elements */
.wp-ride-hailing-form input[type="text"],
.wp-ride-hailing-form input[type="email"],
.wp-ride-hailing-form input[type="tel"],
.wp-ride-hailing-form input[type="date"],
.wp-ride-hailing-form input[type="time"],
.wp-ride-hailing-form input[type="password"],
.wp-ride-hailing-form select,
.wp-ride-hailing-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.wp-ride-hailing-form input:focus,
.wp-ride-hailing-form select:focus,
.wp-ride-hailing-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Location suggestions */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Payment methods - REMOVED */
/*
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #f1f3f4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover,
.payment-method.selected {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.payment-method input[type="radio"] {
    width: auto;
    margin: 0;
}

.payment-icon {
    width: 40px;
    height: 24px;
    object-fit: contain;
}

.payment-info {
    flex: 1;
}

.payment-info strong {
    display: block;
    margin-bottom: 2px;
}

.payment-info span {
    font-size: 14px;
    color: #7f8c8d;
}

.add-payment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.add-payment-btn:hover {
    border-color: #3498db;
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}
*/

.wp-ride-hailing-form #booking-map {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wp-ride-hailing-form .form-group {
    margin-bottom: 24px;
}

.wp-ride-hailing-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.wp-ride-hailing-form input[type="text"],
.wp-ride-hailing-form input[type="email"],
.wp-ride-hailing-form input[type="tel"],
.wp-ride-hailing-form input[type="date"],
.wp-ride-hailing-form input[type="password"],
.wp-ride-hailing-form select,
.wp-ride-hailing-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.wp-ride-hailing-form input:focus,
.wp-ride-hailing-form select:focus,
.wp-ride-hailing-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #3498db;
    color: white;
}

.button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.button.primary {
    background: #3498db;
    color: white;
}

.button.secondary {
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.button.secondary:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.button.danger {
    background: #e74c3c;
    color: white;
}

.button.danger:hover {
    background: #c0392b;
}

.button.cancel {
    background: #f39c12;
    color: white;
}

.button.cancel:hover {
    background: #e67e22;
}

/* Dashboard Styles */
.wp-ride-hailing-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.user-welcome h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.user-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 16px;
}

.star.filled {
    color: #ffd700;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.quick-action-btn .icon {
    font-size: 24px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #f1f3f4;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Active Ride Section */
.active-ride-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
}

.ride-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ride-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.ride-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-requested {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
}

.status-in-progress {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.ride-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.ride-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.progress-steps .step {
    color: #95a5a6;
    font-weight: 500;
}

.progress-steps .step.active {
    color: #3498db;
    font-weight: 600;
}

.ride-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Ride History Section */
.ride-history-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.history-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.history-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.ride-item.enhanced {
    background: white;
    border: 1px solid #f1f3f4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.ride-item.enhanced:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.ride-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ride-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ride-date .date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.ride-date .time {
    color: #7f8c8d;
    font-size: 14px;
}

.ride-fare .amount {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
}

.route-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.pickup, .dropoff {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pickup .icon, .dropoff .icon {
    font-size: 12px;
    margin-top: 4px;
}

.location strong {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 2px;
}

.location span {
    color: #2c3e50;
    font-size: 14px;
}

.route-line {
    width: 2px;
    height: 20px;
    background: #ecf0f1;
    margin-left: 5px;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.driver-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.driver-details strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 4px;
}

.vehicle-info {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.driver-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #f39c12;
}

.ride-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ride-actions .button {
    padding: 6px 12px;
    font-size: 13px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.rating-display .label {
    color: #7f8c8d;
}

.no-rides.enhanced {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-rides-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-rides.enhanced h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 20px;
}

.no-rides.enhanced p {
    margin: 0 0 20px 0;
    font-size: 14px;
}

/* Quick Booking Section */
.quick-booking-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.quick-booking-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.favorite-locations {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.favorite-location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-location-btn:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.favorite-location-btn .icon {
    font-size: 16px;
}

.favorite-location-btn .name {
    font-weight: 500;
    color: #2c3e50;
}

/* Profile Styles */
.wp-ride-hailing-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
}

.upload-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 12px;
    cursor: pointer;
}

.profile-info h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.member-since {
    margin: 0 0 12px 0;
    opacity: 0.8;
    font-size: 14px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 8px;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: white;
    color: #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

/* Checkbox styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Emergency Contacts */
.emergency-contact-item,
.favorite-place-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
}

.contact-info,
.place-info {
    flex: 1;
}

.contact-info strong,
.place-info strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 4px;
}

.relationship {
    display: inline-block;
    padding: 2px 8px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 12px;
    color: #6c757d;
    margin-left: 8px;
}

.contact-actions,
.place-actions {
    display: flex;
    gap: 8px;
}

.contact-actions button,
.place-actions button {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.edit-contact, .edit-place {
    background: #3498db;
    color: white;
}

.delete-contact, .delete-place {
    background: #e74c3c;
    color: white;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

/* Rating Modal Specific */
.rating-input {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    justify-content: center;
}

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

.star-label {
    font-size: 32px;
    color: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-input input[type="radio"]:checked ~ .star-label,
.rating-input input[type="radio"]:checked ~ .star-label ~ .star-label {
    color: #ffd700;
}

.rating-input .star-label:hover,
.rating-input .star-label:hover ~ .star-label {
    color: #ffd700;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12px;
    color: #7f8c8d;
}

.feedback-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.feedback-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-option:hover {
    background: #e9ecef;
}

.feedback-option input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile-first booking layout - Map on top */
    .booking-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }
    
    .booking-right {
        order: -1; /* Move map section to top */
        flex: none;
    }
    
    .booking-left {
        order: 1; /* Move form section below */
        padding: 20px;
        flex: none;
    }
    
    .booking-map {
        height: 300px; /* Smaller height on mobile */
    }
    
    /* Adjust header for mobile */
    .booking-header {
        text-align: center;
        padding: 16px;
    }
    
    .booking-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .booking-subtitle {
        font-size: 14px;
    }

    .wp-ride-hailing-dashboard {
        padding: 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .quick-actions {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ride-content {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        min-width: 120px;
    }
    
    .ride-actions {
        flex-direction: column;
    }
    
    .ride-actions .button {
        width: 100%;
    }
    
    .history-filters {
        flex-direction: column;
        gap: 8px;
    }
    
    .feedback-options {
        grid-template-columns: 1fr;
    }
    
    /* Mobile booking form improvements */
    .location-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .current-location-btn {
        font-size: 12px;
        padding: 8px 12px;
        align-self: flex-start;
    }
    
    .vehicle-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .vehicle-option {
        padding: 12px;
    }
    
    .book-ride-btn {
        width: 100%;
        font-size: 16px;
        padding: 16px;
    }
    
    .fare-breakdown {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Safety features and nearby drivers - stack vertically */
    .nearby-drivers,
    .safety-features {
        margin-bottom: 16px;
    }
    
    .safety-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .booking-container {
        gap: 16px;
        margin-top: 16px;
    }
    
    .booking-left {
        padding: 16px;
        border-radius: 12px;
    }
    
    .booking-map {
        height: 250px;
        border-radius: 12px;
    }
    
    .booking-header h2 {
        font-size: 20px;
    }
    
    .booking-subtitle {
        font-size: 13px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 16px;
    }
    
    .ride-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Adjust form elements for very small screens */
    .form-group label {
        font-size: 14px;
    }
    
    .vehicle-option h4 {
        font-size: 16px;
    }
    
    .vehicle-option .price {
        font-size: 14px;
    }
} 

/* Account Dashboard Integration Styles */
.account-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.woocommerce-account-section,
.ride-hailing-account-section,
.driver-account-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.woocommerce-account-section h2,
.ride-hailing-account-section h2,
.driver-account-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.nav-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.nav-card.highlight {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #2980b9;
}

.nav-card.highlight:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
}

.nav-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    line-height: 1;
}

.nav-card h3 {
    margin: 15px 0 10px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.nav-card.highlight h3 {
    color: white;
}

.nav-card p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95em;
}

.nav-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link.button {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.nav-link.button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.nav-link.button.primary {
    background: #e74c3c;
    font-weight: 600;
    font-size: 1.1em;
    padding: 15px 30px;
}

.nav-link.button.primary:hover {
    background: #c0392b;
}

.help-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 5px solid #3498db;
}

.help-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.help-link {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-link:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive Design for Account Pages */
@media (max-width: 768px) {
    .account-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .help-links {
        flex-direction: column;
    }
    
    .help-link {
        text-align: center;
    }
    
    .account-dashboard-wrapper {
        padding: 10px;
    }
    
    .woocommerce-account-section,
    .ride-hailing-account-section,
    .driver-account-section {
        padding: 20px;
    }
    
    .nav-card {
        padding: 20px;
    }
    
    .nav-icon {
        font-size: 2.5em;
    }
}
/* Location Suggestions Autocomplete */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:active {
    background-color: #e9ecef;
}

/* Enhanced location input styling */
.location-input-wrapper {
    position: relative;
}

.location-input-wrapper input {
    width: 100%;
    padding-right: 50px; /* Space for current location button */
}

.current-location-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.current-location-btn:hover {
    background: #005a87;
}

.current-location-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-color: #28a745;
    color: #155724;
    background-color: #d4edda;
}

.notification.error {
    border-color: #dc3545;
    color: #721c24;
    background-color: #f8d7da;
}

.notification.warning {
    border-color: #ffc107;
    color: #856404;
    background-color: #fff3cd;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Location Search Autocomplete Styling */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Use Current Location Button Styling */
.use-current-location {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    transition: background-color 0.2s;
}

.use-current-location:hover {
    background: #005a87;
}

.use-current-location:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Notification Styling */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background: white;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-width: 300px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    border-left: 4px solid #46b450;
}

.notification-error {
    border-left: 4px solid #dc3232;
}

.notification-warning {
    border-left: 4px solid #ffb900;
}

.notification-info {
    border-left: 4px solid #00a0d2;
}

.notification-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
}

.notification-close:hover {
    color: #000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form input container for relative positioning */
.location-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Business Markers Styles */
.business-marker {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.business-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.business-marker.transportation {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.business-marker.entertainment {
    border-color: #E91E63;
    background: rgba(233, 30, 99, 0.1);
}

.business-marker.recreation {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.business-marker.landmark {
    border-color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

.business-marker.restaurant {
    border-color: #FF9800;
    background: rgba(255, 193, 7, 0.15);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.business-marker.hotel {
    border-color: #9C27B0;
    background: rgba(156, 39, 176, 0.1);
}

.business-marker.shopping {
    border-color: #607D8B;
    background: rgba(96, 125, 139, 0.1);
}

/* Business Popup Styles */
.business-popup {
    font-family: 'Inter', sans-serif;
    min-width: 280px;
    max-width: 320px;
}

.business-popup .business-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.business-popup .business-type {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: capitalize;
}

/* Special styling for restaurant type */
.business-popup .business-type:contains("Restaurant") {
    background: #fff3e0;
    color: #f57c00;
}

.business-popup .business-address,
.business-popup .business-phone,
.business-popup .business-hours {
    margin: 6px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.business-popup .business-description {
    margin: 12px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.business-popup .business-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.business-popup .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.business-popup .btn.btn-small {
    font-size: 11px;
    padding: 6px 12px;
}

.business-popup .set-as-pickup {
    background: #4CAF50;
    color: white;
}

.business-popup .set-as-pickup:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.business-popup .set-as-dropoff {
    background: #f44336;
    color: white;
}

.business-popup .set-as-dropoff:hover {
    background: #da190b;
    transform: translateY(-1px);
}

/* Layer Control Styles */
.business-layer-control {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.business-layer-control .leaflet-control-layers-toggle {
    background-image: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
}

.business-layer-control .leaflet-control-layers-toggle:after {
    content: '🏢';
    font-size: 18px;
    line-height: 36px;
    text-align: center;
    display: block;
}

.business-layer-control .leaflet-control-layers-list {
    padding: 10px !important;
}

.business-layer-control label {
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 6px 0 !important;
    color: #333 !important;
}

.business-layer-control input[type="checkbox"] {
    margin-right: 8px !important;
}

/* Distance Display Styles */
.distance-section {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 12px;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.distance-section h3 {
    margin: 0 0 16px 0;
    color: #1976d2;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.distance-section h3:before {
    content: '📏';
    margin-right: 8px;
    font-size: 20px;
}

.distance-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.distance-card {
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 120px;
}

.distance-primary {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.distance-value {
    font-size: 24px;
    font-weight: 700;
    color: #1976d2;
}

.distance-unit {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.distance-secondary {
    font-size: 12px;
    color: #888;
}

.distance-details {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.distance-detail {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.distance-detail .label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.distance-detail .value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.route-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.route-note {
    margin: 0;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Address autocomplete dropdown */
.address-dropdown {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.address-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item:hover {
    background-color: #f8f9fa;
}

.address-item:active {
    background-color: #e9ecef;
}

.address-main {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.address-full {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.location-input-wrapper {
    position: relative;
}

.location-input-wrapper input {
    width: 100%;
    padding-right: 40px; /* Space for loading indicator if needed */
}

/* Loading indicator for address search */
.location-input-wrapper.searching::after {
    content: '🔍';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

/* Route Line Animation */
@keyframes drawLine {
    0% {
        stroke-dashoffset: 100%;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Responsive distance display */
@media (max-width: 768px) {
    .distance-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .distance-card {
        width: 100%;
    }
    
    .distance-details {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

