/* Taxi Booking Application Styles */
:root {
    --if-primary: #0d6efd;
    --if-primary-dark: #0a58ca;
    --if-success: #28a745;
    --if-success-dark: #1e7e34;
    --if-accent: #ffc107;
    --if-muted: #6c757d;
    --if-bg: #f7f9fc;
    --if-panel: #ffffff;
    --if-border: #e9ecef;
    --if-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.booking-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    background: radial-gradient(1200px 480px at 10% -10%, rgba(13,110,253,0.06), transparent 60%),
                radial-gradient(900px 360px at 110% 0%, rgba(40,167,69,0.06), transparent 50%),
                linear-gradient(135deg, #fbfcfe 0%, #ffffff 100%);
    min-height: calc(100vh - 100px);
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #6c757d;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header .subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
    font-weight: 300;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    background: var(--if-panel);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--if-shadow);
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, #28a745, #ffc107, #dee2e6);
    border-radius: 2px;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: 0 30px;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eef2f7;
    color: var(--if-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.step.active .step-icon {
    background: linear-gradient(135deg, var(--if-primary), var(--if-primary-dark));
    color: white;
    border-color: var(--if-primary);
    box-shadow: 0 10px 28px rgba(13, 110, 253, 0.35);
    transform: scale(1.1);
}

.step.completed .step-icon {
    background: linear-gradient(135deg, var(--if-success), var(--if-success-dark));
    color: white;
    border-color: var(--if-success);
    box-shadow: 0 8px 22px rgba(40, 167, 69, 0.3);
}

.step-label {
    font-size: 1em;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 700;
}

.step.completed .step-label {
    color: #28a745;
    font-weight: 700;
}

/* Form Sections */
.form-section {
    background: var(--if-panel);
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 30px;
    box-shadow: var(--if-shadow);
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--if-primary), var(--if-success), var(--if-accent));
}

.form-section:hover {
    transform: translateY(-2px);
    transition: transform 0.25s ease;
}

.section-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f1f3f4;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 2px;
}

.section-title i {
    margin-right: 12px;
    color: var(--if-primary);
    font-size: 1.1em;
}

/* Location Input Styling */
.location-input-group {
    position: relative;
    margin-bottom: 20px;
}

.location-input {
    background: #f8f9fa;
    border: 2px solid var(--if-border);
    border-radius: 12px;
    padding: 15px 50px 15px 20px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.location-input:focus {
    border-color: var(--if-primary);
    box-shadow: 0 0 0 0.3rem rgba(13, 110, 253, 0.15), inset 0 2px 4px rgba(0,0,0,0.05);
    background: white;
    outline: none;
    transform: translateY(-1px);
}

.location-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1em;
}

.gps-button {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.gps-button:hover {
    background: #138496;
    transform: translateY(calc(-50% - 1px));
}

.input-with-status {
    position: relative;
}

/* Route Display */
.route-display {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 25px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.1);
}

.route-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.route-stat {
    text-align: center;
    background: white;
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.route-stat:nth-child(1) {
    border-top-color: #007bff;
}

.route-stat:nth-child(2) {
    border-top-color: #28a745;
}

.route-stat:nth-child(3) {
    border-top-color: #ffc107;
}

.route-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.route-stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.route-stat-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fare Breakdown */
.fare-breakdown {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--if-success);
}

.fare-breakdown h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.2em;
}

.fare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 1.05em;
}

.fare-item:last-child {
    border-bottom: 3px solid #28a745;
    font-weight: 700;
    font-size: 1.2em;
    padding: 15px 0;
    margin-top: 15px;
    color: #28a745;
}

.tariff-info {
    margin-top: 10px;
    padding: 8px;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 3px solid #2196f3;
}

.tariff-info small {
    display: block;
    color: #1565c0;
    font-weight: 500;
}

.night-tariff {
    color: #ff6f00 !important;
    font-weight: bold;
}

.final-fare-display {
    font-size: 1.2em;
    color: #28a745;
    margin-top: 15px;
    padding-top: 15px;
}

/* Map Styling */
#map {
    height: 350px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #dee2e6;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Form Elements */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1em;
    display: block;
}

.form-label i {
    margin-right: 8px;
    color: #007bff;
    width: 16px;
    text-align: center;
}

.form-control:focus, .form-select:focus {
    border-color: var(--if-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--if-primary), var(--if-primary-dark));
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 28px rgba(13, 110, 253, 0.32);
    font-size: 1.1em;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(13, 110, 253, 0.4);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 10px rgba(108, 117, 125, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--if-success), var(--if-success-dark));
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 28px rgba(40, 167, 69, 0.3);
    font-size: 1.1em;
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.2em;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.35);
}

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

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        padding: 15px 12px 40px;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        margin: 10px 0;
    }
    
    .route-info {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2em;
    }

    .btn-lg {
        width: 100%;
    }
}

/* Autocomplete dropdown styling */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
}

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

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

.suggestion-item.selected {
    background: #e3f2fd;
    color: #1976d2;
}

/* subtle shimmer for loading state text */
.loading-message p {
        background: linear-gradient(90deg, #f1f3f5 0, #f8f9fa 40%, #f1f3f5 80%);
        background-size: 200% 100%;
        animation: shimmer 1.6s infinite linear;
        display: inline-block;
        padding: 6px 10px;
        border-radius: 6px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}